1; RUN: llc -mtriple=arm64-apple-ios %s -o - | FileCheck %s 2 3define swifttailcc void @foo(ptr %call) ssp { 4; CHECK-LABEL: foo: 5 %var = alloca [28 x i8], align 16 6 br i1 undef, label %if.then, label %if.end 7 8if.then: 9 ret void 10 11if.end: 12 ; CHECK: mov x[[NULL:[0-9]+]], xzr 13 ; CHECK: ldr [[FPTR:x[0-9]+]], [x[[NULL]]] 14 ; CHECK: br [[FPTR]] 15 call void @llvm.dbg.value(metadata ptr %call, metadata !19, metadata !DIExpression()), !dbg !21 16 %fptr = load ptr, ptr null, align 8 17 musttail call swifttailcc void %fptr(ptr null) 18 ret void 19} 20 21declare ptr @pthread_getspecific() 22 23; Function Attrs: nofree nosync nounwind readnone speculatable willreturn 24declare void @llvm.dbg.value(metadata, metadata, metadata) #1 25 26!llvm.module.flags = !{!2} 27!llvm.dbg.cu = !{!11} 28 29!2 = !{i32 2, !"Debug Info Version", i32 3} 30!11 = distinct !DICompileUnit(language: DW_LANG_C99, file: !12, producer: "Apple clang version 13.1.6 (clang-1316.0.17.4)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !13, splitDebugInlining: false, nameTableKind: None, sysroot: "/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk", sdk: "MacOSX12.3.sdk") 31!12 = !DIFile(filename: "tmp.c", directory: "/Users/tim/llvm-internal/llvm-project/build") 32!13 = !{} 33!14 = !{!"Apple clang version 13.1.6 (clang-1316.0.17.4)"} 34!15 = distinct !DISubprogram(name: "bar", scope: !12, file: !12, line: 3, type: !16, scopeLine: 3, flags: DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !11, retainedNodes: !18) 35!16 = !DISubroutineType(types: !17) 36!17 = !{null} 37!18 = !{!19} 38!19 = !DILocalVariable(name: "var", scope: !15, file: !12, line: 4, type: !20) 39!20 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 40!21 = !DILocation(line: 0, scope: !15) 41