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

Side by Side Diff: tests_lit/llvm2ice_tests/select-opt.ll

Issue 277033003: Modify pnacl subzero to be able to read pnacl bitcode files. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 7 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/return-int-arg.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 ; RUIN: %llvm2ice %s | FileCheck %s 1 ; RUIN: %llvm2ice %s | FileCheck %s
2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
3 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s 3 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
4 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
5 ; RUN: | FileCheck --check-prefix=DUMP %s
4 6
5 define void @testSelect(i32 %a, i32 %b) { 7 define void @testSelect(i32 %a, i32 %b) {
6 entry: 8 entry:
7 %cmp = icmp slt i32 %a, %b 9 %cmp = icmp slt i32 %a, %b
8 %cond = select i1 %cmp, i32 %a, i32 %b 10 %cond = select i1 %cmp, i32 %a, i32 %b
9 tail call void @useInt(i32 %cond) 11 tail call void @useInt(i32 %cond)
10 %cmp1 = icmp sgt i32 %a, %b 12 %cmp1 = icmp sgt i32 %a, %b
11 %cond2 = select i1 %cmp1, i32 10, i32 20 13 %cond2 = select i1 %cmp1, i32 10, i32 20
12 tail call void @useInt(i32 %cond2) 14 tail call void @useInt(i32 %cond2)
13 ret void 15 ret void
14 } 16 }
15 17
16 declare void @useInt(i32) 18 declare void @useInt(i32)
17 19
18 ; CHECK: .globl testSelect 20 ; CHECK: .globl testSelect
19 ; CHECK: cmp 21 ; CHECK: cmp
20 ; CHECK: cmp 22 ; CHECK: cmp
21 ; CHECK: call useInt 23 ; CHECK: call useInt
22 ; CHECK: cmp 24 ; CHECK: cmp
23 ; CHECK: cmp 25 ; CHECK: cmp
24 ; CHECK: call useInt 26 ; CHECK: call useInt
25 ; CHECK: ret 27 ; CHECK: ret
26 28
27 ; ERRORS-NOT: ICE translation error 29 ; ERRORS-NOT: ICE translation error
28 ; DUMP-NOT: SZ 30 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/return-int-arg.ll ('k') | tests_lit/llvm2ice_tests/shift.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698