xref: /aosp_15_r20/external/llvm/test/DebugInfo/X86/dbg-merge-loc-entry.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -o %t -filetype=obj
2*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -o %t -filetype=obj -regalloc=basic
4*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dwarfdump -debug-dump=info %t | FileCheck %s
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
7*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-apple-darwin8"
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker;CHECK: DW_AT_location{{.*}}(<0x1> 55 )
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker%0 = type { i64, i1 }
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker@__clz_tab = external constant [256 x i8]
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Workerdefine hidden i128 @__divti3(i128 %u, i128 %v) nounwind readnone !dbg !9 {
16*9880d681SAndroid Build Coastguard Workerentry:
17*9880d681SAndroid Build Coastguard Worker  tail call void @llvm.dbg.value(metadata i128 %u, i64 0, metadata !14, metadata !DIExpression()), !dbg !15
18*9880d681SAndroid Build Coastguard Worker  tail call void @llvm.dbg.value(metadata i64 0, i64 0, metadata !17, metadata !DIExpression()), !dbg !21
19*9880d681SAndroid Build Coastguard Worker  br i1 undef, label %bb2, label %bb4, !dbg !22
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Workerbb2:                                              ; preds = %entry
22*9880d681SAndroid Build Coastguard Worker  br label %bb4, !dbg !23
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Workerbb4:                                              ; preds = %bb2, %entry
25*9880d681SAndroid Build Coastguard Worker  br i1 undef, label %__udivmodti4.exit, label %bb82.i, !dbg !24
26*9880d681SAndroid Build Coastguard Worker
27*9880d681SAndroid Build Coastguard Workerbb82.i:                                           ; preds = %bb4
28*9880d681SAndroid Build Coastguard Worker  unreachable
29*9880d681SAndroid Build Coastguard Worker
30*9880d681SAndroid Build Coastguard Worker__udivmodti4.exit:                                ; preds = %bb4
31*9880d681SAndroid Build Coastguard Worker  ret i128 undef, !dbg !27
32*9880d681SAndroid Build Coastguard Worker}
33*9880d681SAndroid Build Coastguard Worker
34*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
35*9880d681SAndroid Build Coastguard Worker
36*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
37*9880d681SAndroid Build Coastguard Worker
38*9880d681SAndroid Build Coastguard Workerdeclare %0 @llvm.uadd.with.overflow.i64(i64, i64) nounwind readnone
39*9880d681SAndroid Build Coastguard Worker
40*9880d681SAndroid Build Coastguard Worker!llvm.dbg.cu = !{!2}
41*9880d681SAndroid Build Coastguard Worker!llvm.module.flags = !{!32}
42*9880d681SAndroid Build Coastguard Worker
43*9880d681SAndroid Build Coastguard Worker!0 = distinct !DISubprogram(name: "__udivmodti4", line: 879, isLocal: true, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, unit: !2, scopeLine: 879, file: !29, scope: !1, type: !3)
44*9880d681SAndroid Build Coastguard Worker!1 = !DIFile(filename: "foobar.c", directory: "/tmp")
45*9880d681SAndroid Build Coastguard Worker!2 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: FullDebug, file: !29, enums: !31, retainedTypes: !31, imports:  null)
46*9880d681SAndroid Build Coastguard Worker!3 = !DISubroutineType(types: !4)
47*9880d681SAndroid Build Coastguard Worker!4 = !{!5, !5, !5, !8}
48*9880d681SAndroid Build Coastguard Worker!5 = !DIDerivedType(tag: DW_TAG_typedef, name: "UTItype", line: 166, file: !30, scope: !6, baseType: !7)
49*9880d681SAndroid Build Coastguard Worker!6 = !DIFile(filename: "foobar.h", directory: "/tmp")
50*9880d681SAndroid Build Coastguard Worker!7 = !DIBasicType(tag: DW_TAG_base_type, size: 128, align: 128, encoding: DW_ATE_unsigned)
51*9880d681SAndroid Build Coastguard Worker!8 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, file: !29, scope: !1, baseType: !5)
52*9880d681SAndroid Build Coastguard Worker!9 = distinct !DISubprogram(name: "__divti3", linkageName: "__divti3", line: 1094, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, unit: !2, scopeLine: 1094, file: !29, scope: !1, type: !10)
53*9880d681SAndroid Build Coastguard Worker!10 = !DISubroutineType(types: !11)
54*9880d681SAndroid Build Coastguard Worker!11 = !{!12, !12, !12}
55*9880d681SAndroid Build Coastguard Worker!12 = !DIDerivedType(tag: DW_TAG_typedef, name: "TItype", line: 160, file: !30, scope: !6, baseType: !13)
56*9880d681SAndroid Build Coastguard Worker!13 = !DIBasicType(tag: DW_TAG_base_type, size: 128, align: 128, encoding: DW_ATE_signed)
57*9880d681SAndroid Build Coastguard Worker!14 = !DILocalVariable(name: "u", line: 1093, arg: 1, scope: !9, file: !1, type: !12)
58*9880d681SAndroid Build Coastguard Worker!15 = !DILocation(line: 1093, scope: !9)
59*9880d681SAndroid Build Coastguard Worker!16 = !{i64 0}
60*9880d681SAndroid Build Coastguard Worker!17 = !DILocalVariable(name: "c", line: 1095, scope: !18, file: !1, type: !19)
61*9880d681SAndroid Build Coastguard Worker!18 = distinct !DILexicalBlock(line: 1094, column: 0, file: !29, scope: !9)
62*9880d681SAndroid Build Coastguard Worker!19 = !DIDerivedType(tag: DW_TAG_typedef, name: "word_type", line: 424, file: !30, scope: !6, baseType: !20)
63*9880d681SAndroid Build Coastguard Worker!20 = !DIBasicType(tag: DW_TAG_base_type, name: "long int", size: 64, align: 64, encoding: DW_ATE_signed)
64*9880d681SAndroid Build Coastguard Worker!21 = !DILocation(line: 1095, scope: !18)
65*9880d681SAndroid Build Coastguard Worker!22 = !DILocation(line: 1103, scope: !18)
66*9880d681SAndroid Build Coastguard Worker!23 = !DILocation(line: 1104, scope: !18)
67*9880d681SAndroid Build Coastguard Worker!24 = !DILocation(line: 1003, scope: !25, inlinedAt: !26)
68*9880d681SAndroid Build Coastguard Worker!25 = distinct !DILexicalBlock(line: 879, column: 0, file: !29, scope: !0)
69*9880d681SAndroid Build Coastguard Worker!26 = !DILocation(line: 1107, scope: !18)
70*9880d681SAndroid Build Coastguard Worker!27 = !DILocation(line: 1111, scope: !18)
71*9880d681SAndroid Build Coastguard Worker!29 = !DIFile(filename: "foobar.c", directory: "/tmp")
72*9880d681SAndroid Build Coastguard Worker!30 = !DIFile(filename: "foobar.h", directory: "/tmp")
73*9880d681SAndroid Build Coastguard Worker!31 = !{}
74*9880d681SAndroid Build Coastguard Worker!32 = !{i32 1, !"Debug Info Version", i32 3}
75