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

Side by Side Diff: tests_lit/llvm2ice_tests/arith-opt.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
« no previous file with comments | « tests_lit/llvm2ice_tests/alloc.ll ('k') | tests_lit/llvm2ice_tests/arithmetic-chain.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 is a very early test that just checks the representation of i32 1 ; This is a very early test that just checks the representation of i32
2 ; arithmetic instructions. No assembly tests are done. 2 ; arithmetic instructions. No assembly tests are done.
3 3
4 ; RUN: %llvm2ice --verbose inst %s | FileCheck %s 4 ; RUN: %p2i -i %s --args --verbose inst | FileCheck %s
5 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 5 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s
6 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s 6 ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s
7 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
8 ; RUN: | FileCheck --check-prefix=DUMP %s
9 7
10 define i32 @Add(i32 %a, i32 %b) { 8 define i32 @Add(i32 %a, i32 %b) {
11 ; CHECK: define i32 @Add 9 ; CHECK: define i32 @Add
12 entry: 10 entry:
13 %add = add i32 %b, %a 11 %add = add i32 %b, %a
14 ; CHECK: add 12 ; CHECK: add
15 tail call void @Use(i32 %add) 13 tail call void @Use(i32 %add)
16 ; CHECK: call Use 14 ; CHECK: call Use
17 ret i32 %add 15 ret i32 %add
18 } 16 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 define i64 @MulImm() { 114 define i64 @MulImm() {
117 entry: 115 entry:
118 %mul = mul i64 3, 4 116 %mul = mul i64 3, 4
119 ret i64 %mul 117 ret i64 %mul
120 } 118 }
121 ; CHECK-LABEL: MulImm 119 ; CHECK-LABEL: MulImm
122 ; CHECK-NOT: mul {{[0-9]+}} 120 ; CHECK-NOT: mul {{[0-9]+}}
123 121
124 ; ERRORS-NOT: ICE translation error 122 ; ERRORS-NOT: ICE translation error
125 ; DUMP-NOT: SZ 123 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/alloc.ll ('k') | tests_lit/llvm2ice_tests/arithmetic-chain.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698