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

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

Issue 659513005: Allow conditional lit tests in Subzero, based on build flags. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add -Wno-error=unused-parameter Created 6 years, 1 month 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
« no previous file with comments | « tests_lit/llvm2ice_tests/globalrelocs.ll ('k') | tests_lit/llvm2ice_tests/phi.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ; 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 - \
8 ; RUN: | %iflc FileCheck %s
8 ; RUN: %p2i -i %s --args -O2 --verbose none \ 9 ; RUN: %p2i -i %s --args -O2 --verbose none \
9 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 10 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \
10 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ 11 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \
11 ; RUN: | FileCheck --check-prefix=CHECKO2 %s 12 ; RUN: | FileCheck --check-prefix=CHECKO2 %s
12 ; RUN: %lc2i -i %s --args -Om1 --verbose none \ 13 ; RUN: %lc2i -i %s --args -Om1 --verbose none \
13 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 14 ; 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 15 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \
15 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s 16 ; RUN: | %iflc FileCheck %s
17 ; RUN: %p2i -i %s --args --verbose none \
18 ; RUN: | FileCheck --check-prefix=ERRORS %s
16 19
17 declare i8 @llvm.nacl.atomic.load.i8(i8*, i32) 20 declare i8 @llvm.nacl.atomic.load.i8(i8*, i32)
18 declare i16 @llvm.nacl.atomic.load.i16(i16*, i32) 21 declare i16 @llvm.nacl.atomic.load.i16(i16*, i32)
19 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32) 22 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32)
20 declare i64 @llvm.nacl.atomic.load.i64(i64*, i32) 23 declare i64 @llvm.nacl.atomic.load.i64(i64*, i32)
21 declare void @llvm.nacl.atomic.store.i8(i8, i8*, i32) 24 declare void @llvm.nacl.atomic.store.i8(i8, i8*, i32)
22 declare void @llvm.nacl.atomic.store.i16(i16, i16*, i32) 25 declare void @llvm.nacl.atomic.store.i16(i16, i16*, i32)
23 declare void @llvm.nacl.atomic.store.i32(i32, i32*, i32) 26 declare void @llvm.nacl.atomic.store.i32(i32, i32*, i32)
24 declare void @llvm.nacl.atomic.store.i64(i64, i64*, i32) 27 declare void @llvm.nacl.atomic.store.i64(i64, i64*, i32)
25 declare i8 @llvm.nacl.atomic.rmw.i8(i32, i8*, i8, i32) 28 declare i8 @llvm.nacl.atomic.rmw.i8(i32, i8*, i8, i32)
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 %z = add i32 %x, %y 917 %z = add i32 %x, %y
915 ret i32 %z 918 ret i32 %z
916 } 919 }
917 ; CHECK-LABEL: test_atomic_is_lock_free_can_dce 920 ; CHECK-LABEL: test_atomic_is_lock_free_can_dce
918 ; CHECK: mov {{.*}}, 1 921 ; CHECK: mov {{.*}}, 1
919 ; CHECK: ret 922 ; CHECK: ret
920 ; CHECK: add 923 ; CHECK: add
921 ; CHECK: ret 924 ; CHECK: ret
922 925
923 ; ERRORS-NOT: ICE translation error 926 ; ERRORS-NOT: ICE translation error
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/globalrelocs.ll ('k') | tests_lit/llvm2ice_tests/phi.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698