]> gcc.gnu.org Git - gcc.git/commitdiff
(clobbered_register): Delete.
authorTorbjorn Granlund <tege@gnu.org>
Thu, 24 Sep 1992 19:36:29 +0000 (19:36 +0000)
committerTorbjorn Granlund <tege@gnu.org>
Thu, 24 Sep 1992 19:36:29 +0000 (19:36 +0000)
(srcsi_operand): Return 1 also for things matching depi_cint_operand.
(secondary_reload_class): Replace.

From-SVN: r2233

gcc/config/pa/pa.c

index 1e18a145fac303e6794690efe8643f9084d2ffba..f723542eb956fa94dbbc855bbe6184befb8a846e 100644 (file)
@@ -382,15 +382,6 @@ arith32_operand (op, mode)
   return register_operand (op, mode) || GET_CODE (op) == CONST_INT;
 }
 
-/* Return truth value of statement that OP is a call-clobbered register.  */
-int
-clobbered_register (op, mode)
-     rtx op;
-     enum machine_mode mode;
-{
-  return (GET_CODE (op) == REG && call_used_regs[REGNO (op)]);
-}
-
 /* True iff OP can be the source of a move to a general register.  */
 int
 srcsi_operand (op, mode)
@@ -405,6 +396,9 @@ srcsi_operand (op, mode)
   if (nonimmediate_operand (op, mode))
     return 1;
 
+  if (depi_cint_operand (op, mode))
+    return 1;
+
   /* OK if ldo or ldil can be used.  */
   return (GET_CODE (op) == CONST_INT
          && (INT_14_BITS (op) || (INTVAL (op) & 0x7ff) == 0));
@@ -2378,8 +2372,8 @@ output_arg_descriptor (insn)
   fputc ('\n', asm_out_file);
 }
 \f
-/* Memory loads/stores to/from fp registers may need a scratch
-   register in which to reload the address. */
+/* Memory loads/stores to/from the shift need to go through
+   the general registers.  */
 
 enum reg_class
 secondary_reload_class (class, mode, in)
@@ -2389,12 +2383,10 @@ secondary_reload_class (class, mode, in)
 {
   int regno = true_regnum (in);
 
-  if ((regno >= FIRST_PSEUDO_REGISTER || regno == -1)
-      && (class == FP_REGS || class == SNAKE_FP_REGS
-         || class == HI_SNAKE_FP_REGS))
+  if (class == SHIFT_REGS && (regno <= 0 || regno >= 32))
     return GENERAL_REGS;
-  else
-    return NO_REGS;
+
+  return NO_REGS;
 }
 
 enum direction
This page took 0.073501 seconds and 5 git commands to generate.