brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 0a49cfa Raw
61 lines · plain
1; RUN: llc < %s -mtriple=aarch64-linux-gnu | FileCheck %s2 3@X = common local_unnamed_addr global i32 0, align 44 5define i32 @test1() {6; CHECK-LABEL: test1:7; CHECK:         .word b8; CHECK-NEXT:    .word .LBB0_29; CHECK: // %bb.1:10; CHECK: .LBB0_2: // Inline asm indirect target11entry:12  callbr void asm sideeffect "1:\0A\09.word b, ${0:l}\0A\09", "!i"()13          to label %cleanup [label %indirect]14 15indirect:16  br label %cleanup17 18cleanup:19  %retval.0 = phi i32 [ 1, %indirect ], [ 0, %entry ]20  ret i32 %retval.021}22 23define void @test2() {24; CHECK-LABEL: test2:25entry:26  %0 = load i32, ptr @X, align 427  %and = and i32 %0, 128  %tobool = icmp eq i32 %and, 029  br i1 %tobool, label %if.end10, label %if.then30 31if.then:32; CHECK:       .word b33; CHECK-NEXT:  .word .LBB1_334; CHECK:       .LBB1_3: // Inline asm indirect target35  callbr void asm sideeffect "1:\0A\09.word b, ${0:l}\0A\09", "!i"()36          to label %if.then4 [label %if.end6]37 38if.then4:39  %call5 = tail call i32 @g()40  br label %if.end641 42if.end6:43  %.pre = load i32, ptr @X, align 444  %.pre13 = and i32 %.pre, 145  %phitmp = icmp eq i32 %.pre13, 046  br i1 %phitmp, label %if.end10, label %if.then947 48if.then9:49; CHECK: .LBB1_5: // Inline asm indirect target50  callbr void asm sideeffect "", "!i"()51          to label %if.end10 [label %l_yes]52 53if.end10:54  br label %l_yes55 56l_yes:57  ret void58}59 60declare i32 @g(...)61