2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Apr 2008 18:22:37 +0000 (18:22 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Apr 2008 18:22:37 +0000 (18:22 +0000)
* config/tc-i386.c (build_modrm_byte): Don't check FMA to swap
REG and NDS for instructions with immediate operand.

gas/ChangeLog
gas/config/tc-i386.c

index 40983dc9dcd1bdb52a29873c9f6ddd1791bf95f8..cfee6252e239443162e43b5ad6808d5ce560db5d 100644 (file)
@@ -1,3 +1,8 @@
+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
index ceabbf71b696a1dc2eb9f2094e1cb838e13c7c9c..1facc02f60c4e71d2dfddc43bf3bc4c2f9094a06 100644 (file)
@@ -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));