Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-dwp / X86 / tu_units_v5.s
blob7f2dc8386cff4af531f860c7a9de28df7fb81012
1 # This test checks if llvm-dwp can correctly generate the tu index section (v5).
3 # RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.o \
4 # RUN: -split-dwarf-file=%t.dwo -dwarf-version=5
5 # RUN: llvm-dwp %t.dwo -o %t.dwp
6 # RUN: llvm-dwarfdump -debug-info -debug-tu-index %t.dwp | FileCheck %s
8 ## Note: In order to check whether the type unit index is generated
9 ## there is no need to add the missing DIEs for the structure type of the type unit.
11 # CHECK-DAG: .debug_info.dwo contents:
12 # CHECK: 0x00000000: Type Unit: length = 0x00000017, format = DWARF32, version = 0x0005, unit_type = DW_UT_split_type, abbr_offset = 0x0000, addr_size = 0x08, name = '', type_signature = [[TUID1:.*]], type_offset = 0x0019 (next unit at 0x0000001b)
13 # CHECK: 0x0000001b: Type Unit: length = 0x00000017, format = DWARF32, version = 0x0005, unit_type = DW_UT_split_type, abbr_offset = 0x0000, addr_size = 0x08, name = '', type_signature = [[TUID2:.*]], type_offset = 0x0019 (next unit at 0x00000036)
14 # CHECK-DAG: .debug_tu_index contents:
15 # CHECK: version = 5, units = 2, slots = 4
16 # CHECK: Index Signature INFO ABBREV
17 # CHECK: 1 [[TUID1]] [0x0000000000000000, 0x000000000000001b) [0x00000000, 0x00000010)
18 # CHECK: 4 [[TUID2]] [0x000000000000001b, 0x0000000000000036) [0x00000000, 0x00000010)
20 .section .debug_info.dwo,"e",@progbits
21 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit
22 .Ldebug_info_dwo_start0:
23 .short 5 # DWARF version number
24 .byte 6 # DWARF Unit Type (DW_UT_split_type)
25 .byte 8 # Address Size (in bytes)
26 .long 0 # Offset Into Abbrev. Section
27 .quad 5657452045627120676 # Type Signature
28 .long 25 # Type DIE Offset
29 .byte 2 # Abbrev [2] DW_TAG_type_unit
30 .byte 3 # Abbrev [3] DW_TAG_structure_type
31 .byte 0 # End Of Children Mark
32 .Ldebug_info_dwo_end0:
33 .section .debug_info.dwo,"e",@progbits
34 .long .Ldebug_info_dwo_end1-.Ldebug_info_dwo_start1 # Length of Unit
35 .Ldebug_info_dwo_start1:
36 .short 5 # DWARF version number
37 .byte 6 # DWARF Unit Type (DW_UT_split_type)
38 .byte 8 # Address Size (in bytes)
39 .long 0 # Offset Into Abbrev. Section
40 .quad -8528522068957683993 # Type Signature
41 .long 25 # Type DIE Offset
42 .byte 4 # Abbrev [4] DW_TAG_type_unit
43 .byte 5 # Abbrev [5] DW_TAG_structure_type
44 .byte 0 # End Of Children Mark
45 .Ldebug_info_dwo_end1:
46 .section .debug_info.dwo,"e",@progbits
47 .long .Ldebug_info_dwo_end2-.Ldebug_info_dwo_start2 # Length of Unit
48 .Ldebug_info_dwo_start2:
49 .short 5 # DWARF version number
50 .byte 5 # DWARF Unit Type (DW_UT_split_compile)
51 .byte 8 # Address Size (in bytes)
52 .long 0 # Offset Into Abbrev. Section
53 .quad 0
54 .byte 1 # Abbrev [1] DW_TAG_compile_unit
55 .Ldebug_info_dwo_end2:
56 .section .debug_abbrev.dwo,"e",@progbits
57 .byte 1 # Abbreviation Code
58 .byte 17 # DW_TAG_compile_unit
59 .byte 0 # DW_CHILDREN_no
60 .byte 0 # EOM(1)
61 .byte 0 # EOM(2)
62 .byte 2 # Abbreviation Code
63 .byte 65 # DW_TAG_type_unit
64 .byte 1 # DW_CHILDREN_yes
65 .byte 0 # EOM
66 .byte 0 # EOM
67 .byte 4 # Abbreviation Code
68 .byte 65 # DW_TAG_type_unit
69 .byte 1 # DW_CHILDREN_yes
70 .byte 0 # EOM
71 .byte 0 # EOM
72 .byte 0 # EOM