llvm.org GIT mirror llvm / d0eaa33
Followup to 258750; update all MC tests to use .p2align . git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258754 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 4 years ago
10 changed file(s) with 75 addition(s) and 75 deletion(s). Raw diff Collapse all Expand all
208208 // Constant Pools
209209 //
210210 // CHECK: .section b,"ax",@progbits
211 // CHECK: .align 2
211 // CHECK: .p2align 2
212212 // CHECK: .Ltmp[[TMP0]]
213213 // CHECK: .word 65537
214214
215215 // CHECK: .section c,"ax",@progbits
216 // CHECK: .align 2
216 // CHECK: .p2align 2
217217 // CHECK: .Ltmp[[TMP1]]
218218 // CHECK: .word 65538
219 // CHECK: .align 2
219 // CHECK: .p2align 2
220220 // CHECK: .Ltmp[[TMP2]]
221221 // CHECK: .word 65539
222222
223223 // CHECK: .section d,"ax",@progbits
224 // CHECK: .align 2
224 // CHECK: .p2align 2
225225 // CHECK: .Ltmp[[TMP3]]
226226 // CHECK: .word 65540
227 // CHECK: .align 2
227 // CHECK: .p2align 2
228228 // CHECK: .Ltmp[[TMP4]]
229229 // CHECK: .word 65540
230230
231231 // CHECK: .section e,"ax",@progbits
232 // CHECK: .align 2
232 // CHECK: .p2align 2
233233 // CHECK: .Ltmp[[TMP5]]
234234 // CHECK: .word 65542
235 // CHECK: .align 2
235 // CHECK: .p2align 2
236236 // CHECK: .Ltmp[[TMP6]]
237237 // CHECK: .word 65543
238238
240240 // CHECK-NOT: .section f,"ax",@progbits
241241
242242 // CHECK: .section g,"ax",@progbits
243 // CHECK: .align 2
243 // CHECK: .p2align 2
244244 // CHECK: .Ltmp[[TMP7]]
245245 // CHECK: .word foo
246246
247247 // CHECK: .section h,"ax",@progbits
248 // CHECK: .align 2
248 // CHECK: .p2align 2
249249 // CHECK: .Ltmp[[TMP8]]
250250 // CHECK: .word f5
251251
252252 // CHECK: .section i,"ax",@progbits
253 // CHECK: .align 2
253 // CHECK: .p2align 2
254254 // CHECK: .Ltmp[[TMP9]]
255255 // CHECK: .word f12
256 // CHECK: .align 2
256 // CHECK: .p2align 2
257257 // CHECK: .Ltmp[[TMP10]]
258258 // CHECK: .word 245760
259259
260260 // CHECK: .section j,"ax",@progbits
261 // CHECK: .align 2
261 // CHECK: .p2align 2
262262 // CHECK: .Ltmp[[TMP11]]
263263 // CHECK: .word bar
264264
265265 // CHECK: .section k,"ax",@progbits
266 // CHECK: .align 2
266 // CHECK: .p2align 2
267267 // CHECK: .Ltmp[[TMP12]]
268268 // CHECK: .word 65544
269 // CHECK: .align 2
269 // CHECK: .p2align 2
270270 // CHECK: .Ltmp[[TMP13]]
271271 // CHECK: .word baz
272272
273273 // CHECK: .section l,"ax",@progbits
274 // CHECK: .align 2
274 // CHECK: .p2align 2
275275 // CHECK: .Ltmp[[TMP14]]
276276 // CHECK: .word 65545
277 // CHECK: .align 2
277 // CHECK: .p2align 2
278278 // CHECK: .Ltmp[[TMP15]]
279279 // CHECK: .word bar+4
280280
281281 // CHECK: .section m,"ax",@progbits
282 // CHECK: .align 3
282 // CHECK: .p2align 3
283283 // CHECK: .Ltmp[[TMP16]]
284284 // CHECK: .xword 72623859790382856
285 // CHECK: .align 2
285 // CHECK: .p2align 2
286286 // CHECK: .Ltmp[[TMP17]]
287287 // CHECK: .word bar
288 // CHECK: .align 3
288 // CHECK: .p2align 3
289289 // CHECK: .Ltmp[[TMP18]]
290290 // CHECK: .xword bar+16
291 // CHECK: .align 3
291 // CHECK: .p2align 3
292292 // CHECK: .Ltmp[[TMP19]]
293293 // CHECK: .xword 4294967297
294 // CHECK: .align 3
294 // CHECK: .p2align 3
295295 // CHECK: .Ltmp[[TMP20]]
296296 // CHECK: .xword -2147483649
297 // CHECK: .align 3
297 // CHECK: .p2align 3
298298 // CHECK: .Ltmp[[TMP21]]
299299 // CHECK: .xword 65537
300300
301301 // CHECK: .section n,"ax",@progbits
302 // CHECK: .align 2
302 // CHECK: .p2align 2
303303 // CHECK: .Ltmp[[TMP22]]
304304 // CHECK: .word 4294967295
305 // CHECK: .align 2
305 // CHECK: .p2align 2
306306 // CHECK: .Ltmp[[TMP23]]
307307 // CHECK: .word -2147483647
308 // CHECK: .align 2
308 // CHECK: .p2align 2
309309 // CHECK: .Ltmp[[TMP24]]
310310 // CHECK: .word -1
311311
312312 // CHECK: .section o,"ax",@progbits
313 // CHECK: .align 2
313 // CHECK: .p2align 2
314314 // CHECK: .Ltmp[[TMP25]]
315315 // CHECK: .word 3276900
316 // CHECK: .align 3
316 // CHECK: .p2align 3
317317 // CHECK: .Ltmp[[TMP26]]
318318 // CHECK: .xword 3276900
77
88 @ CHECK-LABEL: unaligned
99 @ CHECK-NEXT: .byte 1
10 @ CHECK-NEXT: .align 2
10 @ CHECK-NEXT: .p2align 2
1111
1212 aligned:
1313 .long 0x1d10c1e5
1515
1616 @ CHECK-LABEL: aligned
1717 @ CHECK-NEXT: .long 487637477
18 @ CHECK-NEXT: .align 2
18 @ CHECK-NEXT: .p2align 2
1919
2020 trailer:
2121 .long 0xd1ab011c
2323
2424 @ CHECK-LABEL: trailer
2525 @ CHECK-NEXT: .long 3517645084
26 @ CHECK-NEXT: .align 2
26 @ CHECK-NEXT: .p2align 2
2727
22 .syntax unified
33 .thumb
44
5 .align 2
5 .p2align 2
66 .global emit_asm
77 .type emit_asm,%function
88 emit_asm:
1010
1111 @ CHECK: .text
1212 @ CHECK: .code 16
13 @ CHECK: .align 2
13 @ CHECK: .p2align 2
1414 @ CHECK: .globl emit_asm
1515 @ CHECK: .type emit_asm,%function
1616 @ CHECK: emit_asm:
156156 @
157157 @ CHECK: .section __TEXT,b,regular,pure_instructions
158158 @ CHECK: .data_region
159 @ CHECK: .align 2
159 @ CHECK: .p2align 2
160160 @ CHECK-LABEL: Ltmp0:
161161 @ CHECK: .long 65537
162162 @ CHECK: .end_data_region
163163
164164 @ CHECK: .section __TEXT,c,regular,pure_instructions
165165 @ CHECK: .data_region
166 @ CHECK: .align 2
166 @ CHECK: .p2align 2
167167 @ CHECK-LABEL: Ltmp1:
168168 @ CHECK: .long 65538
169 @ CHECK: .align 2
169 @ CHECK: .p2align 2
170170 @ CHECK-LABEL: Ltmp2:
171171 @ CHECK: .long 65539
172172 @ CHECK: .end_data_region
173173
174174 @ CHECK: .section __TEXT,d,regular,pure_instructions
175175 @ CHECK: .data_region
176 @ CHECK: .align 2
176 @ CHECK: .p2align 2
177177 @ CHECK-LABEL: Ltmp3:
178178 @ CHECK: .long 65540
179 @ CHECK: .align 2
179 @ CHECK: .p2align 2
180180 @ CHECK-LABEL: Ltmp4:
181181 @ CHECK: .long 65540
182182 @ CHECK: .end_data_region
183183
184184 @ CHECK: .section __TEXT,e,regular,pure_instructions
185185 @ CHECK: .data_region
186 @ CHECK: .align 2
186 @ CHECK: .p2align 2
187187 @ CHECK-LABEL: Ltmp5:
188188 @ CHECK: .long 65542
189 @ CHECK: .align 2
189 @ CHECK: .p2align 2
190190 @ CHECK-LABEL: Ltmp6:
191191 @ CHECK: .long 65543
192192 @ CHECK: .end_data_region
196196
197197 @ CHECK: .section __TEXT,g,regular,pure_instructions
198198 @ CHECK: .data_region
199 @ CHECK: .align 2
199 @ CHECK: .p2align 2
200200 @ CHECK-LABEL: Ltmp7:
201201 @ CHECK: .long foo
202202 @ CHECK: .end_data_region
203203
204204 @ CHECK: .section __TEXT,h,regular,pure_instructions
205205 @ CHECK: .data_region
206 @ CHECK: .align 2
206 @ CHECK: .p2align 2
207207 @ CHECK-LABEL: Ltmp8:
208208 @ CHECK: .long f5
209209 @ CHECK: .end_data_region
210210
211211 @ CHECK: .section __TEXT,i,regular,pure_instructions
212212 @ CHECK: .data_region
213 @ CHECK: .align 2
213 @ CHECK: .p2align 2
214214 @ CHECK-LABEL: Ltmp9:
215215 @ CHECK: .long f12
216216 @ CHECK: .end_data_region
217217
218218 @ CHECK: .section __TEXT,j,regular,pure_instructions
219219 @ CHECK: .data_region
220 @ CHECK: .align 2
220 @ CHECK: .p2align 2
221221 @ CHECK-LABEL: Ltmp10:
222222 @ CHECK: .long 257
223 @ CHECK: .align 2
223 @ CHECK: .p2align 2
224224 @ CHECK-LABEL: Ltmp11:
225225 @ CHECK: .long bar
226226 @ CHECK: .end_data_region
227227
228228 @ CHECK: .section __TEXT,k,regular,pure_instructions
229229 @ CHECK: .data_region
230 @ CHECK: .align 2
230 @ CHECK: .p2align 2
231231 @ CHECK-LABEL: Ltmp12:
232232 @ CHECK: .long 65544
233 @ CHECK: .align 2
233 @ CHECK: .p2align 2
234234 @ CHECK-LABEL: Ltmp13:
235235 @ CHECK: .long baz
236236 @ CHECK: .end_data_region
237237
238238 @ CHECK: .section __TEXT,l,regular,pure_instructions
239239 @ CHECK: .data_region
240 @ CHECK: .align 2
240 @ CHECK: .p2align 2
241241 @ CHECK-LABEL: Ltmp14:
242242 @ CHECK: .long 65545
243 @ CHECK: .align 2
243 @ CHECK: .p2align 2
244244 @ CHECK-LABEL: Ltmp15:
245245 @ CHECK: .long bar+4
246246 @ CHECK: .end_data_region
155155 @ Constant Pools
156156 @
157157 @ CHECK: .section b,"ax",%progbits
158 @ CHECK: .align 2
158 @ CHECK: .p2align 2
159159 @ CHECK: .Ltmp[[TMP0]]
160160 @ CHECK: .long 65537
161161
162162 @ CHECK: .section c,"ax",%progbits
163 @ CHECK: .align 2
163 @ CHECK: .p2align 2
164164 @ CHECK: .Ltmp[[TMP1]]
165165 @ CHECK: .long 65538
166166 @ CHECK: .Ltmp[[TMP2]]
167167 @ CHECK: .long 65539
168168
169169 @ CHECK: .section d,"ax",%progbits
170 @ CHECK: .align 2
170 @ CHECK: .p2align 2
171171 @ CHECK: .Ltmp[[TMP3]]
172172 @ CHECK: .long 65540
173173 @ CHECK: .Ltmp[[TMP4]]
174174 @ CHECK: .long 65540
175175
176176 @ CHECK: .section e,"ax",%progbits
177 @ CHECK: .align 2
177 @ CHECK: .p2align 2
178178 @ CHECK: .Ltmp[[TMP5]]
179179 @ CHECK: .long 65542
180180 @ CHECK: .Ltmp[[TMP6]]
184184 @ CHECK-NOT: .section f,"ax",%progbits
185185
186186 @ CHECK: .section g,"ax",%progbits
187 @ CHECK: .align 2
187 @ CHECK: .p2align 2
188188 @ CHECK: .Ltmp[[TMP7]]
189189 @ CHECK: .long foo
190190
191191 @ CHECK: .section h,"ax",%progbits
192 @ CHECK: .align 2
192 @ CHECK: .p2align 2
193193 @ CHECK: .Ltmp[[TMP8]]
194194 @ CHECK: .long f5
195195
196196 @ CHECK: .section i,"ax",%progbits
197 @ CHECK: .align 2
197 @ CHECK: .p2align 2
198198 @ CHECK: .Ltmp[[TMP9]]
199199 @ CHECK: .long f12
200200
201201 @ CHECK: .section j,"ax",%progbits
202 @ CHECK: .align 2
202 @ CHECK: .p2align 2
203203 @ CHECK: .Ltmp[[TMP10]]
204204 @ CHECK: .long 257
205205 @ CHECK: .Ltmp[[TMP11]]
206206 @ CHECK: .long bar
207207
208208 @ CHECK: .section k,"ax",%progbits
209 @ CHECK: .align 2
209 @ CHECK: .p2align 2
210210 @ CHECK: .Ltmp[[TMP12]]
211211 @ CHECK: .long 65544
212212 @ CHECK: .Ltmp[[TMP13]]
213213 @ CHECK: .long baz
214214
215215 @ CHECK: .section l,"ax",%progbits
216 @ CHECK: .align 2
216 @ CHECK: .p2align 2
217217 @ CHECK: .Ltmp[[TMP14]]
218218 @ CHECK: .long 65545
219219 @ CHECK: .Ltmp[[TMP15]]
1919 .ltorg
2020 @ constant pool
2121 @ CHECK: .data_region
22 @ CHECK: .align 2
22 @ CHECK: .p2align 2
2323 @ CHECK-LABEL: Ltmp0:
2424 @ CHECK: .long 65537
2525 @ CHECK: .end_data_region
4141 .ltorg
4242 @ constant pool
4343 @ CHECK: .data_region
44 @ CHECK: .align 2
44 @ CHECK: .p2align 2
4545 @ CHECK-LABEL: Ltmp1:
4646 @ CHECK: .long 65538
4747 @ CHECK: .end_data_region
5757 .ltorg
5858 @ constant pool
5959 @ CHECK: .data_region
60 @ CHECK: .align 2
60 @ CHECK: .p2align 2
6161 @ CHECK-LABEL: Ltmp2:
6262 @ CHECK: .long 65539
6363 @ CHECK: .end_data_region
9292 .ltorg
9393 @ constant pool
9494 @ CHECK: .data_region
95 @ CHECK: .align 2
95 @ CHECK: .p2align 2
9696 @ CHECK-LABEL: Ltmp3:
9797 @ CHECK: .long bar
9898 @ CHECK: .end_data_region
114114 .ltorg
115115 @ constant pool
116116 @ CHECK: .data_region
117 @ CHECK: .align 2
117 @ CHECK: .p2align 2
118118 @ CHECK-LABEL: Ltmp4:
119119 @ CHECK: .long 65540
120120 @ CHECK: .end_data_region
141141 @ CHECK: .section __TEXT,e,regular,pure_instructions
142142 @ constant pool
143143 @ CHECK: .data_region
144 @ CHECK: .align 2
144 @ CHECK: .p2align 2
145145 @ CHECK-LABEL: Ltmp5:
146146 @ CHECK: .long 65541
147147 @ CHECK: .end_data_region
1818 b f3
1919 .ltorg
2020 @ constant pool
21 @ CHECK: .align 2
21 @ CHECK: .p2align 2
2222 @ CHECK: .Ltmp[[TMP0]]
2323 @ CHECK: .long 65537
2424
3838 b f5
3939 .ltorg
4040 @ constant pool
41 @ CHECK: .align 2
41 @ CHECK: .p2align 2
4242 @ CHECK: .Ltmp[[TMP1]]
4343 @ CHECK: .long 65538
4444
5252 b f6
5353 .ltorg
5454 @ constant pool
55 @ CHECK: .align 2
55 @ CHECK: .p2align 2
5656 @ CHECK: .Ltmp[[TMP2]]
5757 @ CHECK: .long 65539
5858
8585 b f10
8686 .ltorg
8787 @ constant pool
88 @ CHECK: .align 2
88 @ CHECK: .p2align 2
8989 @ CHECK: .Ltmp[[TMP3]]
9090 @ CHECK: .long bar
9191
105105 b f12
106106 .ltorg
107107 @ constant pool
108 @ CHECK: .align 2
108 @ CHECK: .p2align 2
109109 @ CHECK: .Ltmp[[TMP4]]
110110 @ CHECK: .long 65540
111111 @ CHECK-LABEL: f12:
129129 @ should have a non-empty constant pool at end of this section
130130 @ CHECK: .section e,"ax",%progbits
131131 @ constant pool
132 @ CHECK: .align 2
132 @ CHECK: .p2align 2
133133 @ CHECK: .Ltmp[[TMP5]]
134134 @ CHECK: .long 65541
135135
11
22 .syntax unified
33
4 .align 2
4 .p2align 2
55 .global pool
66 .type pool,%function
77 pool:
1111
1212 @ CHECK-LABEL: pool
1313 @ CHECK: ldr r0, .Ltmp0
14 @ CHECK: .align 2
14 @ CHECK: .p2align 2
1515 @ CHECK-LABEL: .Ltmp0:
1616 @ CHECK: .long 3126770193
1717
0 // RUN: llvm-mc -triple x86_64-apple-darwin %s 2>&1 | FileCheck %s
11 # ensure that single '#' comments are worink as expected on x86 darwin
2 .align 3 # test single hash after align
3 // CHECK: .align 3
2 .p2align 3 # test single hash after align
3 // CHECK: .p2align 3
44 foo: # single hash should be ignored as comment
55 // CHECK-LABEL: foo:
66 movl %esp, %ebp # same after an instruction
0 # RUN: not llvm-mc -triple i386-apple-darwin9 %s | FileCheck %s
11
22 # CHECK: TEST0:
3 # CHECK: .align 1
3 # CHECK: .p2align 1
44 TEST0:
55 .align 1
66