+2020-07-15 Jan Beulich <jbeulich@suse.com>
+
+ * testsuite/gas/i386/x86-64-stack.s: Adjust 32-bit push
+ immediate.
+ * testsuite/gas/i386/x86-64-stack-intel.d,
+ testsuite/gas/i386/x86-64-stack-suffix.d,
+ testsuite/gas/i386/x86-64-stack.d: Adjust expectations.
+
2020-07-15 Jan Beulich <jbeulich@suse.com>
* testsuite/gas/i386/disassem.d,
[ ]*[a-f0-9]+: 66 6a ff pushw 0xffff
[ ]*[a-f0-9]+: 48 6a ff rex.W push 0xffffffffffffffff
[ ]*[a-f0-9]+: 66 48 6a ff data16 rex.W push 0xffffffffffffffff
-[ ]*[a-f0-9]+: 68 01 02 03 04 push 0x4030201
-[ ]*[a-f0-9]+: 66 68 01 02 pushw 0x201
-[ ]*[a-f0-9]+: 03 04 48 add eax,DWORD PTR \[rax\+rcx\*2\]
-[ ]*[a-f0-9]+: 68 01 02 03 04 push 0x4030201
-[ ]*[a-f0-9]+: 66 48 68 01 02 03 04 data16 rex.W push 0x4030201
+[ ]*[a-f0-9]+: 68 02 03 04 05 push 0x5040302
+[ ]*[a-f0-9]+: 66 68 02 03 pushw 0x302
+[ ]*[a-f0-9]+: 04 05 add al,0x5
+[ ]*[a-f0-9]+: 48 68 02 03 04 05 rex\.W push 0x5040302
+[ ]*[a-f0-9]+: 66 48 68 02 03 04 05 data16 rex\.W push 0x5040302
[ ]*[a-f0-9]+: 0f a8 push gs
[ ]*[a-f0-9]+: 66 0f a8 pushw gs
[ ]*[a-f0-9]+: 48 0f a8 rex.W push gs
[ ]*[a-f0-9]+: 66 6a ff pushw \$0xffff
[ ]*[a-f0-9]+: 48 6a ff rex.W pushq \$0xffffffffffffffff
[ ]*[a-f0-9]+: 66 48 6a ff data16 rex.W pushq \$0xffffffffffffffff
-[ ]*[a-f0-9]+: 68 01 02 03 04 pushq \$0x4030201
-[ ]*[a-f0-9]+: 66 68 01 02 pushw \$0x201
-[ ]*[a-f0-9]+: 03 04 48 addl \(%rax,%rcx,2\),%eax
-[ ]*[a-f0-9]+: 68 01 02 03 04 pushq \$0x4030201
-[ ]*[a-f0-9]+: 66 48 68 01 02 03 04 data16 rex.W pushq \$0x4030201
+[ ]*[a-f0-9]+: 68 02 03 04 05 pushq \$0x5040302
+[ ]*[a-f0-9]+: 66 68 02 03 pushw \$0x302
+[ ]*[a-f0-9]+: 04 05 addb \$0x5,%al
+[ ]*[a-f0-9]+: 48 68 02 03 04 05 rex\.W pushq \$0x5040302
+[ ]*[a-f0-9]+: 66 48 68 02 03 04 05 data16 rex\.W pushq \$0x5040302
[ ]*[a-f0-9]+: 0f a8 pushq %gs
[ ]*[a-f0-9]+: 66 0f a8 pushw %gs
[ ]*[a-f0-9]+: 48 0f a8 rex.W pushq %gs
[ ]*[a-f0-9]+: 66 6a ff pushw \$0xffff
[ ]*[a-f0-9]+: 48 6a ff rex\.W push \$0xffffffffffffffff
[ ]*[a-f0-9]+: 66 48 6a ff data16 rex\.W push \$0xffffffffffffffff
-[ ]*[a-f0-9]+: 68 01 02 03 04 push \$0x4030201
-[ ]*[a-f0-9]+: 66 68 01 02 pushw \$0x201
-[ ]*[a-f0-9]+: 03 04 48 add \(%rax,%rcx,2\),%eax
-[ ]*[a-f0-9]+: 68 01 02 03 04 push \$0x4030201
-[ ]*[a-f0-9]+: 66 48 68 01 02 03 04 data16 rex\.W push \$0x4030201
+[ ]*[a-f0-9]+: 68 02 03 04 05 push \$0x5040302
+[ ]*[a-f0-9]+: 66 68 02 03 pushw \$0x302
+[ ]*[a-f0-9]+: 04 05 add \$0x5,%al
+[ ]*[a-f0-9]+: 48 68 02 03 04 05 rex\.W push \$0x5040302
+[ ]*[a-f0-9]+: 66 48 68 02 03 04 05 data16 rex\.W push \$0x5040302
[ ]*[a-f0-9]+: 0f a8 push %gs
[ ]*[a-f0-9]+: 66 0f a8 pushw %gs
[ ]*[a-f0-9]+: 48 0f a8 rex\.W push %gs
# push with a 1-byte immediate
try 0x6a, 0xff
- # push with a 4-byte immediate
- try 0x68, 0x01, 0x02, 0x03, 0x04
+ # push with a 4-(or 2-)byte immediate
+ try 0x68, 0x02, 0x03, 0x04, 0x05
# push a segment register
try 0x0f, 0xa8