Files
H.J. Lu be5ff8fe6d x86: Update register operand check for AddrPrefixOpReg
When the address size prefix applies to both the memory and the register
operand, we need to extract the address size prefix from the register
operand if the memory operand has no real registers, like symbol, DISP
or symbol(%rip).

NB: GCC always generates symbol(%rip) for RIP-relative addressing for
both x32 and x86-64.

Move the .code16 tests in movdir.s to movdir-16bit to show the correct
output from objdump.

gas/

	PR gas/26685
	* config/tc-i386.c (process_suffix): Also check the register
	operand for the address size prefix if the memory operand has
	no real registers.
	* testsuite/gas/i386/enqcmd-16bit.d: New file.
	* testsuite/gas/i386/enqcmd-16bit.s: Likewise.
	* testsuite/gas/i386/movdir-16bit.d: Likewise.
	* testsuite/gas/i386/movdir-16bit.s: Likewise.
	* testsuite/gas/i386/enqcmd.s: Add tests with symbol and DISP.
	* testsuite/gas/i386/x86-64-enqcmd.s: Likewise.
	* testsuite/gas/i386/x86-64-movdir.s: Likewise.
	* testsuite/gas/i386/movdir.s: Add tests with symbol and DISP.
	Remove the .code16 test.
	* testsuite/gas/i386/i386.exp: Run movdir-16bit and enqcmd-16bit.
	* testsuite/gas/i386/x86-64-enqcmd-intel.d: Updated.
	* testsuite/gas/i386/x86-64-enqcmd.d: Likewise.
	* testsuite/gas/i386/x86-64-movdir-intel.d: Likewise.
	* testsuite/gas/i386/x86-64-movdir.d: Likewise.
	* testsuite/gas/i386/enqcmd-intel.d: Likewise.
	* testsuite/gas/i386/enqcmd.d: Likewise.
	* testsuite/gas/i386/movdir-intel.d: Likewise.
	* testsuite/gas/i386/movdir.d: Likewise.
	* testsuite/gas/i386/x86-64-enqcmd-intel.d: Likewise.
	* testsuite/gas/i386/x86-64-enqcmd.d: Likewise.
	* testsuite/gas/i386/x86-64-movdir-intel.d: Likewise.
	* testsuite/gas/i386/x86-64-movdir.d: Likewise.

opcodes/

	PR gas/26685
	* i386-dis.c (mod_table): Replace Gv with Gdq on movdiri.

(cherry picked from commit b3a3496f83a14ad226790725c8e3ed9777fe2899)
2020-10-07 11:25:28 -07:00
..
2020-09-19 11:36:14 +01:00
2020-02-26 10:37:25 +10:30
2020-02-26 10:37:25 +10:30
2020-03-26 20:02:42 +10:30
2020-06-29 10:07:56 +09:30
2020-08-26 15:46:09 +02:00
2020-08-26 15:46:09 +02:00
2020-08-26 15:46:09 +02:00
2020-08-26 15:46:09 +02:00
2020-06-05 16:22:46 +09:30
2019-01-01 21:25:40 +10:30
2020-01-01 18:12:08 +10:30
2020-09-19 11:36:14 +01:00
2020-06-29 10:07:56 +09:30
2020-06-29 10:07:56 +09:30
2020-07-02 08:46:48 -07:00
2020-08-04 05:44:17 -07:00
2020-08-04 05:44:17 -07:00
2020-08-04 05:44:17 -07:00
2020-01-10 17:32:33 +10:30
2020-01-10 17:32:33 +10:30
2020-03-20 12:35:51 +10:30
2020-06-29 10:07:56 +09:30
2020-02-26 10:37:25 +10:30
2020-02-26 10:37:25 +10:30
2020-05-28 22:08:42 +09:30
2020-01-17 12:34:03 -06:00
2020-06-06 14:44:32 +09:30
2020-03-22 23:20:15 +10:30
2020-06-29 10:07:56 +09:30
2020-01-13 12:12:41 +10:30
2020-01-13 12:12:41 +10:30
2020-06-29 10:07:56 +09:30
2020-02-26 10:37:25 +10:30
2020-06-29 10:07:56 +09:30