[ARM] Rewrite how VCMP are lowered, using a single node
[llvm-core.git] / test / tools / dsymutil / X86 / basic-lto-dw4-linking-x86.test
blob052a0157165d39bab62be7a3edd8b239309127cb
1 RUN: dsymutil -f -o - -oso-prepend-path=%p/.. %p/../Inputs/basic-lto-dw4.macho.x86_64 | llvm-dwarfdump -a - | FileCheck %s
3 CHECK: file format Mach-O 64-bit x86-64
5 CHECK: debug_info contents
7 CHECK:  Compile Unit: {{.*}} version = 0x0004
8 CHECK:  DW_TAG_compile_unit
9 CHECK:    DW_AT_producer ("clang version 3.7.0 ")
10 CHECK:    DW_AT_language (DW_LANG_C99)
11 CHECK:    DW_AT_name ("basic1.c")
12 CHECK:    DW_AT_stmt_list (0x00000000)
13 CHECK:    DW_AT_comp_dir ("/Inputs")
14 CHECK:    DW_AT_low_pc (0x0000000100000f40)
15 CHECK:    DW_AT_high_pc (0x0000000100000f4b)
16 CHECK:    DW_TAG_subprogram
17 CHECK:      DW_AT_low_pc (0x0000000100000f40)
18 CHECK:      DW_AT_high_pc (0x0000000100000f4b)
19 CHECK:      DW_AT_frame_base (DW_OP_reg6 RBP)
20 CHECK:      DW_AT_name ("main")
21 CHECK:      DW_AT_decl_file ("/Inputs{{[/\\]}}basic1.c")
22 CHECK:      DW_AT_prototyped (true)
23 CHECK:      DW_AT_type (0x00000000000000a1
24 CHECK:      DW_AT_external (true)
25 CHECK:      DW_TAG_formal_parameter
26 CHECK:        DW_AT_location (DW_OP_reg5 RDI, DW_OP_piece 0x4)
27 CHECK:        DW_AT_name ("argc")
28 CHECK:        DW_AT_decl_file ("/Inputs{{[/\\]}}basic1.c")
29 CHECK:        DW_AT_type (0x00000000000000a1
30 CHECK:      DW_TAG_formal_parameter
31 CHECK:        DW_AT_location (DW_OP_reg4 RSI)
32 CHECK:        DW_AT_name ("argv")
33 CHECK:        DW_AT_type (0x00000060
34 CHECK:      NULL
35 CHECK:    DW_TAG_pointer_type
36 CHECK:       DW_AT_type (0x00000065
37 CHECK:    DW_TAG_pointer_type
38 CHECK:    DW_TAG_const_type
39 CHECK:    DW_TAG_base_type
40 CHECK:      DW_AT_name ("char")
41 CHECK:      DW_AT_encoding (DW_ATE_signed_char)
42 CHECK:      DW_AT_byte_size (0x01)
43 CHECK:    NULL
45 CHECK:  Compile Unit:{{.*}} version = 0x0004
47 CHECK:  DW_TAG_compile_unit
48 CHECK:    DW_AT_producer ("clang version 3.7.0 ")
49 CHECK:    DW_AT_language (DW_LANG_C99)
50 CHECK:    DW_AT_name ("basic2.c")
51 CHECK:    DW_AT_stmt_list (0x00000044)
52 CHECK:    DW_AT_low_pc (0x0000000100000f50)
53 CHECK:    DW_AT_high_pc (0x0000000100000f87)
54 CHECK:    DW_TAG_base_type
55 CHECK:      DW_AT_name ("int")
56 CHECK:    DW_TAG_variable
57 CHECK:      DW_AT_name ("baz")
58 CHECK:      DW_AT_location (DW_OP_addr 0x100001000)
59 CHECK:    DW_TAG_variable
60 CHECK:      DW_AT_name ("private_int")
61 CHECK:      DW_AT_decl_file ("/Inputs{{[/\\]}}basic2.c")
62 CHECK:      DW_AT_location (DW_OP_addr 0x100001008)
63 CHECK:    DW_TAG_subprogram
64 CHECK:      DW_AT_name ("inc")
65 CHECK:      DW_AT_type (0x000000a1
66 CHECK:      DW_AT_inline (DW_INL_inlined)
67 CHECK:    DW_TAG_subprogram
68 CHECK:      DW_AT_low_pc (0x0000000100000f50)
69 CHECK:      DW_AT_high_pc (0x0000000100000f87)
70 CHECK:      DW_AT_frame_base (DW_OP_reg6 RBP)
71 CHECK:      DW_AT_name ("foo")
72 CHECK:      DW_AT_decl_file ("/Inputs{{[/\\]}}basic2.c")
73 CHECK:      DW_AT_prototyped (true)
74 CHECK:      DW_AT_type (0x000000a1
75 CHECK:      DW_TAG_formal_parameter
76 CHECK:        DW_AT_location (0x00000000
77 CHECK:          [0x0000000100000f50, 0x0000000100000f5c): DW_OP_reg5 RDI, DW_OP_piece 0x4)
78 CHECK:        DW_AT_name ("arg")
79 CHECK:        DW_AT_type (0x000000a1
80 CHECK:      DW_TAG_inlined_subroutine
81 CHECK:        DW_AT_abstract_origin (0x000000d2 "inc")
82 CHECK:        DW_AT_low_pc (0x0000000100000f61)
83 CHECK:        DW_AT_high_pc (0x0000000100000f70)
84 CHECK:      NULL
85 CHECK:    NULL
87 CHECK:  Compile Unit: {{.*}} version = 0x0004
89 CHECK:  DW_TAG_compile_unit
90 CHECK:    DW_AT_producer ("clang version 3.7.0 ")
91 CHECK:    DW_AT_name ("basic3.c")
92 CHECK:    DW_AT_stmt_list (0x0000009a)
93 CHECK:    DW_AT_low_pc (0x0000000100000f90)
94 CHECK:    DW_AT_high_pc (0x0000000100000fb4)
95 CHECK:    DW_TAG_variable
96 CHECK:      DW_AT_name ("val")
97 CHECK:      DW_AT_decl_file ("/Inputs{{[/\\]}}basic3.c")
98 CHECK:      DW_AT_location (DW_OP_addr 0x100001004)
99 CHECK:    DW_TAG_volatile_type
100 CHECK:    DW_TAG_subprogram
101 CHECK:      DW_AT_name ("inc")
102 CHECK:      DW_AT_inline (DW_INL_inlined)
103 CHECK:    DW_TAG_subprogram
104 CHECK:      DW_AT_low_pc (0x0000000100000f90)
105 CHECK:      DW_AT_high_pc (0x0000000100000fb4)
106 CHECK:      DW_AT_frame_base (DW_OP_reg6 RBP)
107 CHECK:      DW_AT_name ("bar")
108 CHECK:      DW_TAG_formal_parameter
109 CHECK:        DW_AT_location (0x00000025
110 CHECK:          [0x0000000100000f90, 0x0000000100000f9f): DW_OP_reg5 RDI, DW_OP_piece 0x4
111 CHECK:          [0x0000000100000fa9, 0x0000000100000fad): DW_OP_reg5 RDI, DW_OP_piece 0x4)
112 CHECK:        DW_AT_name ("arg")
113 CHECK:      DW_TAG_inlined_subroutine
114 CHECK:        DW_AT_abstract_origin (0x0000015f "inc")
115 CHECK:        DW_AT_ranges (0x00000000
116 CHECK:           [0x0000000100000f94, 0x0000000100000f9a)
117 CHECK:           [0x0000000100000f9f, 0x0000000100000fa7))
119 CHECK:      NULL
120 CHECK:    NULL
123 CHECK: .debug_loc contents:
124 CHECK-NEXT: 0x00000000:
125 CHECK-NEXT:              [0x0000000000000000, 0x000000000000000c): DW_OP_reg5 RDI, DW_OP_piece 0x4
126 CHECK-NOT: :
127 CHECK:      0x00000025:
128 CHECK-NEXT:              [0x0000000000000000, 0x000000000000000f): DW_OP_reg5 RDI, DW_OP_piece 0x4
129 CHECK-NEXT:              [0x0000000000000019, 0x000000000000001d): DW_OP_reg5 RDI, DW_OP_piece 0x4
132 CHECK: .debug_aranges contents:
133 CHECK-NEXT: Address Range Header: length = 0x0000002c, version = 0x0002, cu_offset = 0x00000000, addr_size = 0x08, seg_size = 0x00
134 CHECK-NEXT: [0x0000000100000f40,  0x0000000100000f4b)
135 CHECK-NEXT: Address Range Header: length = 0x0000002c, version = 0x0002, cu_offset = 0x00000077, addr_size = 0x08, seg_size = 0x00
136 CHECK-NEXT: [0x0000000100000f50, 0x0000000100000f87)
137 CHECK-NEXT: Address Range Header: length = 0x0000002c, version = 0x0002, cu_offset = 0x0000011b, addr_size = 0x08, seg_size = 0x00
138 CHECK-NEXT: [0x0000000100000f90, 0x0000000100000fb4)
140 CHECK: .debug_line contents:
141 CHECK: file_names[  1]:
142 CHECK-NEXT: name: "basic1.c"
143 CHECK-NEXT: dir_index: 0
144 CHECK: Address            Line   Column File   ISA Discriminator Flags
145 CHECK-NEXT: ------------------ ------ ------ ------ --- ------------- -------------
146 CHECK-NEXT: 0x0000000100000f40     26      0      1   0             0  is_stmt
147 CHECK-NEXT: 0x0000000100000f44     27     10      1   0             0  is_stmt prologue_end
148 CHECK-NEXT: 0x0000000100000f49     27      3      1   0             0
149 CHECK-NEXT: 0x0000000100000f4b     27      3      1   0             0  end_sequence
151 CHECK: file_names[  1]:
152 CHECK-NEXT: name: "basic2.c"
153 CHECK-NEXT: dir_index: 0
154 CHECK: Address            Line   Column File   ISA Discriminator Flags
155 CHECK-NEXT: ------------------ ------ ------ ------ --- ------------- -------------
156 CHECK-NEXT: 0x0000000100000f50     19      0      1   0             0  is_stmt
157 CHECK-NEXT: 0x0000000100000f54     20     18      1   0             0  is_stmt prologue_end
158 CHECK-NEXT: 0x0000000100000f5a     20     17      1   0             0
159 CHECK-NEXT: 0x0000000100000f5c     20     10      1   0             0
160 CHECK-NEXT: 0x0000000100000f61     15     10      1   0             0  is_stmt
161 CHECK-NEXT: 0x0000000100000f70     20     23      1   0             0  is_stmt
162 CHECK-NEXT: 0x0000000100000f74     20     36      1   0             0
163 CHECK-NEXT: 0x0000000100000f83     20     31      1   0             0
164 CHECK-NEXT: 0x0000000100000f85     20      3      1   0             0
165 CHECK-NEXT: 0x0000000100000f87     20      3      1   0             0  end_sequence
167 CHECK: file_names[  1]:
168 CHECK-NEXT: name: "basic3.c"
169 CHECK-NEXT: dir_index: 0
170 CHECK: Address            Line   Column File   ISA Discriminator Flags
171 CHECK-NEXT: ------------------ ------ ------ ------ --- ------------- -------------
172 CHECK-NEXT: 0x0000000100000f90     16      0      1   0             0  is_stmt
173 CHECK-NEXT: 0x0000000100000f94     12     10      1   0             0  is_stmt prologue_end
174 CHECK-NEXT: 0x0000000100000f9a     17      7      1   0             0  is_stmt
175 CHECK-NEXT: 0x0000000100000f9f     12     10      1   0             0  is_stmt
176 CHECK-NEXT: 0x0000000100000fa7     20      1      1   0             0  is_stmt
177 CHECK-NEXT: 0x0000000100000fa9     19     18      1   0             0  is_stmt
178 CHECK-NEXT: 0x0000000100000fab     19     10      1   0             0
179 CHECK-NEXT: 0x0000000100000fb2     20      1      1   0             0  is_stmt
180 CHECK-NEXT: 0x0000000100000fb4     20      1      1   0             0  is_stmt end_sequence
182 CHECK: .debug_pubnames contents:
183 CHECK-NEXT: length = 0x00000017 version = 0x0002 unit_offset = 0x00000000 unit_size = 0x00000077
184 CHECK-NEXT: Offset     Name
185 CHECK-NEXT: 0x0000002a "main"
186 CHECK-NEXT: length = 0x0000002e version = 0x0002 unit_offset = 0x00000077 unit_size = 0x000000a4
187 CHECK-NEXT: Offset     Name
188 CHECK-NEXT: 0x00000031 "baz"
189 CHECK-NEXT: 0x00000046 "private_int"
190 CHECK-NEXT: 0x00000067 "foo"
191 CHECK-NEXT: length = 0x0000001e version = 0x0002 unit_offset = 0x0000011b unit_size = 0x00000085
192 CHECK-NEXT: Offset     Name
193 CHECK-NEXT: 0x0000002a "val"
194 CHECK-NEXT: 0x00000050 "bar"
196 CHECK: .debug_pubtypes contents:
197 CHECK-NEXT: length = 0x00000017 version = 0x0002 unit_offset = 0x00000000 unit_size = 0x00000077
198 CHECK-NEXT: Offset     Name
199 CHECK-NEXT: 0x0000006f "char"
200 CHECK-NEXT: length = 0x00000016 version = 0x0002 unit_offset = 0x00000077 unit_size = 0x000000a4
201 CHECK-NEXT: Offset     Name
202 CHECK-NEXT: 0x0000002a "int"