From e8758a3a01c83e84cecf517e2c89d38be83a61b0 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Thu, 2 Dec 1999 00:36:31 +0000 Subject: combine.c (if_then_else_cond): Use const_true_rtx instead of const1_rtx for return values in EQ/NE comparison... * 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/combine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/combine.c') diff --git a/gcc/combine.c b/gcc/combine.c index e7e0a69..bc24ce9 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -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); } -- cgit v1.1