]> gcc.gnu.org Git - gcc.git/commitdiff
(cint8_operand): New predicate.
authorTorbjorn Granlund <tege@gnu.org>
Wed, 29 Jun 1994 00:18:43 +0000 (00:18 +0000)
committerTorbjorn Granlund <tege@gnu.org>
Wed, 29 Jun 1994 00:18:43 +0000 (00:18 +0000)
From-SVN: r7591

gcc/config/alpha/alpha.c

index 02f17d33d6fbfc8c4a22a501dd005ec199726c10..56b31348521c1db60731f83c0e50db09fe97a707 100644 (file)
@@ -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
This page took 0.067276 seconds and 5 git commands to generate.