xref: /llvm-project/llvm/test/CodeGen/X86/tailcall-ssp-split-debug.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc -mtriple=x86_64-apple-macosx %s -o - | FileCheck %s
2
3define void @foo() ssp {
4; CHECK-LABEL: foo:
5  %ptr = alloca [32 x i32], align 16
6  br i1 undef, label %true, label %false
7
8true:
9  unreachable
10
11false:
12  call void @llvm.dbg.value(metadata ptr undef, metadata !19, metadata !DIExpression()) #2, !dbg !21
13  ret void
14}
15
16declare ptr @pthread_getspecific()
17
18; Function Attrs: nofree nosync nounwind readnone speculatable willreturn
19declare void @llvm.dbg.value(metadata, metadata, metadata) #1
20
21!llvm.module.flags = !{!2}
22!llvm.dbg.cu = !{!11}
23
24!2 = !{i32 2, !"Debug Info Version", i32 3}
25!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")
26!12 = !DIFile(filename: "tmp.c", directory: "/Users/tim/llvm-internal/llvm-project/build")
27!13 = !{}
28!14 = !{!"Apple clang version 13.1.6 (clang-1316.0.17.4)"}
29!15 = distinct !DISubprogram(name: "bar", scope: !12, file: !12, line: 3, type: !16, scopeLine: 3, flags: DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !11, retainedNodes: !18)
30!16 = !DISubroutineType(types: !17)
31!17 = !{null}
32!18 = !{!19}
33!19 = !DILocalVariable(name: "var", scope: !15, file: !12, line: 4, type: !20)
34!20 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
35!21 = !DILocation(line: 0, scope: !15)
36