1 ; RUN: llc -mtriple=arm64-apple-ios %s -o - | FileCheck %s
3 define swifttailcc void @foo(ptr %call) ssp {
5 %var = alloca [28 x i8], align 16
6 br i1 undef, label %if.then, label %if.end
12 ; CHECK: mov x[[NULL:[0-9]+]], xzr
13 ; CHECK: ldr [[FPTR:x[0-9]+]], [x[[NULL]]]
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)
21 declare ptr @pthread_getspecific()
23 ; Function Attrs: nofree nosync nounwind readnone speculatable willreturn
24 declare void @llvm.dbg.value(metadata, metadata, metadata) #1
26 !llvm.module.flags = !{!2}
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")
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)
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)