From e5686da761327b52e4dbad5b6d1fcb2debded878 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 18 Jul 2003 21:53:04 +0000 Subject: [PATCH] combine.c (simplify_comparison): Don't share rtx when converting (ne (and (not X) 1) 0) to (eq (and X 1) 0). * combine.c (simplify_comparison): Don't share rtx when converting (ne (and (not X) 1) 0) to (eq (and X 1) 0). From-SVN: r69571 --- gcc/ChangeLog | 5 +++++ gcc/combine.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 066668a84f3..8ce7152a5f8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-07-18 Kazu Hirata + + * combine.c (simplify_comparison): Don't share rtx when converting + (ne (and (not X) 1) 0) to (eq (and X 1) 0). + 2003-07-18 David Edelsohn * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define. diff --git a/gcc/combine.c b/gcc/combine.c index 883f504a50b..30dd97aff3d 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -11072,7 +11072,7 @@ simplify_comparison (enum rtx_code code, rtx *pop0, rtx *pop1) && GET_CODE (XEXP (op0, 0)) == NOT) { op0 = simplify_and_const_int - (op0, mode, XEXP (XEXP (op0, 0), 0), (HOST_WIDE_INT) 1); + (NULL_RTX, mode, XEXP (XEXP (op0, 0), 0), (HOST_WIDE_INT) 1); code = (code == NE ? EQ : NE); continue; }