(SELECT_CC_MODE): Add support for ASHIFT.
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 6 Oct 1993 04:07:24 +0000 (21:07 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 6 Oct 1993 04:07:24 +0000 (21:07 -0700)
From-SVN: r5627

gcc/config/sparc/sparc.h

index 4686ae2210013ac998eace8a9271fc9f306592c3..853f8120b063ea0f278a6d7d536d345eb86148c2 100644 (file)
@@ -1419,12 +1419,13 @@ extern struct rtx_def *legitimize_pic_address ();
 /* Given a comparison code (EQ, NE, etc.) and the first operand of a COMPARE,
    return the mode to be used for the comparison.  For floating-point,
    CCFP[E]mode is used.  CC_NOOVmode should be used when the first operand is a
-   PLUS, MINUS, or NEG.  CCmode should be used when no special processing is
-   needed.  */
+   PLUS, MINUS, NEG, or ASHIFT.  CCmode should be used when no special
+   processing is needed.  */
 #define SELECT_CC_MODE(OP,X,Y) \
   (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT                         \
-   ? ((OP == EQ || OP == NE) ? CCFPmode : CCFPEmode)           \
-   : ((GET_CODE (X) == PLUS || GET_CODE (X) == MINUS || GET_CODE (X) == NEG) \
+   ? ((OP == EQ || OP == NE) ? CCFPmode : CCFPEmode)                   \
+   : ((GET_CODE (X) == PLUS || GET_CODE (X) == MINUS                   \
+       || GET_CODE (X) == NEG || GET_CODE (X) == ASHIFT)               \
       ? CC_NOOVmode : CCmode))
 
 /* A function address in a call instruction