Chromium Code Reviews

Side by Side Diff: tests_lit/llvm2ice_tests/struct-arith.pnacl.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: Fix nits. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 ; This test is lowered from C code that does some simple aritmetic 1 ; This test is lowered from C code that does some simple aritmetic
2 ; with struct members. 2 ; with struct members.
3 3
4 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s 4 ; TODO(kschimpf) Find out why lc2i is needed.
5 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 5 ; RUN: %lc2i -i %s --args --verbose inst | FileCheck %s
6 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s 6 ; RUN: %lc2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s
7 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ 7 ; RUN: %lc2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s
8 ; RUN: | FileCheck --check-prefix=DUMP %s
9 8
10 define internal i32 @compute_important_function(i32 %v1, i32 %v2) { 9 define internal i32 @compute_important_function(i32 %v1, i32 %v2) {
11 entry: 10 entry:
12 %__2 = inttoptr i32 %v1 to i32* 11 %__2 = inttoptr i32 %v1 to i32*
13 %_v0 = load i32* %__2, align 1 12 %_v0 = load i32* %__2, align 1
14 13
15 ; CHECK: entry: 14 ; CHECK: entry:
16 ; CHECK-NEXT: %__2 = i32 %v1 15 ; CHECK-NEXT: %__2 = i32 %v1
17 ; CHECK-NEXT: %_v0 = load i32* {{.*}}, align 1 16 ; CHECK-NEXT: %_v0 = load i32* {{.*}}, align 1
18 17
(...skipping 27 matching lines...)
46 %sub = sub i32 %add, %mul3 45 %sub = sub i32 %add, %mul3
47 %sub12 = sub i32 %sub, %mul11 46 %sub12 = sub i32 %sub, %mul11
48 ret i32 %sub12 47 ret i32 %sub12
49 48
50 ; CHECK: %sub12 = sub i32 %sub, %mul11 49 ; CHECK: %sub12 = sub i32 %sub, %mul11
51 ; CHECK-NEXT: ret i32 %sub12 50 ; CHECK-NEXT: ret i32 %sub12
52 } 51 }
53 52
54 ; ERRORS-NOT: ICE translation error 53 ; ERRORS-NOT: ICE translation error
55 ; DUMP-NOT: SZ 54 ; DUMP-NOT: SZ
OLDNEW

Powered by Google App Engine