gas/
authorJan Beulich <jbeulich@novell.com>
Thu, 10 Oct 2013 12:22:41 +0000 (12:22 +0000)
committerJan Beulich <jbeulich@novell.com>
Thu, 10 Oct 2013 12:22:41 +0000 (12:22 +0000)
2013-10-10  Jan Beulich <jbeulich@suse.com>

* tc-i386-intel.c (i386_intel_simplify_register): Suppress base/index
swapping for bndmk, bndldx, and bndstx.

gas/ChangeLog
gas/config/tc-i386-intel.c

index 91d3b3a..688924c 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-10  Jan Beulich <jbeulich@suse.com>
+
+       * tc-i386-intel.c (i386_intel_simplify_register): Suppress base/index
+       swapping for bndmk, bndldx, and bndstx.
+
 2013-10-09  Nick Clifton  <nickc@redhat.com>
 
        PR gas/16025
index 3f6b057..e534110 100644 (file)
@@ -291,6 +291,8 @@ i386_intel_simplify_register (expressionS *e)
   else if (!intel_state.index)
     {
       if (intel_state.in_scale
+         || current_templates->start->base_opcode == 0xf30f1b /* bndmk */
+         || (current_templates->start->base_opcode & ~1) == 0x0f1a /* bnd{ld,st}x */
          || i386_regtab[reg_num].reg_type.bitfield.baseindex)
        intel_state.index = i386_regtab + reg_num;
       else