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/pyr | |
parent | 17140e94b7ebbf70dfeb5c5e9883915ccbca9dde (diff) | |
download | gcc-8abded10788a3d5d66c8f09c94358ab1c5d4b159.tar.gz |
(INCOMING_REGNO, OUTGOING_REGNO): Define.
From-SVN: r3882
Diffstat (limited to 'gcc/config/pyr')
-rw-r--r-- | gcc/config/pyr/pyr.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/config/pyr/pyr.h b/gcc/config/pyr/pyr.h index 54175c7d1b5..163213acd25 100644 --- a/gcc/config/pyr/pyr.h +++ b/gcc/config/pyr/pyr.h @@ -254,6 +254,22 @@ frame n | | | | #define PYR_LREG(n) (32+(n)) #define PYR_TREG(n) (48+(n)) +/* 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) < 48 || (OUT) > 63) ? (OUT) : (OUT) - 32) + +/* 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) < 15 || (IN) > 31) ? (IN) : (IN) + 32) + #define FIRST_PSEUDO_REGISTER 64 /* 1 for registers that have pervasive standard uses |