Allow calls to absolute addresses.
authorMichael Meissner <meissner@gcc.gnu.org>
Fri, 18 Sep 1992 21:33:31 +0000 (21:33 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Fri, 18 Sep 1992 21:33:31 +0000 (21:33 +0000)
From-SVN: r2154

gcc/config/mips/mips.md

index 9cfc27ea462b2f31096e909e1e9183b5d6b5003a..8f3274b44d0438ce4a9da24217ea6d13bda95eec 100644 (file)
@@ -4005,6 +4005,13 @@ move\\t%0,%z4\\n\\
   if (GET_CODE (target) == SYMBOL_REF)
     return \"%*jal\\t%0\";
 
+  else if (GET_CODE (target) == CONST_INT)
+    {
+      operands[0] = target;
+      operands[1] = gen_rtx (REG, SImode, GP_REG_FIRST + 31);
+      return \"%*%[li\\t%@,%0\\n\\tjal\\t%1,%@%]\";
+    }
+
   else
     {
       operands[0] = target;
@@ -4048,6 +4055,13 @@ move\\t%0,%z4\\n\\
   if (GET_CODE (target) == SYMBOL_REF)
     return \"%*jal\\t%1\";
 
+  else if (GET_CODE (target) == CONST_INT)
+    {
+      operands[1] = target;
+      operands[2] = gen_rtx (REG, SImode, GP_REG_FIRST + 31);
+      return \"%*%[li\\t%@,%1\\n\\tjal\\t%2,%@%]\";
+    }
+
   else
     {
       operands[1] = target;