1 ; REQUIRES: x86-registered-target
2 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
4 %struct.t1 = type { i32 }
6 @g1 = dso_local global %struct.t1 zeroinitializer, align 4, !dbg !0
9 !llvm.module.flags = !{!13, !14, !15, !16, !17}
12 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
13 !1 = distinct !DIGlobalVariable(name: "g1", scope: !2, file: !3, line: 7, type: !6, isLocal: false, isDefinition: true, annotations: !10)
14 !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 13.0.0 (https://github.com/llvm/llvm-project.git 47af5574a87dc298b5c6c36ff6a969c8c77c8499)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5, splitDebugInlining: false, nameTableKind: None)
15 !3 = !DIFile(filename: "t.c", directory: "/home/yhs/work/tests/llvm/btf_tag")
18 !6 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "t1", file: !3, line: 4, size: 32, elements: !7)
20 !8 = !DIDerivedType(tag: DW_TAG_member, name: "a", scope: !6, file: !3, line: 5, baseType: !9, size: 32)
21 !9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
23 !11 = !{!"btf_decl_tag", !"tag1"}
24 !12 = !{!"btf_decl_tag", !"tag2"}
26 ; CHECK: distinct !DIGlobalVariable(name: "g1"
27 ; CHECK-SAME: annotations: ![[ANNOT:[0-9]+]]
28 ; CHECK: ![[ANNOT]] = !{![[TAG1:[0-9]+]], ![[TAG2:[0-9]+]]}
29 ; CHECK: ![[TAG1]] = !{!"btf_decl_tag", !"tag1"}
30 ; CHECK: ![[TAG2]] = !{!"btf_decl_tag", !"tag2"}
32 !13 = !{i32 7, !"Dwarf Version", i32 4}
33 !14 = !{i32 2, !"Debug Info Version", i32 3}
34 !15 = !{i32 1, !"wchar_size", i32 4}
35 !16 = !{i32 7, !"uwtable", i32 1}
36 !17 = !{i32 7, !"frame-pointer", i32 2}
37 !18 = !{!"clang version 13.0.0 (https://github.com/llvm/llvm-project.git 47af5574a87dc298b5c6c36ff6a969c8c77c8499)"}