Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-dwp / X86 / incompatible_tu_index_version.s
blob45e60475cbbdb2fc7799d2ac5822406885d1ec27
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 ## of version 2 and a TU index of version 5. A valid TU is not required, but
6 ## the .debug_types.dwo section should not be empty.
8 # CHECK: error: incompatible tu_index versions, found 5 and expecting 2
10 .section .debug_abbrev.dwo, "e", @progbits
11 .LAbbrevBegin:
12 .uleb128 1 # Abbreviation Code
13 .uleb128 17 # DW_TAG_compile_unit
14 .byte 1 # DW_CHILDREN_no
15 .uleb128 0x2131 # DW_AT_GNU_dwo_id
16 .uleb128 7 # DW_FORM_data8
17 .byte 0 # EOM(1)
18 .byte 0 # EOM(2)
19 .byte 0 # EOM(3)
20 .LAbbrevEnd:
22 .section .debug_info.dwo, "e", @progbits
23 .LCUBegin:
24 .long .LCUEnd-.LCUVersion # Length of Unit
25 .LCUVersion:
26 .short 4 # Version
27 .long 0 # Abbrev offset
28 .byte 8 # Address size
29 .uleb128 1 # Abbrev [1] DW_TAG_compile_unit
30 .quad 0x1100001122222222 # DW_AT_GNU_dwo_id
31 .LCUEnd:
33 .section .debug_types.dwo, "e", @progbits
34 .space 1
36 .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 5 # Version
62 .space 2 # Padding
63 .long 2 # Section count
64 .long 1 # Unit count
65 .long 2 # Slot count
66 ## Hash Table of Signatures:
67 .quad 0x1100003333333333
68 .quad 0
69 ## Parallel Table of Indexes:
70 .long 1
71 .long 0
72 ## Table of Section Offsets:
73 ## Row 0:
74 .long 1 # DW_SECT_INFO
75 .long 3 # DW_SECT_ABBREV
76 ## Row 1:
77 .long 0
78 .long 0
79 ## Table of Section Sizes:
80 .long 1
81 .long 1