Add second argument to SELECT_CC_MODE.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 18 Jun 1992 19:56:13 +0000 (15:56 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 18 Jun 1992 19:56:13 +0000 (15:56 -0400)
From-SVN: r1214

gcc/config/i960/i960.c
gcc/config/i960/i960.h
gcc/config/sparc/sparc.c
gcc/config/sparc/sparc.h

index 0e2546e51e94709d591caee0930dd85c81cc96e8..56bae9b2b96b89d55d0ab6171fed61c55c8912d8 100644 (file)
@@ -433,7 +433,7 @@ gen_compare_reg (code, x, y)
      rtx x, y;
 {
   rtx cc_reg;
-  enum machine_mode ccmode = SELECT_CC_MODE (code, x);
+  enum machine_mode ccmode = SELECT_CC_MODE (code, x, y);
   enum machine_mode mode
     = GET_MODE (x) == VOIDmode ? GET_MODE (y) : GET_MODE (x);
 
index 86b0250761a0dd839bbd46688fdc819a8157d64d..4384a095ecb9175f1e471da70442a391f047f9d8 100644 (file)
@@ -1105,7 +1105,7 @@ extern struct rtx_def *gen_compare_reg ();
    should be 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.  */
-#define SELECT_CC_MODE(OP,X) select_cc_mode (OP, X)
+#define SELECT_CC_MODE(OP,X,Y) select_cc_mode (OP, X,Y)
 
 /* A function address in a call instruction is a byte address
    (for indexing purposes) so give the MEM rtx a byte's mode.  */
index 78523de99ed1b4e96f6cad7bb6fc57e199d90853..cb7d52bdc70a8994a74f0f894c7c4d86b72d74a1 100644 (file)
@@ -456,7 +456,7 @@ gen_compare_reg (code, x, y)
      enum rtx_code code;
      rtx x, y;
 {
-  enum machine_mode mode = SELECT_CC_MODE (code, x);
+  enum machine_mode mode = SELECT_CC_MODE (code, x, y);
   rtx cc_reg = gen_rtx (REG, mode, 0);
 
   emit_insn (gen_rtx (SET, VOIDmode, cc_reg,
index c9da4b79b82610ca860f1f96c1dda91ae2a5ee25..e434959ac08c2ca26302cec57cd8bdbe5b9ad294 100644 (file)
@@ -1292,7 +1292,7 @@ extern struct rtx_def *legitimize_pic_address ();
    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.  */
-#define SELECT_CC_MODE(OP,X) \
+#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) \