diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2019-12-12 12:25:48 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2019-12-12 12:31:26 -0800 |
commit | ac0ab1842de0e4522248ff9805c5c4e3267c8ae7 (patch) | |
tree | d07205df31a85cd5658dec5ff14032bc6174a221 /gdb/symfile.c | |
parent | 8493b6651af3d2130d5f5f050905cd3d6e8a9c27 (diff) | |
download | gdb-ac0ab1842de0e4522248ff9805c5c4e3267c8ae7.zip gdb-ac0ab1842de0e4522248ff9805c5c4e3267c8ae7.tar.gz gdb-ac0ab1842de0e4522248ff9805c5c4e3267c8ae7.tar.bz2 |
i386: Also check R12-R15 registers when optimizing testq to testb
Similar to SP, BP, SI and DI registers, R12-R15 registers must use REX
prefix for the low byte register when optimizing
test $imm7, %r64/%r32/%r16 -> test $imm7, %r8
PR gas/25274
* config/tc-i386.c (optimize_encoding): Also check R12-R15
registers for "test $imm7, %r64/%r32/%r16 -> test $imm7, %r8"
optimization.
* testsuite/gas/i386/x86-64-optimize-3.s: Add tests for test
with r12.
* testsuite/gas/i386/x86-64-optimize-3.d: Updated.
* testsuite/gas/i386/x86-64-optimize-3b.d: Likewise.
Diffstat (limited to 'gdb/symfile.c')
0 files changed, 0 insertions, 0 deletions