diff options
author | Torbjorn Granlund <tege@gnu.org> | 1994-06-29 00:18:43 +0000 |
---|---|---|
committer | Torbjorn Granlund <tege@gnu.org> | 1994-06-29 00:18:43 +0000 |
commit | 14edc0e4d37e59b80c686a856f45296448dd3667 (patch) | |
tree | 3b4444509b4d390bb21f4036c13760e9253d8760 /gcc/config | |
parent | 8abf4d694f7b7f363ef384a5dbd86806c3d39a7d (diff) | |
download | gcc-14edc0e4d37e59b80c686a856f45296448dd3667.zip gcc-14edc0e4d37e59b80c686a856f45296448dd3667.tar.gz gcc-14edc0e4d37e59b80c686a856f45296448dd3667.tar.bz2 |
(cint8_operand): New predicate.
From-SVN: r7591
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/alpha.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 02f17d3..56b3134 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -112,6 +112,17 @@ reg_or_8bit_operand (op, mode) || register_operand (op, mode)); } +/* Return 1 if OP is an 8-bit constant. */ + +int +cint8_operand (op, mode) + register rtx op; + enum machine_mode mode; +{ + return (GET_CODE (op) == CONST_INT + && (unsigned HOST_WIDE_INT) INTVAL (op) < 0x100); +} + /* Return 1 if the operand is a valid second operand to an add insn. */ int |