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

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

Issue 695993004: Subzero: Switch to AT&T asm syntax. I give up. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add opcode suffix to xchg. Use .L$ prefix for constant pool entries. 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
OLDNEW
1 ; This tests the NaCl intrinsics not related to atomic operations. 1 ; This tests the NaCl intrinsics not related to atomic operations.
2 2
3 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer 3 ; TODO(jvoung): fix extra "CALLTARGETS" run. The llvm-objdump symbolizer
4 ; doesn't know how to symbolize non-section-local functions. 4 ; doesn't know how to symbolize non-section-local functions.
5 ; The newer LLVM 3.6 one does work, but watch out for other bugs. 5 ; The newer LLVM 3.6 one does work, but watch out for other bugs.
6 6
7 ; RUN: %p2i -i %s --args -O2 --verbose none \ 7 ; RUN: %p2i -i %s --args -O2 --verbose none \
8 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s 8 ; RUN: | FileCheck --check-prefix=CALLTARGETS %s
9 ; RUN: %p2i -i %s --args -O2 --verbose none -sandbox \ 9 ; RUN: %p2i -i %s --args -O2 --verbose none -sandbox \
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 - | FileCheck %s 11 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s
12 ; RUN: %p2i -i %s --args -Om1 --verbose none -sandbox \ 12 ; RUN: %p2i -i %s --args -Om1 --verbose none -sandbox \
13 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 13 ; RUN: | llvm-mc -triple=i686-none-nacl -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 15
16 ; Do another run w/ O2 and a different check-prefix (otherwise O2 and Om1 16 ; Do another run w/ O2 and a different check-prefix (otherwise O2 and Om1
17 ; share the same "CHECK" prefix). This separate run helps check that 17 ; share the same "CHECK" prefix). This separate run helps check that
18 ; some code is optimized out. 18 ; some code is optimized out.
19 ; RUN: %p2i -i %s --args -O2 --verbose none -sandbox \ 19 ; RUN: %p2i -i %s --args -O2 --verbose none -sandbox \
20 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 20 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
21 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ 21 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \
22 ; RUN: | FileCheck --check-prefix=CHECKO2REM %s 22 ; RUN: | FileCheck --check-prefix=CHECKO2REM %s
23 23
24 ; Do O2 runs without -sandbox to make sure llvm.nacl.read.tp gets 24 ; Do O2 runs without -sandbox to make sure llvm.nacl.read.tp gets
25 ; lowered to __nacl_read_tp instead of gs:[0x0]. 25 ; lowered to __nacl_read_tp instead of gs:[0x0].
26 ; We also know that because it's O2, it'll have the O2REM optimizations. 26 ; We also know that because it's O2, it'll have the O2REM optimizations.
27 ; RUN: %p2i -i %s --args -O2 --verbose none \ 27 ; RUN: %p2i -i %s --args -O2 --verbose none \
28 ; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ 28 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
29 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \ 29 ; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - \
30 ; RUN: | FileCheck --check-prefix=CHECKO2UNSANDBOXEDREM %s 30 ; RUN: | FileCheck --check-prefix=CHECKO2UNSANDBOXEDREM %s
31 31
32 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s 32 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s
33 33
34 declare i8* @llvm.nacl.read.tp() 34 declare i8* @llvm.nacl.read.tp()
35 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) 35 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1)
36 declare void @llvm.memmove.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) 36 declare void @llvm.memmove.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1)
37 declare void @llvm.memset.p0i8.i32(i8*, i8, i32, i32, i1) 37 declare void @llvm.memset.p0i8.i32(i8*, i8, i32, i32, i1)
38 declare void @llvm.nacl.longjmp(i8*, i32) 38 declare void @llvm.nacl.longjmp(i8*, i32)
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 ret void 521 ret void
522 } 522 }
523 ; CHECK-LABEL: test_stacksave_multiple 523 ; CHECK-LABEL: test_stacksave_multiple
524 ; At least 3 copies of esp, but probably more from having to do the allocas. 524 ; At least 3 copies of esp, but probably more from having to do the allocas.
525 ; CHECK: mov {{.*}}, esp 525 ; CHECK: mov {{.*}}, esp
526 ; CHECK: mov {{.*}}, esp 526 ; CHECK: mov {{.*}}, esp
527 ; CHECK: mov {{.*}}, esp 527 ; CHECK: mov {{.*}}, esp
528 ; CHECK: mov esp, {{.*}} 528 ; CHECK: mov esp, {{.*}}
529 529
530 ; ERRORS-NOT: ICE translation error 530 ; ERRORS-NOT: ICE translation error
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/nacl-atomic-intrinsics.ll ('k') | tests_lit/llvm2ice_tests/nop-insertion.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698