]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
x86/testsuite: Adjust unused FRED and MOVRS tests [PR33348]
authorHaochen Jiang <haochen.jiang@intel.com>
Mon, 1 Sep 2025 02:54:28 +0000 (10:54 +0800)
committerHaochen Jiang <haochen.jiang@intel.com>
Tue, 2 Sep 2025 06:22:26 +0000 (14:22 +0800)
The tests mentioned in PR33348 needs different care.

For FRED tests, we could simply remove them since there are
no operands and the tests are the same as AT&T Syntax.

For MOVRS tests, we allowed suffixes for AT&T suffixes although
we could tell the difference according to register operand to
align with legacy mov. Thus, the suffixes tests are needed for
AT&T Syntax while not needed for Intel Syntax. Adjust them
accordingly.

gas/ChangeLog:

PR ld/33348
* testsuite/gas/i386/x86-64-movrs-suffix.d: Describe the
test with more precise.
* testsuite/gas/i386/x86-64-movrs-suffix.s: Remove Intel
Syntax part.
* testsuite/gas/i386/x86-64.exp: Add MOVRS suffix tests.
* testsuite/gas/i386/x86-64-fred-intel.d: Removed.
* testsuite/gas/i386/x86-64-movrs-suffix-intel.d: Ditto.

gas/testsuite/gas/i386/x86-64-fred-intel.d [deleted file]
gas/testsuite/gas/i386/x86-64-movrs-suffix-intel.d [deleted file]
gas/testsuite/gas/i386/x86-64-movrs-suffix.d
gas/testsuite/gas/i386/x86-64-movrs-suffix.s
gas/testsuite/gas/i386/x86-64.exp

diff --git a/gas/testsuite/gas/i386/x86-64-fred-intel.d b/gas/testsuite/gas/i386/x86-64-fred-intel.d
deleted file mode 100644 (file)
index 0d8183e..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#objdump: -dw -Mintel
-#name: x86_64 FRED insns (Intel disassembly)
-#source: x86-64-fred.s
-
-.*: +file format .*
-
-Disassembly of section \.text:
-
-0+ <_start>:
-\s*[a-f0-9]+:\s*f2 0f 01 ca\s+erets
-\s*[a-f0-9]+:\s*f3 0f 01 ca\s+eretu
-\s*[a-f0-9]+:\s*f2 0f 01 ca\s+erets
-\s*[a-f0-9]+:\s*f3 0f 01 ca\s+eretu
-#pass
diff --git a/gas/testsuite/gas/i386/x86-64-movrs-suffix-intel.d b/gas/testsuite/gas/i386/x86-64-movrs-suffix-intel.d
deleted file mode 100644 (file)
index b1dcb2d..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#objdump: -dwMsuffix -Mintel
-#name: x86_64 MOVRS insns
-#source: x86-64-movrs-suffix.s
-
-.*: +file format .*
-
-Disassembly of section \.text:
-
-#...
-[a-f0-9]+ <_intel>:
-\s*[a-f0-9]+:\s*66 0f 38 8b 92 00 ff ff ff\s+movrsw -0x100\(%rdx\),%dx
-\s*[a-f0-9]+:\s*0f 38 8b 92 00 fe ff ff\s+movrsl -0x200\(%rdx\),%edx
-\s*[a-f0-9]+:\s*4c 0f 38 8b a2 00 fc ff ff\s+movrsq -0x400\(%rdx\),%r12
-\s*[a-f0-9]+:\s*0f 38 8a 5a 80\s+movrsb -0x80\(%rdx\),%bl
-#pass
index 7f71b1dfbd01b6436a876c2919a258295d10c339..d43a368a6ed42d07cef9d8237cfbbb0a81bc7611 100644 (file)
@@ -1,5 +1,5 @@
 #objdump: -dwMsuffix
-#name: x86_64 MOVRS insns
+#name: x86_64 MOVRS insns (w/ suffix)
 
 .*: +file format .*
 
index 6120b768d7c4c6ccbce23943f09e0625780042cb..d4f03ea2c91b2c20e63d2d412bc774f93b66255e 100644 (file)
@@ -6,10 +6,3 @@ _start:
        movrsl  -512(%rdx), %edx
        movrsq  -1024(%rdx), %r12
        movrsb  -128(%rdx), %bl
-
-_intel:
-       .intel_syntax noprefix
-       movrsw  dx, WORD PTR [rdx-256]
-       movrsl  edx, DWORD PTR [rdx-512]
-       movrsq  r12, QWORD PTR [rdx-1024]
-       movrsb  bl, BYTE PTR [rdx-128]
index d24e91011840ccff2ca2730d841752b3ae3162b9..fd42263e59a723fc028f264255feb282fd75a7e3 100644 (file)
@@ -539,6 +539,7 @@ run_dump_test "x86-64-amx-avx512"
 run_dump_test "x86-64-amx-avx512-intel"
 run_dump_test "x86-64-movrs"
 run_dump_test "x86-64-movrs-intel"
+run_dump_test "x86-64-movrs-suffix"
 run_dump_test "x86-64-movrs-avx10_2-512"
 run_dump_test "x86-64-movrs-avx10_2-512-intel"
 run_dump_test "x86-64-movrs-avx10_2-256"