Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-dwp / X86 / cu_tu_units_manual_v5_invalid.s
blob1f63b212179703865a67c12f4f1d4a105c8a9c16
1 # This test checks that llvm-dwarfdump correctly reports errors when parsing
2 # DWARF Unit Headers in DWP files
4 # RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.o \
5 # RUN: -split-dwarf-file=%t.dwo -dwarf-version=5
6 # RUN: llvm-dwp %t.dwo -o %t.dwp
7 # RUN: llvm-dwarfdump -debug-info -debug-cu-index -debug-tu-index \
8 # RUN: -manaully-generate-unit-index %t.dwp 2>&1 | FileCheck %s
10 ## Note: In order to check whether the type unit index is generated
11 ## there is no need to add the missing DIEs for the structure type of the type unit.
13 # CHECK-NOT: .debug_info.dwo contents:
15 # CHECK-DAG: .debug_cu_index contents:
16 # CHECK: warning: Failed to parse CU header in DWP file: DWARF unit at offset 0x00000000 has unsupported version 6, supported are 2-5
18 # CHECK-DAG: .debug_tu_index contents:
19 # CHECK: warning: Failed to parse CU header in DWP file: DWARF unit at offset 0x00000000 has unsupported version 6, supported are 2-5
21 .section .debug_info.dwo,"e",@progbits
22 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit
23 .Ldebug_info_dwo_start0:
24 .short 6 # DWARF version number
25 .byte 6 # DWARF Unit Type (DW_UT_split_type)
26 .byte 8 # Address Size (in bytes)
27 .long 0 # Offset Into Abbrev. Section
28 .quad 5657452045627120676 # Type Signature
29 .long 25 # Type DIE Offset
30 .byte 2 # Abbrev [2] DW_TAG_type_unit
31 .byte 3 # Abbrev [3] DW_TAG_structure_type
32 .byte 0 # End Of Children Mark
33 .Ldebug_info_dwo_end0:
34 .section .debug_info.dwo,"e",@progbits
35 .long .Ldebug_info_dwo_end1-.Ldebug_info_dwo_start1 # Length of Unit
36 .Ldebug_info_dwo_start1:
37 .short 6 # DWARF version number
38 .byte 6 # DWARF Unit Type (DW_UT_split_type)
39 .byte 8 # Address Size (in bytes)
40 .long 0 # Offset Into Abbrev. Section
41 .quad -8528522068957683993 # Type Signature
42 .long 25 # Type DIE Offset
43 .byte 4 # Abbrev [4] DW_TAG_type_unit
44 .byte 5 # Abbrev [5] DW_TAG_structure_type
45 .byte 0 # End Of Children Mark
46 .Ldebug_info_dwo_end1:
47 .section .debug_info.dwo,"e",@progbits
48 .long .Ldebug_info_dwo_end2-.Ldebug_info_dwo_start2 # Length of Unit
49 .Ldebug_info_dwo_start2:
50 .short 6 # DWARF version number
51 .byte 5 # DWARF Unit Type (DW_UT_split_compile)
52 .byte 8 # Address Size (in bytes)
53 .long 0 # Offset Into Abbrev. Section
54 .quad 1152943841751211454
55 .byte 1 # Abbrev [1] DW_TAG_compile_unit
56 .Ldebug_info_dwo_end2:
57 .section .debug_abbrev.dwo,"e",@progbits
58 .byte 1 # Abbreviation Code
59 .byte 17 # DW_TAG_compile_unit
60 .byte 0 # DW_CHILDREN_no
61 .byte 0 # EOM(1)
62 .byte 0 # EOM(2)
63 .byte 2 # Abbreviation Code
64 .byte 65 # DW_TAG_type_unit
65 .byte 1 # DW_CHILDREN_yes
66 .byte 0 # EOM
67 .byte 0 # EOM
68 .byte 4 # Abbreviation Code
69 .byte 65 # DW_TAG_type_unit
70 .byte 1 # DW_CHILDREN_yes
71 .byte 0 # EOM
72 .byte 0 # EOM
73 .byte 0 # EOM