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

Side by Side Diff: tests_lit/llvm2ice_tests/branch-simple.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/branch-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 ; 1. Trivial smoke test of compare and branch, with multiple basic 1 ; 1. Trivial smoke test of compare and branch, with multiple basic
2 ; blocks. 2 ; blocks.
3 ; 2. For a conditional branch on a constant boolean value, make sure 3 ; 2. For a conditional branch on a constant boolean value, make sure
4 ; we don't lower to a cmp instructions with an immediate as the first 4 ; we don't lower to a cmp instructions with an immediate as the first
5 ; source operand. 5 ; source operand.
6 6
7 ; RUN: %llvm2ice -O2 --verbose inst %s | FileCheck %s 7 ; RUN: %p2i -i %s --args -O2 --verbose inst | FileCheck %s
8 ; RUN: %llvm2ice -Om1 --verbose inst %s | FileCheck %s 8 ; RUN: %p2i -i %s --args -Om1 --verbose inst | FileCheck %s
9 ; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s 9 ; RUN: %p2i -i %s --args --verbose none | FileCheck --check-prefix=ERRORS %s
10 ; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s 10 ; RUN: %p2i -i %s --insts | %szdiff %s | FileCheck --check-prefix=DUMP %s
11 ; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \
12 ; RUN: | FileCheck --check-prefix=DUMP %s
13 11
14 define i32 @simple_cond_branch(i32 %foo, i32 %bar) { 12 define i32 @simple_cond_branch(i32 %foo, i32 %bar) {
15 entry: 13 entry:
16 %r1 = icmp eq i32 %foo, %bar 14 %r1 = icmp eq i32 %foo, %bar
17 br i1 %r1, label %Equal, label %Unequal 15 br i1 %r1, label %Equal, label %Unequal
18 Equal: 16 Equal:
19 ret i32 %foo 17 ret i32 %foo
20 Unequal: 18 Unequal:
21 ret i32 %bar 19 ret i32 %bar
22 ; CHECK-LABEL: simple_cond_branch 20 ; CHECK-LABEL: simple_cond_branch
(...skipping 10 matching lines...) Expand all
33 __1: 31 __1:
34 ret i32 21 32 ret i32 21
35 __2: 33 __2:
36 ret i32 43 34 ret i32 43
37 } 35 }
38 ; CHECK-LABEL: test_br_const 36 ; CHECK-LABEL: test_br_const
39 ; CHECK-NOT: cmp {{[0-9]*}}, 37 ; CHECK-NOT: cmp {{[0-9]*}},
40 38
41 ; ERRORS-NOT: ICE translation error 39 ; ERRORS-NOT: ICE translation error
42 ; DUMP-NOT: SZ 40 ; DUMP-NOT: SZ
OLDNEW
« no previous file with comments | « tests_lit/llvm2ice_tests/branch-opt.ll ('k') | tests_lit/llvm2ice_tests/call.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698