Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: tests_lit/llvm2ice_tests/nacl-atomic-intrinsics.ll

Issue 600043002: Clean up run script to use for testing Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 ; This tests each of the supported NaCl atomic instructions for every 1 ; This tests each of the supported NaCl atomic instructions for every
2 ; size allowed. 2 ; size allowed.
3 3
4 ; RUN: %llvm2ice -O2 --verbose none %s \ 4 ; TODO(kschimpf) Find out why lc2i is needed.
5 ; RUN: %lc2i -i %s --args -O2 --verbose none \
5 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 6 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \
6 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s 7 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s
7 ; RUN: %llvm2ice -O2 --verbose none %s \ 8 ; RUN: %p2i -i %s --args -O2 --verbose none \
8 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 9 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \
9 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ 10 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \
10 ; RUN: | FileCheck --check-prefix=CHECKO2 %s 11 ; RUN: | FileCheck --check-prefix=CHECKO2 %s
11 ; RUN: %llvm2ice -Om1 --verbose none %s \ 12 ; RUN: %lc2i -i %s --args -Om1 --verbose none \
12 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 13 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \
13 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s 14 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s
14 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 15 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s
15 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s 16 ; RUN: %lc2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s
16 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
17 ; RUN: | FileCheck --check-prefix=DUMP %s
18 17
19 ; TODO(jvoung): Uh... normally pnacl-llc is not supposed to separate the 18 ; TODO(jvoung): Uh... normally pnacl-llc is not supposed to separate the
20 ; lock from its instruction w/ bundle padding, but when processing .s 19 ; lock from its instruction w/ bundle padding, but when processing .s
21 ; files with llvm-mc it seems be ocassionally wrong! 20 ; files with llvm-mc it seems be ocassionally wrong!
22 ; https://code.google.com/p/nativeclient/issues/detail?id=3929 21 ; https://code.google.com/p/nativeclient/issues/detail?id=3929
23 ; That makes the current "lock" checks avoid using CHECK-NEXT. 22 ; That makes the current "lock" checks avoid using CHECK-NEXT.
24 23
25 declare i8 @llvm.nacl.atomic.load.i8(i8*, i32) 24 declare i8 @llvm.nacl.atomic.load.i8(i8*, i32)
26 declare i16 @llvm.nacl.atomic.load.i16(i16*, i32) 25 declare i16 @llvm.nacl.atomic.load.i16(i16*, i32)
27 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32) 26 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32)
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 ret i32 %z 929 ret i32 %z
931 } 930 }
932 ; CHECK-LABEL: test_atomic_is_lock_free_can_dce 931 ; CHECK-LABEL: test_atomic_is_lock_free_can_dce
933 ; CHECK: mov {{.*}}, 1 932 ; CHECK: mov {{.*}}, 1
934 ; CHECK: ret 933 ; CHECK: ret
935 ; CHECK: add 934 ; CHECK: add
936 ; CHECK: ret 935 ; CHECK: ret
937 936
938 ; ERRORS-NOT: ICE translation error 937 ; ERRORS-NOT: ICE translation error
939 ; DUMP-NOT: SZ 938 ; DUMP-NOT: SZ
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698