aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2000-08-14 21:12:47 +0000
committerDiego Novillo <dnovillo@google.com>2000-08-14 21:12:47 +0000
commitfa2255cb6bd0e86e547f64660f09db56365edd9f (patch)
tree7b1950d5dd9f262286a1a3a25274aab20a0b12ae /gas/config
parentc43c2cc5fab9b4e50144fd1a7dce611a7ccc1c6a (diff)
downloadgdb-fa2255cb6bd0e86e547f64660f09db56365edd9f.zip
gdb-fa2255cb6bd0e86e547f64660f09db56365edd9f.tar.gz
gdb-fa2255cb6bd0e86e547f64660f09db56365edd9f.tar.bz2
* tc-i386.c (md_assemble): Skip suffix check if the opcode modifier
has the IgnoreSize bit set.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 4324e28..5f85b2b 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -1519,6 +1519,8 @@ md_assemble (line)
/* Check the suffix, except for some instructions in intel mode. */
if ((t->opcode_modifier & suffix_check)
&& !(intel_syntax
+ && (t->opcode_modifier & IgnoreSize))
+ && !(intel_syntax
&& t->base_opcode == 0xd9
&& (t->extension_opcode == 5 /* 0xd9,5 "fldcw" */
|| t->extension_opcode == 7))) /* 0xd9,7 "f{n}stcw" */
@@ -1808,6 +1810,9 @@ md_assemble (line)
}
#endif
}
+ else if (intel_syntax && (i.tm.opcode_modifier & IgnoreSize))
+ /* Do nothing if the instruction is going to ignore the prefix. */
+ ;
else
abort ();
}