diff options
Diffstat (limited to 'gcc/config/frv/frv.h')
-rw-r--r-- | gcc/config/frv/frv.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/gcc/config/frv/frv.h b/gcc/config/frv/frv.h index 55fd007..1622018 100644 --- a/gcc/config/frv/frv.h +++ b/gcc/config/frv/frv.h @@ -2384,12 +2384,7 @@ do { \ ? CC_NOOVmode : CCmode)) You need not define this macro if `EXTRA_CC_MODES' is not defined. */ -#define SELECT_CC_MODE(OP, X, Y) \ - (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT \ - ? CC_FPmode \ - : (((OP) == LEU || (OP) == GTU || (OP) == LTU || (OP) == GEU) \ - ? CC_UNSmode \ - : CCmode)) +#define SELECT_CC_MODE frv_select_cc_mode /* A C expression whose value is one if it is always safe to reverse a comparison whose mode is MODE. If `SELECT_CC_MODE' can ever return MODE for @@ -2405,7 +2400,8 @@ do { \ /* On frv, don't consider floating point comparisons to be reversible. In theory, fp equality comparisons can be reversible. */ -#define REVERSIBLE_CC_MODE(MODE) ((MODE) == CCmode || (MODE) == CC_UNSmode) +#define REVERSIBLE_CC_MODE(MODE) \ + ((MODE) == CCmode || (MODE) == CC_UNSmode || (MODE) == CC_NZmode) /* Frv CCR_MODE's are not reversible. */ #define REVERSE_CONDEXEC_PREDICATES_P(x,y) 0 @@ -3051,8 +3047,8 @@ do { \ { "uint16_operand", { CONST_INT }}, \ { "relational_operator", { EQ, NE, LE, LT, GE, GT, \ LEU, LTU, GEU, GTU }}, \ - { "signed_relational_operator", { EQ, NE, LE, LT, GE, GT }}, \ - { "unsigned_relational_operator", { LEU, LTU, GEU, GTU }}, \ + { "integer_relational_operator", { EQ, NE, LE, LT, GE, GT, \ + LEU, LTU, GEU, GTU }}, \ { "float_relational_operator", { EQ, NE, LE, LT, GE, GT }}, \ { "ccr_eqne_operator", { EQ, NE }}, \ { "minmax_operator", { SMIN, SMAX, UMIN, UMAX }}, \ @@ -3065,8 +3061,6 @@ do { \ { "condexec_sf_conv_operator", { ABS, NEG }}, \ { "intop_compare_operator", { PLUS, MINUS, AND, IOR, XOR, \ ASHIFT, ASHIFTRT, LSHIFTRT }}, \ - { "condexec_intop_cmp_operator", { PLUS, MINUS, AND, IOR, XOR, \ - ASHIFT, ASHIFTRT, LSHIFTRT }}, \ { "fpr_or_int6_operand", { REG, SUBREG, CONST_INT }}, \ { "int6_operand", { CONST_INT }}, \ { "int5_operand", { CONST_INT }}, \ |