aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-i386-intel.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2013-10-10 12:22:41 +0000
committerJan Beulich <jbeulich@novell.com>2013-10-10 12:22:41 +0000
commit47cd3fa7ee3ebcee7d27a1b25738cc92c3d8d31c (patch)
treef2f01f86cc7d0e6b3ec28f8c3af1776348aaa889 /gas/config/tc-i386-intel.c
parent05feb1933f80f2d55e132adc657d3152947af3d1 (diff)
downloadgdb-47cd3fa7ee3ebcee7d27a1b25738cc92c3d8d31c.zip
gdb-47cd3fa7ee3ebcee7d27a1b25738cc92c3d8d31c.tar.gz
gdb-47cd3fa7ee3ebcee7d27a1b25738cc92c3d8d31c.tar.bz2
gas/
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.
Diffstat (limited to 'gas/config/tc-i386-intel.c')
-rw-r--r--gas/config/tc-i386-intel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-i386-intel.c b/gas/config/tc-i386-intel.c
index 3f6b057..e534110 100644
--- a/gas/config/tc-i386-intel.c
+++ b/gas/config/tc-i386-intel.c
@@ -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