OLD | NEW |
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 ; TODO(kschimpf) Find out why lc2i is needed. | 4 ; TODO(kschimpf) Find out why lc2i is needed. |
5 ; RUN: %lc2i -i %s --args -O2 --verbose none \ | 5 ; RUN: %lc2i -i %s --args -O2 --verbose none \ |
6 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 6 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
7 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ | 7 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ |
8 ; RUN: | %iflc FileCheck %s | 8 ; RUN: | %iflc FileCheck %s |
9 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 9 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
10 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 10 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
11 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ | 11 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ |
12 ; RUN: | FileCheck --check-prefix=CHECKO2 %s | 12 ; RUN: | FileCheck --check-prefix=CHECKO2 %s |
13 ; RUN: %lc2i -i %s --args -Om1 --verbose none \ | 13 ; RUN: %lc2i -i %s --args -Om1 --verbose none \ |
14 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ | 14 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \ |
15 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ | 15 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ |
16 ; RUN: | %iflc FileCheck %s | 16 ; RUN: | %iflc FileCheck %s |
17 ; RUN: %p2i -i %s --args --verbose none \ | 17 ; RUN: %p2i -i %s --args --verbose none \ |
18 ; RUN: | FileCheck --check-prefix=ERRORS %s | 18 ; RUN: | FileCheck --check-prefix=ERRORS %s |
19 | 19 |
20 declare i8 @llvm.nacl.atomic.load.i8(i8*, i32) | 20 declare i8 @llvm.nacl.atomic.load.i8(i8*, i32) |
21 declare i16 @llvm.nacl.atomic.load.i16(i16*, i32) | 21 declare i16 @llvm.nacl.atomic.load.i16(i16*, i32) |
22 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32) | 22 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32) |
23 declare i64 @llvm.nacl.atomic.load.i64(i64*, i32) | 23 declare i64 @llvm.nacl.atomic.load.i64(i64*, i32) |
24 declare void @llvm.nacl.atomic.store.i8(i8, i8*, i32) | 24 declare void @llvm.nacl.atomic.store.i8(i8, i8*, i32) |
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 %z = add i32 %x, %y | 917 %z = add i32 %x, %y |
918 ret i32 %z | 918 ret i32 %z |
919 } | 919 } |
920 ; CHECK-LABEL: test_atomic_is_lock_free_can_dce | 920 ; CHECK-LABEL: test_atomic_is_lock_free_can_dce |
921 ; CHECK: mov {{.*}}, 1 | 921 ; CHECK: mov {{.*}}, 1 |
922 ; CHECK: ret | 922 ; CHECK: ret |
923 ; CHECK: add | 923 ; CHECK: add |
924 ; CHECK: ret | 924 ; CHECK: ret |
925 | 925 |
926 ; ERRORS-NOT: ICE translation error | 926 ; ERRORS-NOT: ICE translation error |
OLD | NEW |