Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-dwarfdump / X86 / verify_file_encoding.yaml
blobaf55a3a7d103449df41cba1d1b4a350289d89bde
1 # RUN: yaml2obj %s | not llvm-dwarfdump --verify - | FileCheck %s --implicit-check-not=error:
3 # CHECK:      error: DIE has DW_AT_decl_file with invalid encoding{{[[:space:]]}}
4 # CHECK-NEXT: 0x0000001a: DW_TAG_subprogram
5 # CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x0000000d] = "main")
6 # CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000001000)
7 # CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_addr] (0x0000000000002000)
8 # CHECK-NEXT:               DW_AT_decl_file   [DW_FORM_strp] ( .debug_str[0x00000012] = "")
9 # CHECK-NEXT:               DW_AT_call_line   [DW_FORM_data1] (5){{[[:space:]]}}
10 # CHECK-NEXT: error: DIE has DW_AT_call_file with invalid encoding{{[[:space:]]}}
11 # CHECK-NEXT: 0x00000034: DW_TAG_inlined_subroutine
12 # CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x00000013] = "inline1")
13 # CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000001100)
14 # CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_data4] (0x00000100)
15 # CHECK-NEXT:               DW_AT_call_file   [DW_FORM_strp] ( .debug_str[0x00000012] = "")
16 # CHECK-NEXT:               DW_AT_call_line   [DW_FORM_data1] (10){{[[:space:]]}}
17 # CHECK-NEXT: error: DIE has DW_AT_decl_file with invalid encoding{{[[:space:]]}}
18 # CHECK-NEXT: 0x0000004a: DW_TAG_subprogram
19 # CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")
20 # CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000002000)
21 # CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_addr] (0x0000000000003000)
22 # CHECK-NEXT:               DW_AT_decl_file   [DW_FORM_sdata] (2)
23 # CHECK-NEXT:               DW_AT_decl_line   [DW_FORM_sdata] (3)
24 # CHECK-NEXT:               DW_AT_call_file   [DW_FORM_sdata] (4)
25 # CHECK-NEXT:               DW_AT_call_line   [DW_FORM_sdata] (5){{[[:space:]]}}
26 # CHECK-NEXT: error: DIE has DW_AT_decl_line with invalid encoding{{[[:space:]]}}
27 # CHECK-NEXT: 0x0000004a: DW_TAG_subprogram
28 # CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")
29 # CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000002000)
30 # CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_addr] (0x0000000000003000)
31 # CHECK-NEXT:               DW_AT_decl_file   [DW_FORM_sdata] (2)
32 # CHECK-NEXT:               DW_AT_decl_line   [DW_FORM_sdata] (3)
33 # CHECK-NEXT:               DW_AT_call_file   [DW_FORM_sdata] (4)
34 # CHECK-NEXT:               DW_AT_call_line   [DW_FORM_sdata] (5){{[[:space:]]}}
35 # CHECK-NEXT: error: DIE has DW_AT_call_file with invalid encoding{{[[:space:]]}}
36 # CHECK-NEXT: 0x0000004a: DW_TAG_subprogram
37 # CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")
38 # CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000002000)
39 # CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_addr] (0x0000000000003000)
40 # CHECK-NEXT:               DW_AT_decl_file   [DW_FORM_sdata] (2)
41 # CHECK-NEXT:               DW_AT_decl_line   [DW_FORM_sdata] (3)
42 # CHECK-NEXT:               DW_AT_call_file   [DW_FORM_sdata] (4)
43 # CHECK-NEXT:               DW_AT_call_line   [DW_FORM_sdata] (5){{[[:space:]]}}
44 # CHECK-NEXT: error: DIE has DW_AT_call_line with invalid encoding{{[[:space:]]}}
45 # CHECK-NEXT: 0x0000004a: DW_TAG_subprogram
46 # CHECK-NEXT:               DW_AT_name        [DW_FORM_strp] ( .debug_str[0x0000001b] = "foo")
47 # CHECK-NEXT:               DW_AT_low_pc      [DW_FORM_addr] (0x0000000000002000)
48 # CHECK-NEXT:               DW_AT_high_pc     [DW_FORM_addr] (0x0000000000003000)
49 # CHECK-NEXT:               DW_AT_decl_file   [DW_FORM_sdata] (2)
50 # CHECK-NEXT:               DW_AT_decl_line   [DW_FORM_sdata] (3)
51 # CHECK-NEXT:               DW_AT_call_file   [DW_FORM_sdata] (4)
52 # CHECK-NEXT:               DW_AT_call_line   [DW_FORM_sdata] (5){{[[:space:]]}}
54 --- !ELF
55 FileHeader:
56   Class:   ELFCLASS64
57   Data:    ELFDATA2LSB
58   Type:    ET_EXEC
59   Machine: EM_X86_64
60 DWARF:
61   debug_str:
62     - ''
63     - '/tmp/main.c'
64     - main
65     - ''
66     - inline1
67     - foo
68   debug_abbrev:
69     - Table:
70         - Code:            0x0000000000000001
71           Tag:             DW_TAG_compile_unit
72           Children:        DW_CHILDREN_yes
73           Attributes:
74             - Attribute:       DW_AT_name
75               Form:            DW_FORM_strp
76             - Attribute:       DW_AT_language
77               Form:            DW_FORM_data2
78             - Attribute:       DW_AT_low_pc
79               Form:            DW_FORM_addr
80         - Code:            0x0000000000000002
81           Tag:             DW_TAG_subprogram
82           Children:        DW_CHILDREN_yes
83           Attributes:
84             - Attribute:       DW_AT_name
85               Form:            DW_FORM_strp
86             - Attribute:       DW_AT_low_pc
87               Form:            DW_FORM_addr
88             - Attribute:       DW_AT_high_pc
89               Form:            DW_FORM_addr
90             - Attribute:       DW_AT_decl_file
91               Form:            DW_FORM_strp
92             - Attribute:       DW_AT_call_line
93               Form:            DW_FORM_data1
94         - Code:            0x0000000000000003
95           Tag:             DW_TAG_inlined_subroutine
96           Children:        DW_CHILDREN_no
97           Attributes:
98             - Attribute:       DW_AT_name
99               Form:            DW_FORM_strp
100             - Attribute:       DW_AT_low_pc
101               Form:            DW_FORM_addr
102             - Attribute:       DW_AT_high_pc
103               Form:            DW_FORM_data4
104             - Attribute:       DW_AT_call_file
105               Form:            DW_FORM_strp
106             - Attribute:       DW_AT_call_line
107               Form:            DW_FORM_data1
108         - Code:            0x0000000000000004
109           Tag:             DW_TAG_subprogram
110           Children:        DW_CHILDREN_no
111           Attributes:
112             - Attribute:       DW_AT_name
113               Form:            DW_FORM_strp
114             - Attribute:       DW_AT_low_pc
115               Form:            DW_FORM_addr
116             - Attribute:       DW_AT_high_pc
117               Form:            DW_FORM_addr
118             - Attribute:       DW_AT_decl_file
119               Form:            DW_FORM_sdata
120             - Attribute:       DW_AT_decl_line
121               Form:            DW_FORM_sdata
122             - Attribute:       DW_AT_call_file
123               Form:            DW_FORM_sdata
124             - Attribute:       DW_AT_call_line
125               Form:            DW_FORM_sdata
126   debug_info:
127     - Length:          0x0000000000000061
128       Version:         4
129       AbbrOffset:      0x0000000000000000
130       AddrSize:        8
131       Entries:
132         - AbbrCode:        0x00000001
133           Values:
134             - Value:           0x0000000000000001
135             - Value:           0x0000000000000002
136             - Value:           0x0000000000000000
137         - AbbrCode:        0x00000002
138           Values:
139             - Value:           0x000000000000000D
140             - Value:           0x0000000000001000
141             - Value:           0x0000000000002000
142             - Value:           0x0000000000000012
143             - Value:           0x0000000000000005
144         - AbbrCode:        0x00000003
145           Values:
146             - Value:           0x0000000000000013
147             - Value:           0x0000000000001100
148             - Value:           0x0000000000000100
149             - Value:           0x0000000000000012
150             - Value:           0x000000000000000A
151         - AbbrCode:        0x00000004
152           Values:
153             - Value:           0x000000000000001B
154             - Value:           0x0000000000002000
155             - Value:           0x0000000000003000
156             - Value:           0x0000000000000002
157             - Value:           0x0000000000000003
158             - Value:           0x0000000000000004
159             - Value:           0x0000000000000005
160         - AbbrCode:        0x00000000
161           Values:          []
162         - AbbrCode:        0x00000000
163           Values:          []