aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-10-05 21:07:24 -0700
committerJim Wilson <wilson@gcc.gnu.org>1993-10-05 21:07:24 -0700
commit922bd191bc3f3aedad6ba95ac8aa1b88b24c744a (patch)
treee2f0b413657564f1ea37e529203611059780092a /gcc/config
parent9b3fad96a672acd1d1b7a4b194065fa8fbb2a547 (diff)
downloadgcc-922bd191bc3f3aedad6ba95ac8aa1b88b24c744a.zip
gcc-922bd191bc3f3aedad6ba95ac8aa1b88b24c744a.tar.gz
gcc-922bd191bc3f3aedad6ba95ac8aa1b88b24c744a.tar.bz2
(SELECT_CC_MODE): Add support for ASHIFT.
From-SVN: r5627
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/sparc/sparc.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index 4686ae2..853f812 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -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