diff options
author | Jeff Law <law@gcc.gnu.org> | 1993-01-03 19:22:04 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1993-01-03 19:22:04 -0700 |
commit | 9c103251ff776a83768ad8790977c73585aae268 (patch) | |
tree | 2ed008dc449abdb49435dfe35a1af2743fc23dc8 | |
parent | ff6cb22f9c458b56c43286608da7b1846c6b0e90 (diff) | |
download | gcc-9c103251ff776a83768ad8790977c73585aae268.zip gcc-9c103251ff776a83768ad8790977c73585aae268.tar.gz gcc-9c103251ff776a83768ad8790977c73585aae268.tar.bz2 |
* pa.c (incscc_operator): New function.
From-SVN: r3080
-rw-r--r-- | gcc/config/pa/pa.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index d7fedc8..a1df7c7 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -2644,6 +2644,20 @@ fmpysuboperands(operands) return 1; } + +/* Return 1 iff OP is a valid operator to use in an incscc + instruction. Adding or subtracting the condition code + to/from another operand is valid on the PA, so return 1 + for PLUS or MINUS. */ +int +incscc_operator (op, mode) + rtx op; + enum machine_mode mode; +{ + return (GET_CODE (op) == PLUS || GET_CODE (op) == MINUS); +} + + /* Return 1 if OP is suitable for the second add operand (the unshifed operand) in an shadd instruction. Allow CONST_INT to work around a reload bug. */ |