diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-01-17 07:07:55 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-01-17 07:07:55 -0800 |
commit | 42e04b360158941f4d490a38cad14b11593854fa (patch) | |
tree | 9bf46016eb0fbf13ee7dde413deed9aa4e6ef5f5 /gas/config | |
parent | 26f42329caf1dcd4a410de61045208024156169f (diff) | |
download | fsf-binutils-gdb-42e04b360158941f4d490a38cad14b11593854fa.zip fsf-binutils-gdb-42e04b360158941f4d490a38cad14b11593854fa.tar.gz fsf-binutils-gdb-42e04b360158941f4d490a38cad14b11593854fa.tar.bz2 |
x86: Add {vex} pseudo prefix
There are 2-byte VEX prefix and 3-byte VEX prefix. 2-byte VEX prefix
can't encode all operands. By default, assembler tries 2-byte VEX prefix
first. {vex3} can be used to force 3-byte VEX prefix. This patch adds
{vex} pseudo prefix and keeps {vex2} for backward compatibility.
gas/
* config/tc-i386.c (_i386_insn): Replace vex_encoding_vex2
with vex_encoding_vex.
(parse_insn): Likewise.
* doc/c-i386.texi: Replace {vex2} with {vex}. Update {vex}
and {vex3} documentation.
* testsuite/gas/i386/pseudos.s: Replace 3 {vex2} tests with
{vex}.
* testsuite/gas/i386/x86-64-pseudos.s: Likewise.
opcodes/
* i386-opc.tbl: Add {vex} pseudo prefix.
* i386-tbl.h: Regenerated.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 3f7f422..8728725 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -419,7 +419,7 @@ struct _i386_insn enum { vex_encoding_default = 0, - vex_encoding_vex2, + vex_encoding_vex, vex_encoding_vex3, vex_encoding_evex } vec_encoding; @@ -4722,8 +4722,8 @@ parse_insn (char *line, char *mnemonic) i.dir_encoding = dir_encoding_store; break; case 0x4: - /* {vex2} */ - i.vec_encoding = vex_encoding_vex2; + /* {vex} */ + i.vec_encoding = vex_encoding_vex; break; case 0x5: /* {vex3} */ |