diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-10-18 08:38:54 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-10-18 08:38:54 -0400 |
commit | 8a149902a7d0f87e7eeb68dfd85119279c4a4a5f (patch) | |
tree | 53256d4b71a841a585470f63726589693a6114cb /gcc | |
parent | fadb3bc9b5589d66c605731e22c5db4ed893a26e (diff) | |
download | gcc-8a149902a7d0f87e7eeb68dfd85119279c4a4a5f.zip gcc-8a149902a7d0f87e7eeb68dfd85119279c4a4a5f.tar.gz gcc-8a149902a7d0f87e7eeb68dfd85119279c4a4a5f.tar.bz2 |
(non_hard_reg_operand): New function.
From-SVN: r8300
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/pa/pa.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index e085c87..168cf0c 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 |