summaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-07 21:28:01 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-07 21:28:01 +0000
commitabfce8ed9f66b7de947b1b978f7fb9d5ea885150 (patch)
treebb630ebdf8d40067ec29827b4078b9705fae0a5f /gcc/fold-const.c
parent5d9306d920b716550e18f971131558ad226b51e3 (diff)
downloadgcc-abfce8ed9f66b7de947b1b978f7fb9d5ea885150.tar.gz
2004-07-07 Andrew Pinski <apinski@apple.com>
PR tree-optimization/15777 * fold-const.c (fold_single_bit_test): Fold the x^1 expression. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84231 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index b68e4708798..ca042501590 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -5849,8 +5849,8 @@ fold_single_bit_test (enum tree_code code, tree arg0, tree arg1,
inner, size_int (bitnum));
if (code == EQ_EXPR)
- inner = build2 (BIT_XOR_EXPR, intermediate_type,
- inner, integer_one_node);
+ inner = fold (build2 (BIT_XOR_EXPR, intermediate_type,
+ inner, integer_one_node));
/* Put the AND last so it can combine with more things. */
inner = build2 (BIT_AND_EXPR, intermediate_type,