1 ; Check .loc directive is emitted at correct position
2 ; RUN: llc -O0 -mtriple x86_64-linux-gnu <%s | FileCheck %s
6 ; CHECK: movl $0, -4(%rsp)
7 ; CHECK: .loc 1 1 14 prologue_end # none.c:1:14
9 define dso_local i32 @main() !dbg !7 {
11 fence acquire, !dbg !9
12 fence release, !dbg !9
13 %retval = alloca i32, align 4
14 store i32 0, ptr %retval, align 4
19 !llvm.module.flags = !{!3, !4, !5}
22 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: DebugDirectivesOnly, enums: !2, splitDebugInlining: false, nameTableKind: None)
23 !1 = !DIFile(filename: "none.c", directory: "/temp")
25 !3 = !{i32 2, !"Tracing", i32 1}
26 !4 = !{i32 2, !"Debug Info Version", i32 3}
27 !5 = !{i32 1, !"wchar_size", i32 4}
28 !6 = !{!"clang version 11.0.0"}
29 !7 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
30 !8 = !DISubroutineType(types: !2)
31 !9 = !DILocation(line: 1, column: 14, scope: !7)