From 8a149902a7d0f87e7eeb68dfd85119279c4a4a5f Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 18 Oct 1994 08:38:54 -0400 Subject: [PATCH] (non_hard_reg_operand): New function. From-SVN: r8300 --- gcc/config/pa/pa.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index e085c870194..168cf0cd690 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -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 -- 2.30.2