aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-04-06 05:02:56 -0700
committerH.J. Lu <hjl.tools@gmail.com>2024-04-06 05:07:18 -0700
commitcca46dea4d09fc9d9896e952242b3e8f5baa506a (patch)
tree6f40e25154a943e2aa696ea8ae0d927b8279af1a /gas
parente7e05a9dd0c93038fdd5ed1904ca660e52beabdc (diff)
downloadbinutils-cca46dea4d09fc9d9896e952242b3e8f5baa506a.zip
binutils-cca46dea4d09fc9d9896e952242b3e8f5baa506a.tar.gz
binutils-cca46dea4d09fc9d9896e952242b3e8f5baa506a.tar.bz2
Revert "x86: Restore APX shift-double instructions with omitted shift count"
This reverts commit c2d698fe03a6092d58a07de96068b87836daced0. GCC 14 has been changed to use explicit shift count in shift-double instructions by the commit: 06a7e7514af x86: Use explicit shift count in double-precision shifts gas/ PR gas/31606 * testsuite/gas/i386/x86-64-apx-ndd-wig.d: Updated. * testsuite/gas/i386/x86-64-apx-ndd.d: Likewise. * testsuite/gas/i386/x86-64-apx-ndd.s: Remove tests for APX shift-double instructions with omitted shift count. opcodes/ PR gas/31606 * i386-opc.tbl: Remove APX shift-double instructions with omitted shift count. * i386-tbl.h: Regenerated.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/i386/x86-64-apx-ndd-wig.d6
-rw-r--r--gas/testsuite/gas/i386/x86-64-apx-ndd.d6
-rw-r--r--gas/testsuite/gas/i386/x86-64-apx-ndd.s6
3 files changed, 0 insertions, 18 deletions
diff --git a/gas/testsuite/gas/i386/x86-64-apx-ndd-wig.d b/gas/testsuite/gas/i386/x86-64-apx-ndd-wig.d
index 0a80f9e..3fbb809 100644
--- a/gas/testsuite/gas/i386/x86-64-apx-ndd-wig.d
+++ b/gas/testsuite/gas/i386/x86-64-apx-ndd-wig.d
@@ -126,11 +126,8 @@ Disassembly of section .text:
[ ]*[a-f0-9]+:[ ]*62 74 04 10 24 38 02 shld \$0x2,%r15d,\(%rax\),%r31d
[ ]*[a-f0-9]+:[ ]*62 54 05 10 24 c4 02 shld \$0x2,%r8w,%r12w,%r31w
[ ]*[a-f0-9]+:[ ]*62 7c bc 18 a5 e0 shld %cl,%r12,%r16,%r8
-[ ]*[a-f0-9]+:[ ]*62 7c bc 18 a5 e0 shld %cl,%r12,%r16,%r8
-[ ]*[a-f0-9]+:[ ]*62 7c 05 10 a5 2c 83 shld %cl,%r13w,\(%r19,%rax,4\),%r31w
[ ]*[a-f0-9]+:[ ]*62 7c 05 10 a5 2c 83 shld %cl,%r13w,\(%r19,%rax,4\),%r31w
[ ]*[a-f0-9]+:[ ]*62 74 05 10 a5 08 shld %cl,%r9w,\(%rax\),%r31w
-[ ]*[a-f0-9]+:[ ]*62 74 05 10 a5 08 shld %cl,%r9w,\(%rax\),%r31w
[ ]*[a-f0-9]+:[ ]*62 f4 04 10 c1 20 02 shl \$0x2,\(%rax\),%r31d
[ ]*[a-f0-9]+:[ ]*62 f4 04 10 c1 20 02 shl \$0x2,\(%rax\),%r31d
[ ]*[a-f0-9]+:[ ]*62 f4 05 10 d1 20 shl \$1,\(%rax\),%r31w
@@ -144,11 +141,8 @@ Disassembly of section .text:
[ ]*[a-f0-9]+:[ ]*62 74 04 10 2c 38 02 shrd \$0x2,%r15d,\(%rax\),%r31d
[ ]*[a-f0-9]+:[ ]*62 54 05 10 2c c4 02 shrd \$0x2,%r8w,%r12w,%r31w
[ ]*[a-f0-9]+:[ ]*62 7c bc 18 ad e0 shrd %cl,%r12,%r16,%r8
-[ ]*[a-f0-9]+:[ ]*62 7c bc 18 ad e0 shrd %cl,%r12,%r16,%r8
-[ ]*[a-f0-9]+:[ ]*62 7c 05 10 ad 2c 83 shrd %cl,%r13w,\(%r19,%rax,4\),%r31w
[ ]*[a-f0-9]+:[ ]*62 7c 05 10 ad 2c 83 shrd %cl,%r13w,\(%r19,%rax,4\),%r31w
[ ]*[a-f0-9]+:[ ]*62 74 05 10 ad 08 shrd %cl,%r9w,\(%rax\),%r31w
-[ ]*[a-f0-9]+:[ ]*62 74 05 10 ad 08 shrd %cl,%r9w,\(%rax\),%r31w
[ ]*[a-f0-9]+:[ ]*62 f4 04 10 c1 28 02 shr \$0x2,\(%rax\),%r31d
[ ]*[a-f0-9]+:[ ]*62 f4 05 10 d1 28 shr \$1,\(%rax\),%r31w
[ ]*[a-f0-9]+:[ ]*62 fc 05 10 d3 2c 83 shr %cl,\(%r19,%rax,4\),%r31w
diff --git a/gas/testsuite/gas/i386/x86-64-apx-ndd.d b/gas/testsuite/gas/i386/x86-64-apx-ndd.d
index 8c5ad23..e08a2dd 100644
--- a/gas/testsuite/gas/i386/x86-64-apx-ndd.d
+++ b/gas/testsuite/gas/i386/x86-64-apx-ndd.d
@@ -126,11 +126,8 @@ Disassembly of section .text:
\s*[a-f0-9]+:\s*62 74 04 10 24 38 02 shld \$0x2,%r15d,\(%rax\),%r31d
\s*[a-f0-9]+:\s*62 54 05 10 24 c4 02 shld \$0x2,%r8w,%r12w,%r31w
\s*[a-f0-9]+:\s*62 7c bc 18 a5 e0 shld %cl,%r12,%r16,%r8
-\s*[a-f0-9]+:\s*62 7c bc 18 a5 e0 shld %cl,%r12,%r16,%r8
-\s*[a-f0-9]+:\s*62 7c 05 10 a5 2c 83 shld %cl,%r13w,\(%r19,%rax,4\),%r31w
\s*[a-f0-9]+:\s*62 7c 05 10 a5 2c 83 shld %cl,%r13w,\(%r19,%rax,4\),%r31w
\s*[a-f0-9]+:\s*62 74 05 10 a5 08 shld %cl,%r9w,\(%rax\),%r31w
-\s*[a-f0-9]+:\s*62 74 05 10 a5 08 shld %cl,%r9w,\(%rax\),%r31w
\s*[a-f0-9]+:\s*62 f4 04 10 c1 20 02 shl \$0x2,\(%rax\),%r31d
\s*[a-f0-9]+:\s*62 f4 04 10 c1 20 02 shl \$0x2,\(%rax\),%r31d
\s*[a-f0-9]+:\s*62 f4 05 10 d1 20 shl \$1,\(%rax\),%r31w
@@ -144,11 +141,8 @@ Disassembly of section .text:
\s*[a-f0-9]+:\s*62 74 04 10 2c 38 02 shrd \$0x2,%r15d,\(%rax\),%r31d
\s*[a-f0-9]+:\s*62 54 05 10 2c c4 02 shrd \$0x2,%r8w,%r12w,%r31w
\s*[a-f0-9]+:\s*62 7c bc 18 ad e0 shrd %cl,%r12,%r16,%r8
-\s*[a-f0-9]+:\s*62 7c bc 18 ad e0 shrd %cl,%r12,%r16,%r8
-\s*[a-f0-9]+:\s*62 7c 05 10 ad 2c 83 shrd %cl,%r13w,\(%r19,%rax,4\),%r31w
\s*[a-f0-9]+:\s*62 7c 05 10 ad 2c 83 shrd %cl,%r13w,\(%r19,%rax,4\),%r31w
\s*[a-f0-9]+:\s*62 74 05 10 ad 08 shrd %cl,%r9w,\(%rax\),%r31w
-\s*[a-f0-9]+:\s*62 74 05 10 ad 08 shrd %cl,%r9w,\(%rax\),%r31w
\s*[a-f0-9]+:\s*62 f4 04 10 c1 28 02 shr \$0x2,\(%rax\),%r31d
\s*[a-f0-9]+:\s*62 f4 05 10 d1 28 shr \$1,\(%rax\),%r31w
\s*[a-f0-9]+:\s*62 fc 05 10 d3 2c 83 shr %cl,\(%r19,%rax,4\),%r31w
diff --git a/gas/testsuite/gas/i386/x86-64-apx-ndd.s b/gas/testsuite/gas/i386/x86-64-apx-ndd.s
index 122b3bc..4e248f7 100644
--- a/gas/testsuite/gas/i386/x86-64-apx-ndd.s
+++ b/gas/testsuite/gas/i386/x86-64-apx-ndd.s
@@ -120,11 +120,8 @@ _start:
shld $0x2,%r15d,(%rax),%r31d
shld $0x2,%r8w,%r12w,%r31w
shld %cl,%r12,%r16,%r8
- shld %r12,%r16,%r8
shld %cl,%r13w,(%r19,%rax,4),%r31w
- shld %r13w,(%r19,%rax,4),%r31w
shld %cl,%r9w,(%rax),%r31w
- shld %r9w,(%rax),%r31w
shll $0x2,(%rax),%r31d
shll $0x2,(%rax),%r31d
shlw $0x1,(%rax),%r31w
@@ -138,11 +135,8 @@ _start:
shrd $0x2,%r15d,(%rax),%r31d
shrd $0x2,%r8w,%r12w,%r31w
shrd %cl,%r12,%r16,%r8
- shrd %r12,%r16,%r8
shrd %cl,%r13w,(%r19,%rax,4),%r31w
- shrd %r13w,(%r19,%rax,4),%r31w
shrd %cl,%r9w,(%rax),%r31w
- shrd %r9w,(%rax),%r31w
shrl $0x2,(%rax),%r31d
shrw $0x1,(%rax),%r31w
shrw %cl,(%r19,%rax,4),%r31w