Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-dwp / X86 / missing_tu_index.test
blobb927aa368a26376c0e5ecbf6aea0c55ad6c635fe
1 # RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.dwp
2 # RUN: not llvm-dwp %t.dwp -o %t 2>&1 | FileCheck %s
4 ## Note: To reach the test point, we need a DWP file with a CU, a CU index
5 ## and a broken TU index.
7 # CHECK: error: failed to parse tu_index
9 .section .debug_abbrev.dwo, "e", @progbits
10 .LAbbrevBegin:
11     .uleb128 1                      # Abbreviation Code
12     .uleb128 17                     # DW_TAG_compile_unit
13     .byte 1                         # DW_CHILDREN_no
14     .uleb128 0x2131                 # DW_AT_GNU_dwo_id
15     .uleb128 7                      # DW_FORM_data8
16     .byte 0                         # EOM(1)
17     .byte 0                         # EOM(2)
18     .byte 0                         # EOM(3)
19 .LAbbrevEnd:
21     .section .debug_info.dwo, "e", @progbits
22 .LCUBegin:
23     .long .LCUEnd-.LCUVersion       # Length of Unit
24 .LCUVersion:
25     .short 4                        # Version
26     .long 0                         # Abbrev offset
27     .byte 8                         # Address size
28     .uleb128 1                      # Abbrev [1] DW_TAG_compile_unit
29     .quad 0x1100001122222222        # DW_AT_GNU_dwo_id
30 .LCUEnd:
32     .section .debug_types.dwo, "e", @progbits
33     .space 1
35     .section .debug_cu_index, "", @progbits
37 ## Header:
38     .long 2                         # Version
39     .long 2                         # Section count
40     .long 1                         # Unit count
41     .long 2                         # Slot count
42 ## Hash Table of Signatures:
43     .quad 0x1100001122222222
44     .quad 0
45 ## Parallel Table of Indexes:
46     .long 1
47     .long 0
48 ## Table of Section Offsets:
49 ## Row 0:
50     .long 1                         # DW_SECT_INFO
51     .long 3                         # DW_SECT_ABBREV
52 ## Row 1:
53     .long 0                         # Offset in .debug_info.dwo
54     .long 0                         # Offset in .debug_abbrev.dwo
55 ## Table of Section Sizes:
56     .long .LCUEnd-.LCUBegin         # Size in .debug_info.dwo
57     .long .LAbbrevEnd-.LAbbrevBegin # Size in .debug_abbrev.dwo
59     .section .debug_tu_index, "", @progbits
60 ## Header:
61     .short 2                        # Version