[llvm] r258754 - Followup to 258750; update all MC tests to use .p2align .

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 25 16:28:00 PST 2016


Author: djg
Date: Mon Jan 25 18:27:59 2016
New Revision: 258754

URL: http://llvm.org/viewvc/llvm-project?rev=258754&view=rev
Log:
Followup to 258750; update all MC tests to use .p2align .

Modified:
    llvm/trunk/test/MC/AArch64/ldr-pseudo.s
    llvm/trunk/test/MC/ARM/directive-align.s
    llvm/trunk/test/MC/ARM/inst-directive-emit.s
    llvm/trunk/test/MC/ARM/ldr-pseudo-darwin.s
    llvm/trunk/test/MC/ARM/ldr-pseudo.s
    llvm/trunk/test/MC/ARM/ltorg-darwin.s
    llvm/trunk/test/MC/ARM/ltorg.s
    llvm/trunk/test/MC/ARM/pool.s
    llvm/trunk/test/MC/AsmParser/comments-x86-darwin.s
    llvm/trunk/test/MC/AsmParser/directive_align.s

Modified: llvm/trunk/test/MC/AArch64/ldr-pseudo.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AArch64/ldr-pseudo.s?rev=258754&r1=258753&r2=258754&view=diff
==============================================================================
--- llvm/trunk/test/MC/AArch64/ldr-pseudo.s (original)
+++ llvm/trunk/test/MC/AArch64/ldr-pseudo.s Mon Jan 25 18:27:59 2016
@@ -209,31 +209,31 @@ f18:
 // Constant Pools
 //
 // CHECK: .section b,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP0]]
 // CHECK: .word 65537
 
 // CHECK: .section c,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP1]]
 // CHECK: .word 65538
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP2]]
 // CHECK: .word 65539
 
 // CHECK: .section d,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP3]]
 // CHECK: .word 65540
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP4]]
 // CHECK: .word 65540
 
 // CHECK: .section e,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP5]]
 // CHECK: .word 65542
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP6]]
 // CHECK: .word 65543
 
@@ -241,79 +241,79 @@ f18:
 // CHECK-NOT: .section f,"ax", at progbits
 
 // CHECK: .section g,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP7]]
 // CHECK: .word foo
 
 // CHECK: .section h,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP8]]
 // CHECK: .word f5
 
 // CHECK: .section i,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP9]]
 // CHECK: .word f12
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP10]]
 // CHECK: .word 245760
 
 // CHECK: .section j,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP11]]
 // CHECK: .word bar
 
 // CHECK: .section k,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP12]]
 // CHECK: .word 65544
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP13]]
 // CHECK: .word baz
 
 // CHECK: .section l,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP14]]
 // CHECK: .word 65545
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP15]]
 // CHECK: .word bar+4
 
 // CHECK: .section m,"ax", at progbits
-// CHECK: .align 3
+// CHECK: .p2align 3
 // CHECK: .Ltmp[[TMP16]]
 // CHECK: .xword 72623859790382856
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP17]]
 // CHECK: .word bar
-// CHECK: .align 3
+// CHECK: .p2align 3
 // CHECK: .Ltmp[[TMP18]]
 // CHECK: .xword bar+16
-// CHECK: .align 3
+// CHECK: .p2align 3
 // CHECK: .Ltmp[[TMP19]]
 // CHECK: .xword 4294967297
-// CHECK: .align 3
+// CHECK: .p2align 3
 // CHECK: .Ltmp[[TMP20]]
 // CHECK: .xword -2147483649
-// CHECK: .align 3
+// CHECK: .p2align 3
 // CHECK: .Ltmp[[TMP21]]
 // CHECK: .xword 65537
 
 // CHECK: .section n,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP22]]
 // CHECK: .word 4294967295
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP23]]
 // CHECK: .word -2147483647
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP24]]
 // CHECK: .word -1
 
 // CHECK: .section o,"ax", at progbits
-// CHECK: .align 2
+// CHECK: .p2align 2
 // CHECK: .Ltmp[[TMP25]]
 // CHECK: .word 3276900
-// CHECK: .align 3
+// CHECK: .p2align 3
 // CHECK: .Ltmp[[TMP26]]
 // CHECK: .xword 3276900

Modified: llvm/trunk/test/MC/ARM/directive-align.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/directive-align.s?rev=258754&r1=258753&r2=258754&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/directive-align.s (original)
+++ llvm/trunk/test/MC/ARM/directive-align.s Mon Jan 25 18:27:59 2016
@@ -8,7 +8,7 @@ unaligned:
 
 @ CHECK-LABEL: unaligned
 @ CHECK-NEXT:	.byte 1
-@ CHECK-NEXT:	.align 2
+@ CHECK-NEXT:	.p2align 2
 
 aligned:
 	.long 0x1d10c1e5
@@ -16,7 +16,7 @@ aligned:
 
 @ CHECK-LABEL: aligned
 @ CHECK-NEXT:	.long 487637477
-@ CHECK-NEXT:	.align 2
+@ CHECK-NEXT:	.p2align 2
 
 trailer:
 	.long 0xd1ab011c
@@ -24,5 +24,5 @@ trailer:
 
 @ CHECK-LABEL: trailer
 @ CHECK-NEXT:	.long 3517645084
-@ CHECK-NEXT:	.align 2
+@ CHECK-NEXT:	.p2align 2
 

Modified: llvm/trunk/test/MC/ARM/inst-directive-emit.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/inst-directive-emit.s?rev=258754&r1=258753&r2=258754&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/inst-directive-emit.s (original)
+++ llvm/trunk/test/MC/ARM/inst-directive-emit.s Mon Jan 25 18:27:59 2016
@@ -3,7 +3,7 @@
 	.syntax unified
 	.thumb
 
-	.align 2
+	.p2align 2
 	.global emit_asm
 	.type emit_asm,%function
 emit_asm:
@@ -11,7 +11,7 @@ emit_asm:
 
 @ CHECK: 	.text
 @ CHECK: 	.code	16
-@ CHECK: 	.align	2
+@ CHECK: 	.p2align	2
 @ CHECK: 	.globl	emit_asm
 @ CHECK: 	.type	emit_asm,%function
 @ CHECK: emit_asm:

Modified: llvm/trunk/test/MC/ARM/ldr-pseudo-darwin.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/ldr-pseudo-darwin.s?rev=258754&r1=258753&r2=258754&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/ldr-pseudo-darwin.s (original)
+++ llvm/trunk/test/MC/ARM/ldr-pseudo-darwin.s Mon Jan 25 18:27:59 2016
@@ -157,37 +157,37 @@ f15:
 @
 @ CHECK: .section __TEXT,b,regular,pure_instructions
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp0:
 @ CHECK: .long 65537
 @ CHECK: .end_data_region
 
 @ CHECK: .section __TEXT,c,regular,pure_instructions
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp1:
 @ CHECK: .long 65538
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp2:
 @ CHECK: .long 65539
 @ CHECK: .end_data_region
 
 @ CHECK: .section __TEXT,d,regular,pure_instructions
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp3:
 @ CHECK: .long 65540
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp4:
 @ CHECK: .long 65540
 @ CHECK: .end_data_region
 
 @ CHECK: .section __TEXT,e,regular,pure_instructions
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp5:
 @ CHECK: .long 65542
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp6:
 @ CHECK: .long 65543
 @ CHECK: .end_data_region
@@ -197,51 +197,51 @@ f15:
 
 @ CHECK: .section __TEXT,g,regular,pure_instructions
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp7:
 @ CHECK: .long foo
 @ CHECK: .end_data_region
 
 @ CHECK: .section __TEXT,h,regular,pure_instructions
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp8:
 @ CHECK: .long f5
 @ CHECK: .end_data_region
 
 @ CHECK: .section __TEXT,i,regular,pure_instructions
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp9:
 @ CHECK: .long f12
 @ CHECK: .end_data_region
 
 @ CHECK: .section __TEXT,j,regular,pure_instructions
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp10:
 @ CHECK: .long 257
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp11:
 @ CHECK: .long bar
 @ CHECK: .end_data_region
 
 @ CHECK: .section __TEXT,k,regular,pure_instructions
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp12:
 @ CHECK: .long 65544
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp13:
 @ CHECK: .long baz
 @ CHECK: .end_data_region
 
 @ CHECK: .section __TEXT,l,regular,pure_instructions
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp14:
 @ CHECK: .long 65545
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp15:
 @ CHECK: .long bar+4
 @ CHECK: .end_data_region

Modified: llvm/trunk/test/MC/ARM/ldr-pseudo.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/ldr-pseudo.s?rev=258754&r1=258753&r2=258754&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/ldr-pseudo.s (original)
+++ llvm/trunk/test/MC/ARM/ldr-pseudo.s Mon Jan 25 18:27:59 2016
@@ -156,26 +156,26 @@ f15:
 @ Constant Pools
 @
 @ CHECK: .section b,"ax",%progbits
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP0]]
 @ CHECK: .long 65537
 
 @ CHECK: .section c,"ax",%progbits
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP1]]
 @ CHECK: .long 65538
 @ CHECK: .Ltmp[[TMP2]]
 @ CHECK: .long 65539
 
 @ CHECK: .section d,"ax",%progbits
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP3]]
 @ CHECK: .long 65540
 @ CHECK: .Ltmp[[TMP4]]
 @ CHECK: .long 65540
 
 @ CHECK: .section e,"ax",%progbits
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP5]]
 @ CHECK: .long 65542
 @ CHECK: .Ltmp[[TMP6]]
@@ -185,36 +185,36 @@ f15:
 @ CHECK-NOT: .section f,"ax",%progbits
 
 @ CHECK: .section g,"ax",%progbits
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP7]]
 @ CHECK: .long foo
 
 @ CHECK: .section h,"ax",%progbits
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP8]]
 @ CHECK: .long f5
 
 @ CHECK: .section i,"ax",%progbits
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP9]]
 @ CHECK: .long f12
 
 @ CHECK: .section j,"ax",%progbits
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP10]]
 @ CHECK: .long 257
 @ CHECK: .Ltmp[[TMP11]]
 @ CHECK: .long bar
 
 @ CHECK: .section k,"ax",%progbits
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP12]]
 @ CHECK: .long 65544
 @ CHECK: .Ltmp[[TMP13]]
 @ CHECK: .long baz
 
 @ CHECK: .section l,"ax",%progbits
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP14]]
 @ CHECK: .long 65545
 @ CHECK: .Ltmp[[TMP15]]

Modified: llvm/trunk/test/MC/ARM/ltorg-darwin.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/ltorg-darwin.s?rev=258754&r1=258753&r2=258754&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/ltorg-darwin.s (original)
+++ llvm/trunk/test/MC/ARM/ltorg-darwin.s Mon Jan 25 18:27:59 2016
@@ -20,7 +20,7 @@ f2:
 .ltorg
 @ constant pool
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp0:
 @ CHECK: .long 65537
 @ CHECK: .end_data_region
@@ -42,7 +42,7 @@ f4:
 .ltorg
 @ constant pool
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp1:
 @ CHECK: .long 65538
 @ CHECK: .end_data_region
@@ -58,7 +58,7 @@ f5:
 .ltorg
 @ constant pool
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp2:
 @ CHECK: .long 65539
 @ CHECK: .end_data_region
@@ -93,7 +93,7 @@ f9:
 .ltorg
 @ constant pool
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp3:
 @ CHECK: .long bar
 @ CHECK: .end_data_region
@@ -115,7 +115,7 @@ f11:
   .ltorg
 @ constant pool
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp4:
 @ CHECK: .long 65540
 @ CHECK: .end_data_region
@@ -142,7 +142,7 @@ f13:
 @ CHECK: .section __TEXT,e,regular,pure_instructions
 @ constant pool
 @ CHECK: .data_region
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK-LABEL: Ltmp5:
 @ CHECK: .long 65541
 @ CHECK: .end_data_region

Modified: llvm/trunk/test/MC/ARM/ltorg.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/ltorg.s?rev=258754&r1=258753&r2=258754&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/ltorg.s (original)
+++ llvm/trunk/test/MC/ARM/ltorg.s Mon Jan 25 18:27:59 2016
@@ -19,7 +19,7 @@ f2:
   b f3
 .ltorg
 @ constant pool
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP0]]
 @ CHECK: .long 65537
 
@@ -39,7 +39,7 @@ f4:
   b f5
 .ltorg
 @ constant pool
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP1]]
 @ CHECK: .long 65538
 
@@ -53,7 +53,7 @@ f5:
   b f6
 .ltorg
 @ constant pool
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP2]]
 @ CHECK: .long 65539
 
@@ -86,7 +86,7 @@ f9:
   b f10
 .ltorg
 @ constant pool
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP3]]
 @ CHECK: .long bar
 
@@ -106,7 +106,7 @@ f11:
   b f12
   .ltorg
 @ constant pool
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP4]]
 @ CHECK: .long 65540
 @ CHECK-LABEL: f12:
@@ -130,7 +130,7 @@ f13:
 @ should have a non-empty constant pool at end of this section
 @ CHECK: .section e,"ax",%progbits
 @ constant pool
-@ CHECK: .align 2
+@ CHECK: .p2align 2
 @ CHECK: .Ltmp[[TMP5]]
 @ CHECK: .long 65541
 

Modified: llvm/trunk/test/MC/ARM/pool.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/pool.s?rev=258754&r1=258753&r2=258754&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/pool.s (original)
+++ llvm/trunk/test/MC/ARM/pool.s Mon Jan 25 18:27:59 2016
@@ -2,7 +2,7 @@
 
 	.syntax unified
 
-	.align 2
+	.p2align 2
 	.global pool
 	.type pool,%function
 pool:
@@ -12,7 +12,7 @@ pool:
 
 @ CHECK-LABEL: pool
 @ CHECK: ldr r0, .Ltmp0
-@ CHECK: .align	2
+@ CHECK: .p2align	2
 @ CHECK-LABEL: .Ltmp0:
 @ CHECK: .long	3126770193
 

Modified: llvm/trunk/test/MC/AsmParser/comments-x86-darwin.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/comments-x86-darwin.s?rev=258754&r1=258753&r2=258754&view=diff
==============================================================================
--- llvm/trunk/test/MC/AsmParser/comments-x86-darwin.s (original)
+++ llvm/trunk/test/MC/AsmParser/comments-x86-darwin.s Mon Jan 25 18:27:59 2016
@@ -1,7 +1,7 @@
 // RUN: llvm-mc -triple x86_64-apple-darwin %s 2>&1 | FileCheck %s
 # ensure that single '#' comments are worink as expected on x86 darwin
-.align 3            # test single hash after align
-// CHECK: .align 3
+.p2align 3            # test single hash after align
+// CHECK: .p2align 3
 foo:                # single hash should be ignored as comment
 // CHECK-LABEL: foo:
     movl %esp, %ebp # same after an instruction

Modified: llvm/trunk/test/MC/AsmParser/directive_align.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/directive_align.s?rev=258754&r1=258753&r2=258754&view=diff
==============================================================================
--- llvm/trunk/test/MC/AsmParser/directive_align.s (original)
+++ llvm/trunk/test/MC/AsmParser/directive_align.s Mon Jan 25 18:27:59 2016
@@ -1,7 +1,7 @@
 # RUN: not llvm-mc -triple i386-apple-darwin9 %s | FileCheck %s
 
 # CHECK: TEST0:
-# CHECK: .align 1
+# CHECK: .p2align 1
 TEST0:  
         .align 1
 




More information about the llvm-commits mailing list