aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-12-02 00:36:31 +0000
committerJeff Law <law@gcc.gnu.org>1999-12-01 17:36:31 -0700
commite8758a3a01c83e84cecf517e2c89d38be83a61b0 (patch)
treebecd46ff0b0a104d464d7ad14c7e1fad549bcbc2 /gcc
parent705ac34f068eddf9493bc0ce8c34392667db1fdb (diff)
downloadgcc-e8758a3a01c83e84cecf517e2c89d38be83a61b0.zip
gcc-e8758a3a01c83e84cecf517e2c89d38be83a61b0.tar.gz
gcc-e8758a3a01c83e84cecf517e2c89d38be83a61b0.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/combine.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 18c6917..deb8060 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
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);
}