i386.md (movsf_1): Check REG_P before use of REGNO.
authorAlasdair Baird <alasdair@wildcat.demon.co.uk>
Sat, 4 Sep 1999 00:24:08 +0000 (00:24 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 4 Sep 1999 00:24:08 +0000 (18:24 -0600)
        * i386.md (movsf_1): Check REG_P before use of REGNO.
        (movdf_1): Likewise.
        (movxf_1): Likewise.
        (extendsfdf2): Likewise.
        (extendsfxf2): Likewise.
        (extenddfxf2): Likewise.

From-SVN: r29094

gcc/ChangeLog
gcc/config/i386/i386.md

index 2c509e3338935c4ae6937aa44133b8af657cdac3..d0e19edf1d8b7845897efa4d80a61d3cfd4bf0fa 100644 (file)
@@ -1,3 +1,12 @@
+Fri Sep  3 01:16:18 1999  Alasdair Baird  <alasdair@wildcat.demon.co.uk>
+
+       * i386.md (movsf_1): Check REG_P before use of REGNO.
+       (movdf_1): Likewise.
+       (movxf_1): Likewise.
+       (extendsfdf2): Likewise.
+       (extendsfxf2): Likewise.
+       (extenddfxf2): Likewise.
+
 Sat Sep  4 11:37:15 1999  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
        * config/c4x/c4x.c (c4x_emit_move_sequence): Do not force large
index 7620712899cfa545f30503a6fab685b4147d1fb7..d628100a193003c2cb8b2911d38ddf85e6130f92 100644 (file)
   switch (which_alternative)
     {
     case 0:
-      if (find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
+      if (REG_P (operands[1])
+          && find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
         return \"fstp\\t%0\";
       else if (STACK_TOP_P (operands[0]))
         return \"fld%z1\\t%1\";
   switch (which_alternative)
     {
     case 0:
-      if (find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
+      if (REG_P (operands[1])
+          && find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
         return \"fstp\\t%0\";
       else if (STACK_TOP_P (operands[0]))
         return \"fld%z1\\t%1\";
   switch (which_alternative)
     {
     case 0:
-      if (find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
+      if (REG_P (operands[1])
+          && find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
         return \"fstp\\t%0\";
       else if (STACK_TOP_P (operands[0]))
         return \"fld%z1\\t%1\";
   switch (which_alternative)
     {
     case 0:
-      if (find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
+      if (REG_P (operands[1])
+          && find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
         return \"fstp\\t%0\";
       else if (STACK_TOP_P (operands[0]))
         return \"fld%z1\\t%1\";
   switch (which_alternative)
     {
     case 0:
-      if (find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
+      if (REG_P (operands[1])
+          && find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
         return \"fstp\\t%0\";
       else if (STACK_TOP_P (operands[0]))
         return \"fld%z1\\t%1\";
   switch (which_alternative)
     {
     case 0:
-      if (find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
+      if (REG_P (operands[1])
+          && find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
         return \"fstp\\t%0\";
       else if (STACK_TOP_P (operands[0]))
         return \"fld%z1\\t%1\";