diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-03-08 06:41:34 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-03-08 06:41:34 -0800 |
commit | d3d50934a9101416c3106497d6ea9ce548760253 (patch) | |
tree | 1f8b1ad5d7b7052323ac1a0d51ef61e189a736f2 /opcodes/i386-tbl.h | |
parent | 347a87745eab23d8427349787bde4a938a1e8c3e (diff) | |
download | fsf-binutils-gdb-d3d50934a9101416c3106497d6ea9ce548760253.zip fsf-binutils-gdb-d3d50934a9101416c3106497d6ea9ce548760253.tar.gz fsf-binutils-gdb-d3d50934a9101416c3106497d6ea9ce548760253.tar.bz2 |
x86-64: Also optimize "clr reg64"
"clr reg" is an alias of "xor reg, reg". We can encode "clr reg64" as
"xor reg32, reg32".
gas/
* config/tc-i386.c (optimize_encoding): Also encode "clr reg64"
as "xor reg32, reg32".
* testsuite/gas/i386/x86-64-optimize-1.s: Add "clr reg64" tests.
* testsuite/gas/i386/x86-64-optimize-1.d: Updated.
opcodes/
* i386-opc.tbl: Add Optimize to clr.
* i386-tbl.h: Regenerated.
Diffstat (limited to 'opcodes/i386-tbl.h')
-rw-r--r-- | opcodes/i386-tbl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/i386-tbl.h b/opcodes/i386-tbl.h index 433f257..06b8b96 100644 --- a/opcodes/i386-tbl.h +++ b/opcodes/i386-tbl.h @@ -2115,7 +2115,7 @@ const insn_template i386_optab[] = 0, 0, 0, 0, 0, 0 } }, { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 }, { { { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, |