1 ; RUN: llvm-dis < %s.bc| FileCheck %s
3 ; TerminatorOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
4 ; The test checks that LLVM does not misread terminator instructions from
7 define i32 @condbr(i1 %cond){
9 ; CHECK: br i1 %cond, label %TrueLabel, label %FalseLabel
10 br i1 %cond, label %TrueLabel, label %FalseLabel
19 define i32 @uncondbr(){
21 ; CHECK: br label %uncondLabel
28 define i32 @indirectbr(i8* %Addr){
30 ; CHECK: indirectbr i8* %Addr, [label %bb1, label %bb2]
31 indirectbr i8* %Addr, [ label %bb1, label %bb2 ]
40 define void @unreachable(){
48 define i32 @retInstr(){
54 define void @retInstr2(){
60 define i32 @switchInstr(i32 %x){
62 ; CHECK: switch i32 %x, label %label3 [
63 switch i32 %x, label %label3 [
64 ; CHECK-NEXT: i32 1, label %label1
66 ; CHECK-NEXT: i32 2, label %label2