diff options
author | Tom Wood <wood@gnu.org> | 1993-03-26 11:25:40 +0000 |
---|---|---|
committer | Tom Wood <wood@gnu.org> | 1993-03-26 11:25:40 +0000 |
commit | 8abded10788a3d5d66c8f09c94358ab1c5d4b159 (patch) | |
tree | b4ef01c86add83c4387b93926e9dcfcb2656f141 /gcc/config/spur | |
parent | 17140e94b7ebbf70dfeb5c5e9883915ccbca9dde (diff) | |
download | gcc-8abded10788a3d5d66c8f09c94358ab1c5d4b159.zip gcc-8abded10788a3d5d66c8f09c94358ab1c5d4b159.tar.gz gcc-8abded10788a3d5d66c8f09c94358ab1c5d4b159.tar.bz2 |
(INCOMING_REGNO, OUTGOING_REGNO): Define.
From-SVN: r3882
Diffstat (limited to 'gcc/config/spur')
-rw-r--r-- | gcc/config/spur/spur.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/config/spur/spur.h b/gcc/config/spur/spur.h index 49fbb7c..baa1855 100644 --- a/gcc/config/spur/spur.h +++ b/gcc/config/spur/spur.h @@ -375,6 +375,22 @@ enum reg_class { NO_REGS, GENERAL_REGS, FP_REGS, ALL_REGS, LIM_REG_CLASSES }; On SPUR, these are the "output" registers. */ #define FUNCTION_ARG_REGNO_P(N) ((N) < 32 && (N) > 26) + +/* Define this macro if the target machine has "register windows". This + C expression returns the register number as seen by the called function + corresponding to register number OUT as seen by the calling function. + Return OUT if register number OUT is not an outbound register. */ + +#define INCOMING_REGNO(OUT) \ + (((OUT) < 27 || (OUT) > 31) ? (OUT) : (OUT) - 16) + +/* Define this macro if the target machine has "register windows". This + C expression returns the register number as seen by the calling function + corresponding to register number IN as seen by the called function. + Return IN if register number IN is not an inbound register. */ + +#define OUTGOING_REGNO(IN) \ + (((IN) < 11 || (IN) > 15) ? (IN) : (IN) + 16) /* Define a data type for recording info about an argument list during the scan of that argument list. This data type should |