diff options
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index a0dd0ce..e091322 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -2557,9 +2557,11 @@ match_template (void) if (i.operands != t->operands) continue; - /* Check the suffix, except for some instructions in intel mode. */ + /* Check the suffix, except for some instructions in intel mode. + We do want to check suffix for crc32 even in intel mode. */ if ((t->opcode_modifier & suffix_check) && !(intel_syntax + && t->base_opcode != 0xf20f38f1 && (t->opcode_modifier & IgnoreSize))) continue; @@ -2845,6 +2847,8 @@ process_suffix (void) i.suffix = ((i.types[0] & Reg16) ? WORD_MNEM_SUFFIX : LONG_MNEM_SUFFIX); } + else if (i.tm.base_opcode == 0xf20f38f0) + i.suffix = BYTE_MNEM_SUFFIX; if (!i.suffix) { @@ -3040,6 +3044,10 @@ check_byte_reg (void) || i.tm.base_opcode == 0xfbf)) continue; + /* crc32 doesn't generate this warning. */ + if (i.tm.base_opcode == 0xf20f38f0) + continue; + if ((i.types[op] & WordReg) && i.op[op].regs->reg_num < 4) { /* Prohibit these changes in the 64bit mode, since the |