Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 --args -O2 --verbose inst -threads=0 | FileCheck %s | |
|
Jim Stichnoth
2015/06/25 21:26:29
You should be able to use "--insts" instead of "--
Karl
2015/06/25 22:33:42
Done.
| |
| 5 | |
| 6 define void @f(i32 %foo, i32 %bar) { | |
| 7 %c = icmp ult i32 %foo, %bar | |
| 8 br i1 %c, label %block, label %block | |
| 9 block: | |
| 10 ret void | |
| 11 } | |
| 12 | |
| 13 ; The following shows that the input is parsed correctly. | |
|
Jim Stichnoth
2015/06/25 21:26:29
Actually, it shows that conditional has already be
Karl
2015/06/25 22:33:42
Correct. The test now shows it.
| |
| 14 | |
| 15 ; CHECK: ================ Initial CFG ================ | |
|
Jim Stichnoth
2015/06/25 21:26:29
Probably better not to check for this header, whic
Karl
2015/06/25 22:33:42
Removed.
| |
| 16 ; CHECK-NEXT: define void @f(i32 %foo, i32 %bar) { | |
| 17 ; CHECK-NEXT: __0: | |
| 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: } | |
| 23 | |
| 24 ; The following shows the conditional branch is converted to unconditional. | |
|
Jim Stichnoth
2015/06/25 21:26:30
Given my earlier comment, I don't think this latte
Karl
2015/06/25 22:33:42
Removed.
| |
| 25 | |
| 26 ; CHECK: ================ After x86 address mode opt ================ | |
| 27 ; CHECK-NEXT: define void @f(i32 %foo, i32 %bar) { | |
| 28 ; CHECK-NEXT: __0: | |
| 29 ; CHECK-NEXT: br label %block | |
| 30 ; CHECK-NEXT: block: | |
| 31 ; CHECK-NEXT: ret void | |
| 32 ; CHECK-NEXT: } | |
| OLD | NEW |