aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 19c47b7..91a8ad0 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2021-03-24 Jan Beulich <jbeulich@suse.com>
+
+ * config/tc-i386.c (parse_insn): Recognize pseudo prefixes by
+ base_opcode and extension_opcode.
+
2021-03-23 Jan Beulich <jbeulich@suse.com>
* config/tc-i386.c (pte): Re-order opc_pfx[] entries.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 1f2e407..dfb64d4 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -5101,10 +5101,11 @@ parse_insn (char *line, char *mnemonic)
current_templates->start->name);
return NULL;
}
- if (current_templates->start->opcode_length == 0)
+
+ if (current_templates->start->base_opcode == PSEUDO_PREFIX)
{
/* Handle pseudo prefixes. */
- switch (current_templates->start->base_opcode)
+ switch (current_templates->start->extension_opcode)
{
case Prefix_Disp8:
/* {disp8} */