From: Richard Kenner Date: Tue, 18 Oct 1994 12:38:54 +0000 (-0400) Subject: (non_hard_reg_operand): New function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a149902a7d0f87e7eeb68dfd85119279c4a4a5f;p=gcc.git (non_hard_reg_operand): New function. From-SVN: r8300 --- 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