x86: Replace AddrPrefixOp0 with AddrPrefixOpReg
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 7 May 2018 16:57:06 +0000 (09:57 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 7 May 2018 16:57:06 +0000 (09:57 -0700)
commit75c0a438994f00240ecd1baca3e3c11cc3b219e5
tree44e13c8f0315ab6e42c9faea4ce15fdbf3f8c7ff
parentaff689d36d66dd45a59008f3778d3d22e3cfcb9b
x86: Replace AddrPrefixOp0 with AddrPrefixOpReg

This patch replaces AddrPrefixOp0 with AddrPrefixOpReg to indicate that
the size of register operand is controlled by the address size prefix.
This will be used by Intel MOVDIRI and MOVDIR64B instructions later.

gas/

* config/tc-i386.c (process_suffix): Check addrprefixopreg
instead of addrprefixop0.

opcodes/

* i386-gen.c (opcode_modifiers): Replace AddrPrefixOp0 with
AddrPrefixOpReg.
* i386-opc.h (AddrPrefixOp0): Renamed to ...
(AddrPrefixOpReg): This.
(i386_opcode_modifier): Rename addrprefixop0 to addrprefixopreg.
* i386-opc.tbl: Replace AddrPrefixOp0 with AddrPrefixOpReg.
gas/ChangeLog
gas/config/tc-i386.c
opcodes/ChangeLog
opcodes/i386-gen.c
opcodes/i386-opc.h
opcodes/i386-opc.tbl