aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2008-04-18 18:22:37 +0000
committerH.J. Lu <hjl.tools@gmail.com>2008-04-18 18:22:37 +0000
commiteff014d9160218e61ff961db913bf76c36f24db2 (patch)
tree68e754cfdfe1b91afc6164a83796f74d2829da82
parent5ae542419de15ad6f48110068c39df08b0750120 (diff)
downloadgdb-eff014d9160218e61ff961db913bf76c36f24db2.zip
gdb-eff014d9160218e61ff961db913bf76c36f24db2.tar.gz
gdb-eff014d9160218e61ff961db913bf76c36f24db2.tar.bz2
2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (build_modrm_byte): Don't check FMA to swap REG and NDS for instructions with immediate operand.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c9
2 files changed, 5 insertions, 9 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 40983dc..cfee625 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,10 @@
2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
+ * 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 <hongjiu.lu@intel.com>
+
* config/tc-i386.c (build_modrm_byte): Swap REG and NDS for
FMA.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index ceabbf7..1facc02 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], &regxmm)
|| operand_type_equal (&i.tm.operand_types[reg],
&regymm));