1 ; RUN: llc < %s -mtriple=aarch64-linux-gnu | FileCheck %s
3 @X = common local_unnamed_addr global i32 0, align 4
8 ; CHECK-NEXT: .word .Ltmp0
10 ; CHECK-LABEL: .LBB0_1: // %l_yes
11 ; CHECK-LABEL: .LBB0_2: // %cleanup
13 callbr void asm sideeffect "1:\0A\09.word b, ${0:l}\0A\09", "X"(i8* blockaddress(@test1, %l_yes))
14 to label %cleanup [label %l_yes]
20 %retval.0 = phi i32 [ 1, %l_yes ], [ 0, %entry ]
24 define void @test2() {
27 %0 = load i32, i32* @X, align 4
29 %tobool = icmp eq i32 %and, 0
30 br i1 %tobool, label %if.end10, label %if.then
34 ; CHECK-NEXT: .word .Ltmp2
35 ; CHECK-LABEL: .Ltmp2:
36 ; CHECK-NEXT: .LBB1_3: // %if.end6
37 callbr void asm sideeffect "1:\0A\09.word b, ${0:l}\0A\09", "X"(i8* blockaddress(@test2, %if.end6))
38 to label %if.then4 [label %if.end6]
41 %call5 = tail call i32 bitcast (i32 (...)* @g to i32 ()*)()
45 %.pre = load i32, i32* @X, align 4
46 %.pre13 = and i32 %.pre, 1
47 %phitmp = icmp eq i32 %.pre13, 0
48 br i1 %phitmp, label %if.end10, label %if.then9
51 ; CHECK-LABEL: .Ltmp4:
52 ; CHECK-NEXT: .LBB1_5: // %l_yes
53 callbr void asm sideeffect "", "X"(i8* blockaddress(@test2, %l_yes))
54 to label %if.end10 [label %l_yes]