* pa.c (incscc_operator): New function.
authorJeff Law <law@gcc.gnu.org>
Mon, 4 Jan 1993 02:22:04 +0000 (19:22 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 4 Jan 1993 02:22:04 +0000 (19:22 -0700)
From-SVN: r3080

gcc/config/pa/pa.c

index d7fedc8e3dcf42e33c61fa1750267ccb3c1dc278..a1df7c7feb2aaa66cb4223efe15bd999afcf6bd8 100644 (file)
@@ -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.  */