(non_hard_reg_operand): New function.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 18 Oct 1994 12:38:54 +0000 (08:38 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 18 Oct 1994 12:38:54 +0000 (08:38 -0400)
From-SVN: r8300

gcc/config/pa/pa.c

index e085c8701945870a166b9a1de64e794af384e0da..168cf0cd690cb63566e7ca033d6d6671fd93c1ea 100644 (file)
@@ -3987,6 +3987,16 @@ shadd_operand (op, mode)
   return (GET_CODE (op) == CONST_INT && shadd_constant_p (INTVAL (op)));
 }
 
+/* Return 1 if this operand is anything other than a hard register.  */
+
+int
+non_hard_reg_operand (op, mode)
+     rtx op;
+     enum machine_mode mode;
+{
+  return ! (GET_CODE (op) == REG && REGNO (op) < FIRST_PSEUDO_REGISTER);
+}
+
 /* Return 1 if INSN branches forward.  Should be using insn_addresses
    to avoid walking through all the insns... */
 int