x86-64: correct / adjust prefix emission
[deliverable/binutils-gdb.git] / gas / ChangeLog
index 9a516051297696433344b1285a7d253d61d3d8d5..286f018747b0564115c2f24a31bcb6785f7d796b 100644 (file)
@@ -1,3 +1,32 @@
+2019-12-27  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (output_branch): Handle BND prefix the same
+       way as other prefixes. Emit it last before REX.
+       (output_jump): Emit BND before REX.
+       (output_interseg_jump): Don't emit REX.
+       * testsuite/gas/i386/x86-64-branch-2.s,
+       testsuite/gas/i386/x86-64-branch-3.s,
+       testsuite/gas/i386/x86-64-mpx-branch-1.s,
+       testsuite/gas/i386/x86-64-mpx-branch-2.s: Add REX.W cases.
+       * testsuite/gas/i386/x86-64-mpx-branch-2.d: Match output against
+       x86-64-mpx-branch-1.d.
+       * testsuite/gas/i386/x86-64-branch-2.d,
+       testsuite/gas/i386/x86-64-branch-3.d,
+       testsuite/gas/i386/x86-64-mpx-branch-1.d: Adjust expectations.
+
+2019-12-27  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (flip_code16): New.
+       (output_branch, output_jump): Use it.
+       (i386_displacement): Restrict template set to just direct
+       branches when handling a respective operand. Don't set Disp16
+       when in Intel64 mode and there's a respective template.
+       * testsuite/gas/i386/i386.exp: Convert x86-64-branch-3 from list
+       to dump test. Drop its XFail again.
+       * testsuite/gas/i386/x86-64-branch-3.d: New.
+       * testsuite/gas/i386/x86-64-branch-3.l: Delete.
+       * testsuite/gas/i386/x86-64-branch-3.s: Add XBEGIN case.
+
 2019-12-27  Jan Beulich  <jbeulich@suse.com>
 
        * config/tc-i386.c (i386_addressing_mode): Declare.
This page took 0.026027 seconds and 4 git commands to generate.