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 -x86-asm-syntax=intel -filetype=obj \ |
7 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 7 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
8 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 8 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
9 ; 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 \ |
10 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ | 10 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ |
11 ; RUN: | FileCheck --check-prefix=CHECKO2 %s | 11 ; RUN: | FileCheck --check-prefix=CHECKO2 %s |
12 ; RUN: %lc2i -i %s --args -Om1 --verbose none \ | 12 ; RUN: %lc2i -i %s --args -Om1 --verbose none \ |
13 ; 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 \ |
14 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s | 14 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
15 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s | 15 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s |
16 ; RUN: %lc2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s | |
17 | 16 |
18 declare i8 @llvm.nacl.atomic.load.i8(i8*, i32) | 17 declare i8 @llvm.nacl.atomic.load.i8(i8*, i32) |
19 declare i16 @llvm.nacl.atomic.load.i16(i16*, i32) | 18 declare i16 @llvm.nacl.atomic.load.i16(i16*, i32) |
20 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32) | 19 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32) |
21 declare i64 @llvm.nacl.atomic.load.i64(i64*, i32) | 20 declare i64 @llvm.nacl.atomic.load.i64(i64*, i32) |
22 declare void @llvm.nacl.atomic.store.i8(i8, i8*, i32) | 21 declare void @llvm.nacl.atomic.store.i8(i8, i8*, i32) |
23 declare void @llvm.nacl.atomic.store.i16(i16, i16*, i32) | 22 declare void @llvm.nacl.atomic.store.i16(i16, i16*, i32) |
24 declare void @llvm.nacl.atomic.store.i32(i32, i32*, i32) | 23 declare void @llvm.nacl.atomic.store.i32(i32, i32*, i32) |
25 declare void @llvm.nacl.atomic.store.i64(i64, i64*, i32) | 24 declare void @llvm.nacl.atomic.store.i64(i64, i64*, i32) |
26 declare i8 @llvm.nacl.atomic.rmw.i8(i32, i8*, i8, i32) | 25 declare i8 @llvm.nacl.atomic.rmw.i8(i32, i8*, i8, i32) |
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 %z = add i32 %x, %y | 914 %z = add i32 %x, %y |
916 ret i32 %z | 915 ret i32 %z |
917 } | 916 } |
918 ; CHECK-LABEL: test_atomic_is_lock_free_can_dce | 917 ; CHECK-LABEL: test_atomic_is_lock_free_can_dce |
919 ; CHECK: mov {{.*}}, 1 | 918 ; CHECK: mov {{.*}}, 1 |
920 ; CHECK: ret | 919 ; CHECK: ret |
921 ; CHECK: add | 920 ; CHECK: add |
922 ; CHECK: ret | 921 ; CHECK: ret |
923 | 922 |
924 ; ERRORS-NOT: ICE translation error | 923 ; ERRORS-NOT: ICE translation error |
925 ; DUMP-NOT: SZ | |
OLD | NEW |