| ; Tests if we handle a branch instructions. |
| ; RUN: llvm-as < %s | pnacl-freeze -allow-local-symbol-tables \ |
| ; RUN: | %llvm2ice -notranslate -verbose=inst -build-on-read \ |
| ; RUN: -allow-pnacl-reader-error-recovery \ |
| ; RUN: -allow-local-symbol-tables \ |
| define void @SimpleBranch() { |
| ; CHECK: define void @SimpleBranch() { |
| ; CHECK-NEXT: br label %b3 |
| ; CHECK-NEXT: br label %b2 |
| ; CHECK-NEXT: br label %b1 |
| define void @CondBranch(i32 %p) { |
| %test = trunc i32 %p to i1 |
| br i1 %test, label %b1, label %b2 |
| br i1 %test, label %b2, label %b1 |
| ; CHECK-NEXT: define void @CondBranch(i32 %p) { |
| ; CHECK-NEXT: %test = trunc i32 %p to i1 |
| ; CHECK-NEXT: br i1 %test, label %b1, label %b2 |
| ; CHECK-NEXT: br i1 %test, label %b2, label %b1 |