diff options
author | Jeff Law <law@gcc.gnu.org> | 1993-01-15 19:11:15 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1993-01-15 19:11:15 -0700 |
commit | c2264220583c0f09fd42619b06ca08a442e3bc57 (patch) | |
tree | 2d164b28c09250cde6c325ace3d7caff632a155b /gcc | |
parent | 85bc031ea462f57640bea340e47fa495a429b686 (diff) | |
download | gcc-c2264220583c0f09fd42619b06ca08a442e3bc57.zip gcc-c2264220583c0f09fd42619b06ca08a442e3bc57.tar.gz gcc-c2264220583c0f09fd42619b06ca08a442e3bc57.tar.bz2 |
* pa.c (shadd_constant_p): New function.
From-SVN: r3257
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/pa/pa.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 4c36032..dc43bd5 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -2690,3 +2690,16 @@ plus_xor_ior_operator (op, mode) return (GET_CODE (op) == PLUS || GET_CODE (op) == XOR || GET_CODE (op) == IOR); } + +/* Return 1 if the given constant is 2, 4, or 8. These are the valid + constants for shadd instructions. */ +int +shadd_constant_p (val) + int val; +{ + if (val == 2 || val == 4 || val == 8) + return 1; + else + return 0; +} + |