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

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

Issue 600043002: Clean up run script to use for testing Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes for rebase from master. Created 6 years, 2 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
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: %llvm2ice -O2 --verbose none %s \ 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: %llvm2ice -O2 --verbose none -sandbox %s \ 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 -x86-asm-syntax=intel -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: %llvm2ice -Om1 --verbose none -sandbox %s \ 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 -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 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: %llvm2ice -O2 --verbose none -sandbox %s \ 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 -x86-asm-syntax=intel -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: %llvm2ice -O2 --verbose none %s \ 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 -x86-asm-syntax=intel -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: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 32 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s
33 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s 33 ; TODO(kschimpf) Find out why lc2i is needed.
34 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ 34 ; RUN: %lc2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s
35 ; RUN: | FileCheck --check-prefix=DUMP %s
36 35
37 declare i8* @llvm.nacl.read.tp() 36 declare i8* @llvm.nacl.read.tp()
38 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) 37 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1)
39 declare void @llvm.memmove.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) 38 declare void @llvm.memmove.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1)
40 declare void @llvm.memset.p0i8.i32(i8*, i8, i32, i32, i1) 39 declare void @llvm.memset.p0i8.i32(i8*, i8, i32, i32, i1)
41 declare void @llvm.nacl.longjmp(i8*, i32) 40 declare void @llvm.nacl.longjmp(i8*, i32)
42 declare i32 @llvm.nacl.setjmp(i8*) 41 declare i32 @llvm.nacl.setjmp(i8*)
43 declare float @llvm.sqrt.f32(float) 42 declare float @llvm.sqrt.f32(float)
44 declare double @llvm.sqrt.f64(double) 43 declare double @llvm.sqrt.f64(double)
45 declare void @llvm.trap() 44 declare void @llvm.trap()
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 } 519 }
521 ; CHECK-LABEL: test_stacksave_multiple 520 ; CHECK-LABEL: test_stacksave_multiple
522 ; At least 3 copies of esp, but probably more from having to do the allocas. 521 ; At least 3 copies of esp, but probably more from having to do the allocas.
523 ; CHECK: mov {{.*}}, esp 522 ; CHECK: mov {{.*}}, esp
524 ; CHECK: mov {{.*}}, esp 523 ; CHECK: mov {{.*}}, esp
525 ; CHECK: mov {{.*}}, esp 524 ; CHECK: mov {{.*}}, esp
526 ; CHECK: mov esp, {{.*}} 525 ; CHECK: mov esp, {{.*}}
527 526
528 ; ERRORS-NOT: ICE translation error 527 ; ERRORS-NOT: ICE translation error
529 ; DUMP-NOT: SZ 528 ; DUMP-NOT: SZ
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