40 lines · plain
1; RUN: llc -mtriple aarch64-unknown-windows-msvc %s -filetype asm -o - | FileCheck %s2; RUN: llc -mtriple aarch64-unknown-linux-gnu %s -filetype asm -o - | FileCheck %s3; RUN: llc -mtriple aarch64-apple-macosx %s -filetype asm -o - | FileCheck %s4; Regression test for https://github.com/llvm/llvm-project/issues/597515 6define void @"func"(ptr swifterror %0) #0 {7; CHECK-LABEL: func:8; CHECK: {{.*}}%bb.0:9; CHECK-NEXT: b {{\.?}}LBB0_210; CHECK-NEXT: {{\.?}}LBB0_1:{{.*}}%thirtythree11; CHECK-NEXT: {{.*}}=>This Inner Loop Header: Depth=112; CHECK-NEXT: b {{\.?}}LBB0_113; CHECK-NEXT: {{\.?}}LBB0_2:{{.*}}%thirtyeight14; CHECK-NEXT: b {{\.?}}LBB0_315; CHECK-NEXT: {{\.?}}LBB0_3:{{.*}}%thirtythree.preheader16; CHECK-NEXT: b {{\.?}}LBB0_117 br label %thirtyeight18 19five:20 br label %UelOc2l.exit21 22common.ret:23 ret void24 25UelOc2l.exit:26 %a = getelementptr inbounds [754 x ptr], ptr undef, i32 undef, i32 undef27 %b = load ptr, ptr %a, align 828 %c = bitcast ptr %b to ptr29 call void %c()30 br label %common.ret31 32thirtythree:33 br i1 false, label %UelOc2l.exit, label %thirtythree34 35thirtyeight:36 br i1 poison, label %thirtyeight, label %thirtythree37}38 39attributes #0 = { noinline optnone }40