aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1998-08-11 12:28:52 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-08-11 05:28:52 -0700
commitca45b9134f329a8680bd0a6562523d7741985df1 (patch)
tree8ec166a9a0818c13f695f329aedb0cf8257dac41
parentbeaa74ae0305052f4e96ae02769c5ff0ac89cbc9 (diff)
downloadgcc-ca45b9134f329a8680bd0a6562523d7741985df1.zip
gcc-ca45b9134f329a8680bd0a6562523d7741985df1.tar.gz
gcc-ca45b9134f329a8680bd0a6562523d7741985df1.tar.bz2
Fix mips16 libgcc build failure.
* mips/mips.md (reload_outsi): Use M16_REG_P when TARGET_MIPS16. From-SVN: r21673
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/mips/mips.md4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 65af72a..248156c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index 558a832..7408854 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -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;