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

Side by Side Diff: tests_lit/llvm2ice_tests/branch-simple.ll

Issue 265703002: Add Om1 lowering with no optimizations (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Merge changed from Karl's committed CL 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/bool-opt.ll ('k') | tests_lit/llvm2ice_tests/call.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 -verbose inst | FileCheck %s 1 ; Trivial smoke test of compare and branch, with multiple basic
2 ; RUIN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 2 ; blocks.
3
4 ; RUN: %llvm2ice %s --verbose inst | FileCheck %s
5 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s
3 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s 6 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s
4 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ 7 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
5 ; RUN: | FileCheck --check-prefix=DUMP %s 8 ; RUN: | FileCheck --check-prefix=DUMP %s
6 9
7 define i32 @simple_cond_branch(i32 %foo, i32 %bar) { 10 define i32 @simple_cond_branch(i32 %foo, i32 %bar) {
8 entry: 11 entry:
9 %r1 = icmp eq i32 %foo, %bar 12 %r1 = icmp eq i32 %foo, %bar
10 br i1 %r1, label %Equal, label %Unequal 13 br i1 %r1, label %Equal, label %Unequal
11 Equal: 14 Equal:
12 ret i32 %foo 15 ret i32 %foo
13 Unequal: 16 Unequal:
14 ret i32 %bar 17 ret i32 %bar
15 ; CHECK: br i1 %r1, label %Equal, label %Unequal 18 ; CHECK: br i1 %r1, label %Equal, label %Unequal
16 ; CHECK: Equal: 19 ; CHECK: Equal:
17 ; CHECK: ret i32 %foo 20 ; CHECK: ret i32 %foo
18 ; CHECK: Unequal: 21 ; CHECK: Unequal:
19 ; CHECK: ret i32 %bar 22 ; CHECK: ret i32 %bar
20 } 23 }
21 24
22 ; ERRORS-NOT: ICE translation error 25 ; ERRORS-NOT: ICE translation error
23 ; DUMP-NOT: SZ 26 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/bool-opt.ll ('k') | tests_lit/llvm2ice_tests/call.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698