aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2023-06-06 08:21:46 -0700
committerAndrew Pinski <apinski@marvell.com>2023-06-06 19:43:16 -0700
commitc5c4fa2f9a448d529be746119ebca4fc5e5701b2 (patch)
tree7dbd69a2448ac50a1c2afa4a438c0c089375636b /gcc/expr.cc
parent42eb371286fa4f1f8419ff9e8059576e574c7a2c (diff)
downloadgcc-c5c4fa2f9a448d529be746119ebca4fc5e5701b2.zip
gcc-c5c4fa2f9a448d529be746119ebca4fc5e5701b2.tar.gz
gcc-c5c4fa2f9a448d529be746119ebca4fc5e5701b2.tar.bz2
Match: zero_one_valued_p should match 0 constants too
While working on `bool0 ? bool1 : bool2` I noticed that zero_one_valued_p does not match on the constant zero as in that case tree_nonzero_bits will return 0 and that is different from 1. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: * match.pd (zero_one_valued_p): Match 0 integer constant too.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions