From: H.J. Lu Date: Fri, 18 Apr 2008 18:22:37 +0000 (+0000) Subject: 2008-04-18 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eff014d9160218e61ff961db913bf76c36f24db2;p=binutils-gdb.git 2008-04-18 H.J. Lu * config/tc-i386.c (build_modrm_byte): Don't check FMA to swap REG and NDS for instructions with immediate operand. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 40983dc9dcd..cfee6252e23 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2008-04-18 H.J. Lu + + * config/tc-i386.c (build_modrm_byte): Don't check FMA to swap + REG and NDS for instructions with immediate operand. + 2008-04-18 H.J. Lu * config/tc-i386.c (build_modrm_byte): Swap REG and NDS for diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index ceabbf71b69..1facc02f60c 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -5100,15 +5100,6 @@ build_modrm_byte (void) i.types[imm].bitfield.imm8 = 1; } - /* FMA swaps REG and NDS. */ - if (i.tm.cpu_flags.bitfield.cpufma) - { - unsigned int tmp; - tmp = reg; - reg = nds; - nds = tmp; - } - assert (operand_type_equal (&i.tm.operand_types[reg], ®xmm) || operand_type_equal (&i.tm.operand_types[reg], ®ymm));