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

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

Issue 1215443002: Fixes bug on conditional branch where the targets are the same. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Clean up test. 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 | « src/IceInst.cpp ('k') | 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
(Empty)
1 ; Test conditional branch where targets are the same.
2 ; Tests issue: https://code.google.com/p/nativeclient/issues/detail?id=4212
3
4 ; RUN: %p2i -i %s --insts | FileCheck %s
5
6 define void @f(i32 %foo, i32 %bar) {
7 entry:
8 %c = icmp ult i32 %foo, %bar
9 br i1 %c, label %block, label %block
10 block:
11 ret void
12 }
13
14 ; Note that the branch is converted to an unconditional branch.
15
16 ; CHECK: define void @f(i32 %foo, i32 %bar) {
17 ; CHECK-NEXT: entry:
18 ; CHECK-NEXT: %c = icmp ult i32 %foo, %bar
19 ; CHECK-NEXT: br label %block
20 ; CHECK-NEXT: block:
21 ; CHECK-NEXT: ret void
22 ; CHECK-NEXT: }
OLDNEW
« no previous file with comments | « src/IceInst.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698