combine.c (if_then_else_cond): Use const_true_rtx instead of const1_rtx for return...
authorJeffrey A Law <law@cygnus.com>
Thu, 2 Dec 1999 00:36:31 +0000 (00:36 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 2 Dec 1999 00:36:31 +0000 (17:36 -0700)
* combine.c (if_then_else_cond): Use const_true_rtx instead of
const1_rtx for return values in EQ/NE comparison against (const_int 0)
case.

From-SVN: r30749

gcc/ChangeLog
gcc/combine.c

index 18c69171a1cde9bf79bcf9104d56c6fdef7d0f31..deb8060e40e964ba50ab253fd5a49f23a3a76e50 100644 (file)
@@ -1,5 +1,9 @@
 Wed Dec  1 16:51:22 1999  Jeffrey A Law  (law@cygnus.com)
 
+       * combine.c (if_then_else_cond): Use const_true_rtx instead of
+       const1_rtx for return values in EQ/NE comparison against (const_int 0)
+       case.
+
        * mn10300.c (REG_SAVE_BYTES): Allocate space for AM33 registers.
        (asm_file_start): Emit .am33 into assembly file when compiling for
        the AM33.
index e7e0a6933006a0b4c86d489a2074878c1ebcd030..bc24ce9ae5e3d8c7368c426556734381407d6b2f 100644 (file)
@@ -7037,8 +7037,8 @@ if_then_else_cond (x, ptrue, pfalse)
   if ((code == NE || code == EQ)
       && GET_CODE (XEXP (x, 1)) == CONST_INT && INTVAL (XEXP (x, 1)) == 0)
     {
-      *ptrue = (code == NE) ? const1_rtx : const0_rtx;
-      *pfalse = (code == NE) ? const0_rtx : const1_rtx;
+      *ptrue = (code == NE) ? const_true_rtx : const0_rtx;
+      *pfalse = (code == NE) ? const0_rtx : const_true_rtx;
       return XEXP (x, 0);
     }