Fix mips16 libgcc build failure.
authorJim Wilson <wilson@cygnus.com>
Tue, 11 Aug 1998 12:28:52 +0000 (12:28 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 11 Aug 1998 12:28:52 +0000 (05:28 -0700)
* mips/mips.md (reload_outsi): Use M16_REG_P when TARGET_MIPS16.

From-SVN: r21673

gcc/ChangeLog
gcc/config/mips/mips.md

index 65af72a541cac8149b40b7e4d31befdd97d4c34e..248156ceff66cb0de12a772bd6386afea5e6b78d 100644 (file)
@@ -1,3 +1,7 @@
+Tue Aug 11 12:27:03 1998  Jim Wilson  <wilson@cygnus.com>
+
+       * mips/mips.md (reload_outsi): Use M16_REG_P when TARGET_MIPS16.
+
 Tue Aug 11 18:12:53 1998  Dave Love  <d.love@dl.ac.uk>
 
        * README.g77: Update from Craig.
index 558a83293441106fd4e8f948fe19d174d56a1023..74088549c022b896c262995c6821db83500d6aa7 100644 (file)
@@ -5130,7 +5130,9 @@ move\\t%0,%z4\\n\\
       DONE;
     }
   /* FIXME: I don't know how to get a value into the HI register.  */
-  if (GET_CODE (operands[0]) == REG && GP_REG_P (REGNO (operands[0])))
+  if (GET_CODE (operands[0]) == REG
+      && (TARGET_MIPS16 ? M16_REG_P (REGNO (operands[0]))
+         : GP_REG_P (REGNO (operands[0]))))
     {
       emit_move_insn (operands[0], operands[1]);
       DONE;