i386: Also check R12-R15 registers when optimizing testq to testb
[deliverable/binutils-gdb.git] / gas / ChangeLog
index 4675ec817697cf38ef709b759fcc45b7acfe40f3..48c5430855ca86c0e14e121575a24d6f6678f138 100644 (file)
@@ -1,3 +1,14 @@
+2019-12-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       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.
+
 2019-12-12  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/gas/i386/align-branch-1.s: New file.
This page took 0.022633 seconds and 4 git commands to generate.