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 /gas/ChangeLog | |
parent | 347a87745eab23d8427349787bde4a938a1e8c3e (diff) | |
download | gdb-d3d50934a9101416c3106497d6ea9ce548760253.zip gdb-d3d50934a9101416c3106497d6ea9ce548760253.tar.gz 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 'gas/ChangeLog')
-rw-r--r-- | gas/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index d9ea1a4..7c37f13 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,12 @@ 2018-03-08 H.J. Lu <hongjiu.lu@intel.com> + * 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. + +2018-03-08 H.J. Lu <hongjiu.lu@intel.com> + * NEWS: Mention -mold-gcc removal. * config/tc-i386.c (i386_error): Remove old_gcc_only. (old_gcc): Removed. |