x86: optimize AND/OR with twice the same register
[deliverable/binutils-gdb.git] / gas / ChangeLog
index ed20593778686e954c58d1a3384408cc06b621f9..2206e3ddd154c45e3083c242c8bd02ed42377d2e 100644 (file)
@@ -1,3 +1,17 @@
+2019-07-01  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (optimize_encoding): Handle AND / OR with
+       both operands being the same register.
+       * doc/c-i386.texi: Update -O2 documentation.
+       * testsuite/gas/i386/optimize-2.s,
+       testsuite/gas/i386/x86-64-optimize-3.s: Add cases of AND / OR
+       with both operands being the same register.
+       * testsuite/gas/i386/optimize-2.d,
+       testsuite/gas/i386/x86-64-optimize-3.d: Adjust expectations.
+       * testsuite/gas/i386/optimize-2b.d,
+       testsuite/gas/i386/x86-64-optimize-3b.d: New.
+       * testsuite/gas/i386/i386.exp: Run new test.
+
 2019-07-01  Jan Beulich  <jbeulich@suse.com>
 
        * config/tc-i386.c (commutative): New.
This page took 0.027061 seconds and 4 git commands to generate.