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

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

Issue 205613002: Initial skeleton of Subzero. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Address Jan's latest comments Created 6 years, 8 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
(Empty)
1 ; RUIN: %llvm2ice %s | FileCheck %s
2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
3 ; RUN: %szdiff --llvm2ice=%llvm2ice %s | FileCheck --check-prefix=DUMP %s
4
5 define void @testSelect(i32 %a, i32 %b) {
6 entry:
7 %cmp = icmp slt i32 %a, %b
8 %cond = select i1 %cmp, i32 %a, i32 %b
9 tail call void @useInt(i32 %cond)
10 %cmp1 = icmp sgt i32 %a, %b
11 %cond2 = select i1 %cmp1, i32 10, i32 20
12 tail call void @useInt(i32 %cond2)
13 ret void
14 }
15
16 declare void @useInt(i32)
17
18 ; CHECK: .globl testSelect
19 ; CHECK: cmp
20 ; CHECK: cmp
21 ; CHECK: call useInt
22 ; CHECK: cmp
23 ; CHECK: cmp
24 ; CHECK: call useInt
25 ; CHECK: ret
26
27 ; ERRORS-NOT: ICE translation error
28 ; DUMP-NOT: SZ
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698