gas: Adjust x86 tests for PECOFF

Message ID 20200526211823.583520-1-hjl.tools@gmail.com
State New
Headers show
Series
  • gas: Adjust x86 tests for PECOFF
Related show

Commit Message

* testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
	* testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
	* testsuite/gas/i386/inval-avx512f.l: Updated.
---
 gas/ChangeLog                           | 6 ++++++
 gas/testsuite/gas/i386/align-branch-9.d | 2 +-
 gas/testsuite/gas/i386/inval-avx512f.l  | 3 +++
 gas/testsuite/gas/i386/inval-avx512f.s  | 1 +
 4 files changed, 11 insertions(+), 1 deletion(-)

-- 
2.26.2

Patch

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 1c5160d14b..97d8776250 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@ 
+2020-05-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* testsuite/gas/i386/align-branch-9.d: Updated for PECOFF.
+	* testsuite/gas/i386/inval-avx512f.s: Add .p2align for PECOFF.
+	* testsuite/gas/i386/inval-avx512f.l: Updated.
+
 2020-05-26  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
 
 	* testsuite/gas/s390/zarch-z13.d: Add regexp checks for vector
diff --git a/gas/testsuite/gas/i386/align-branch-9.d b/gas/testsuite/gas/i386/align-branch-9.d
index 6340817d04..2d5ceef09b 100644
--- a/gas/testsuite/gas/i386/align-branch-9.d
+++ b/gas/testsuite/gas/i386/align-branch-9.d
@@ -67,7 +67,7 @@  Disassembly of section .text:
   96:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   9c:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   a2:	89 75 0c             	mov    %esi,0xc\(%ebp\)
-  a5:	e9 fc ff ff ff       	jmp    a6 <foo\+0xa6>
+  a5:	e9 [0-9a-f ]+       	jmp    .*
   aa:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   b0:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
   b6:	89 b5 50 fb ff ff    	mov    %esi,-0x4b0\(%ebp\)
diff --git a/gas/testsuite/gas/i386/inval-avx512f.l b/gas/testsuite/gas/i386/inval-avx512f.l
index f42437a6c3..c47ac7db90 100644
--- a/gas/testsuite/gas/i386/inval-avx512f.l
+++ b/gas/testsuite/gas/i386/inval-avx512f.l
@@ -569,3 +569,6 @@  GAS LISTING .*
 [ 	]*318 \?\?\?\? 62F27E38[ 	]+vcvtneps2bf16 \(%eax\)\{1to8\}, %xmm1
 [ 	]*318[ 	]+7208
 [ 	]*319[ 	]+vcvtneps2bf16 \(%eax\)\{1to16\}, %xmm1
+[ 	]*320[ 	]+\?\?\?\? 8DB42600 		\.p2align 4
+[ 	]*320[ 	]+0000008D 
+[ 	]*320[ 	]+7600
diff --git a/gas/testsuite/gas/i386/inval-avx512f.s b/gas/testsuite/gas/i386/inval-avx512f.s
index 6aa6f14e89..7cca7ef854 100644
--- a/gas/testsuite/gas/i386/inval-avx512f.s
+++ b/gas/testsuite/gas/i386/inval-avx512f.s
@@ -317,3 +317,4 @@  _start:
 	vcvtneps2bf16 (%eax){1to4}, %xmm1
 	vcvtneps2bf16 (%eax){1to8}, %xmm1
 	vcvtneps2bf16 (%eax){1to16}, %xmm1
+	.p2align 4