1 ; RUN: llvm-dis < %s.bc | FileCheck %s
2 ; callbr.ll.bc was generated by passing this file to llvm-as.
4 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
6 define i32 @test_asm_goto(i32 %x){
8 ; CHECK: callbr void asm "", "r,!i"(i32 %x)
9 ; CHECK-NEXT: to label %normal [label %fail]
10 callbr void asm "", "r,!i"(i32 %x) to label %normal [label %fail]
17 define i32 @test_asm_goto2(i32 %x){
19 ; CHECK: callbr void asm "", "r,!i,!i"(i32 %x)
20 ; CHECK-NEXT: to label %normal [label %fail, label %fail2]
21 callbr void asm "", "r,!i,!i"(i32 %x) to label %normal [label %fail, label %fail2]
30 define i32 @test_asm_goto3(i32 %x){
32 ; CHECK: callbr void asm "", "r,i,!i"(i32 %x, ptr blockaddress(@test_asm_goto3, %unrelated))
33 ; CHECK-NEXT: to label %normal [label %fail]
34 callbr void asm "", "r,i,!i"(i32 %x, i8* blockaddress(@test_asm_goto3, %unrelated)) to label %normal [label %fail]