aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppdefault.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-12-31 11:09:26 +0100
committerJakub Jelinek <jakub@redhat.com>2020-12-31 11:09:26 +0100
commitd2eb616a0f7bea78164912aa438c29fe1ef5774a (patch)
treee8a936a3ca8918db0ea67a25b389229d551e53b8 /gcc/cppdefault.c
parent8f12ce2ea3be12de4f83d3c419bdb1dc5036b202 (diff)
downloadgcc-d2eb616a0f7bea78164912aa438c29fe1ef5774a.zip
gcc-d2eb616a0f7bea78164912aa438c29fe1ef5774a.tar.gz
gcc-d2eb616a0f7bea78164912aa438c29fe1ef5774a.tar.bz2
match.pd: Add clz(X) == 0 -> (int)X < 0 etc. simpifications [PR94802]
The following patch adds some clz simplifications. If clz is 0, then the MSB of the argument is set, and if clz is prec-1, then the argument is 1. 2020-12-31 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/94802 * match.pd (clz(X) == 0 -> (int)X < 0): New simplification. (clz(X) == (prec-1) -> X == 1): Likewise. * gcc.dg/tree-ssa/pr94802-1.c: New test.
Diffstat (limited to 'gcc/cppdefault.c')
0 files changed, 0 insertions, 0 deletions