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

Side by Side Diff: tests_lit/llvm2ice_tests/cond-br-same-target.ll

Issue 1214043002: Subzero: Fix a new test under MINIMAL mode. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; Test conditional branch where targets are the same. 1 ; Test conditional branch where targets are the same.
2 ; Tests issue: https://code.google.com/p/nativeclient/issues/detail?id=4212 2 ; Tests issue: https://code.google.com/p/nativeclient/issues/detail?id=4212
3 ; REQUIRES: allow_dump
3 4
4 ; RUN: %p2i -i %s --insts | FileCheck %s 5 ; RUN: %p2i -i %s --insts | FileCheck %s
5 6
6 define void @f(i32 %foo, i32 %bar) { 7 define void @f(i32 %foo, i32 %bar) {
7 entry: 8 entry:
8 %c = icmp ult i32 %foo, %bar 9 %c = icmp ult i32 %foo, %bar
9 br i1 %c, label %block, label %block 10 br i1 %c, label %block, label %block
10 block: 11 block:
11 ret void 12 ret void
12 } 13 }
13 14
14 ; Note that the branch is converted to an unconditional branch. 15 ; Note that the branch is converted to an unconditional branch.
15 16
16 ; CHECK: define void @f(i32 %foo, i32 %bar) { 17 ; CHECK: define void @f(i32 %foo, i32 %bar) {
17 ; CHECK-NEXT: entry: 18 ; CHECK-NEXT: entry:
18 ; CHECK-NEXT: %c = icmp ult i32 %foo, %bar 19 ; CHECK-NEXT: %c = icmp ult i32 %foo, %bar
19 ; CHECK-NEXT: br label %block 20 ; CHECK-NEXT: br label %block
20 ; CHECK-NEXT: block: 21 ; CHECK-NEXT: block:
21 ; CHECK-NEXT: ret void 22 ; CHECK-NEXT: ret void
22 ; CHECK-NEXT: } 23 ; CHECK-NEXT: }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698