forked from Imagelibrary/binutils-gdb
gas/config/
2007-05-01 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (match_template): Check suffix for crc32 in Intel mdoe. (process_suffix): Default the suffix of 8bit crc32 to BYTE_MNEM_SUFFIX. (check_byte_reg): Skip check for 8bit crc32. gas/testsuite/ 2007-05-01 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/crc32-intel.d: New file. * gas/i386/crc32.d:Likewise. * gas/i386/crc32.s:Likewise. * gas/i386/x86-64-crc32-intel.d:Likewise. * gas/i386/x86-64-crc32.d:Likewise. * gas/i386/x86-64-crc32.s:Likewise. * gas/i386/i386.exp: Run crc32, crc32-intel, x86-64-crc32 and x86-64-crc32-intel. opcodes/ 2007-05-01 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (CRC32_Fixup): Properly handle Intel mode and check data size prefix in 16bit mode. * i386-opc.c (i386_optab): Default crc32 to non-8bit and support Intel mode.
This commit is contained in:
@@ -6390,13 +6390,11 @@ CRC32_Fixup (int bytemode, int sizeflag)
|
||||
USED_REX (REX_W);
|
||||
if (rex & REX_W)
|
||||
*p++ = 'q';
|
||||
else if ((prefixes & PREFIX_DATA))
|
||||
{
|
||||
*p++ = 'w';
|
||||
used_prefixes |= (prefixes & PREFIX_DATA);
|
||||
}
|
||||
else if (sizeflag & DFLAG)
|
||||
*p++ = intel_syntax ? 'd' : 'l';
|
||||
else
|
||||
*p++ = 'l';
|
||||
*p++ = 'w';
|
||||
used_prefixes |= (prefixes & PREFIX_DATA);
|
||||
break;
|
||||
default:
|
||||
oappend (INTERNAL_DISASSEMBLER_ERROR);
|
||||
@@ -6434,5 +6432,5 @@ CRC32_Fixup (int bytemode, int sizeflag)
|
||||
}
|
||||
}
|
||||
else
|
||||
OP_E (v_mode, sizeflag);
|
||||
OP_E (bytemode, sizeflag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user