x86: Add {rex} pseudo prefix
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Feb 2018 14:18:27 +0000 (06:18 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Feb 2018 14:18:39 +0000 (06:18 -0800)
commit6b6b680700699c15e22b6c36975729035676eef1
tree436eba8cc606c8539c1185c14d74efb96b43a841
parent39334a61e63321352304cbae77b37fcba4fed662
x86: Add {rex} pseudo prefix

Add {rex} pseudo prefix to generate a REX byte for integer and legacy
vector instructions if possible.  Note that this differs from the rex
prefix which generates REX prefix unconditionally.

gas/

* config/tc-i386.c (_i386_insn): Add rex_encoding.
(md_assemble): When i.rex_encoding is true, generate a REX byte
if possible.
(parse_insn): Set i.rex_encoding for {rex}.
* doc/c-i386.texi: Document {rex}.
* testsuite/gas/i386/x86-64-pseudos.s: Add {rex} tests.
* testsuite/gas/i386/x86-64-pseudos.d: Updated.

opcodes/

* i386-opc.tbl: Add {rex},
* i386-tbl.h: Regenerated.
gas/ChangeLog
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/gas/i386/x86-64-pseudos.d
gas/testsuite/gas/i386/x86-64-pseudos.s
opcodes/ChangeLog
opcodes/i386-opc.tbl
opcodes/i386-tbl.h
This page took 0.029622 seconds and 4 git commands to generate.