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

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

Issue 469973002: Emit .local before .comm to make llvm-mc happy. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « tests_lit/llvm2ice_tests/globalinit.pnacl.ll ('k') | tests_lit/llvm2ice_tests/shift.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 ; Test that loads/stores don't move across a nacl.atomic.fence.all. 1 ; Test that loads/stores don't move across a nacl.atomic.fence.all.
2 ; This should apply to both atomic and non-atomic loads/stores 2 ; This should apply to both atomic and non-atomic loads/stores
3 ; (unlike the non-"all" variety of nacl.atomic.fence, which only 3 ; (unlike the non-"all" variety of nacl.atomic.fence, which only
4 ; applies to atomic load/stores). 4 ; applies to atomic load/stores).
5 ; 5 ;
6 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s 6 ; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s
7 ; RUIN: %llvm2ice -O2 --verbose none %s \ 7 ; RUN: %llvm2ice -O2 --verbose none %s \
8 ; RUIN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj 8 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj
9 9
10 declare void @llvm.nacl.atomic.fence.all() 10 declare void @llvm.nacl.atomic.fence.all()
11 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32) 11 declare i32 @llvm.nacl.atomic.load.i32(i32*, i32)
12 declare void @llvm.nacl.atomic.store.i32(i32, i32*, i32) 12 declare void @llvm.nacl.atomic.store.i32(i32, i32*, i32)
13 13
14 @g32_a = internal global [4 x i8] zeroinitializer, align 4 14 @g32_a = internal global [4 x i8] zeroinitializer, align 4
15 @g32_b = internal global [4 x i8] zeroinitializer, align 4 15 @g32_b = internal global [4 x i8] zeroinitializer, align 4
16 @g32_c = internal global [4 x i8] zeroinitializer, align 4 16 @g32_c = internal global [4 x i8] zeroinitializer, align 4
17 @g32_d = internal global [4 x i8] c"\02\00\00\00", align 4 17 @g32_d = internal global [4 x i8] c"\02\00\00\00", align 4
18 18
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 } 209 }
210 ; CHECK-LABEL: could_have_hoisted_loads 210 ; CHECK-LABEL: could_have_hoisted_loads
211 ; CHECK: lea {{.*}}, g32_d 211 ; CHECK: lea {{.*}}, g32_d
212 ; CHECK: je {{.*}} 212 ; CHECK: je {{.*}}
213 ; CHECK: jmp {{.*}} 213 ; CHECK: jmp {{.*}}
214 ; CHECK: mov {{.*}}, dword ptr 214 ; CHECK: mov {{.*}}, dword ptr
215 ; CHECK: ret 215 ; CHECK: ret
216 ; CHECK: mfence 216 ; CHECK: mfence
217 ; CHECK: mov {{.*}}, dword ptr 217 ; CHECK: mov {{.*}}, dword ptr
218 ; CHECK: ret 218 ; CHECK: ret
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/globalinit.pnacl.ll ('k') | tests_lit/llvm2ice_tests/shift.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698