diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-07 21:28:01 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-07 21:28:01 +0000 |
commit | abfce8ed9f66b7de947b1b978f7fb9d5ea885150 (patch) | |
tree | bb630ebdf8d40067ec29827b4078b9705fae0a5f /gcc/fold-const.c | |
parent | 5d9306d920b716550e18f971131558ad226b51e3 (diff) | |
download | gcc-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.c | 4 |
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, |