aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-low.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-02-24 12:10:25 +0100
committerJakub Jelinek <jakub@redhat.com>2021-02-24 12:10:25 +0100
commit6e646abbe02f2c79cc3ba1f3de705ee62ff9dcd1 (patch)
tree51ff5a521c3955aa0a26f0666d119010f1e93563 /gcc/omp-low.c
parent5296bd57d0605d1fec900d85e3ab3875197e609a (diff)
downloadgcc-6e646abbe02f2c79cc3ba1f3de705ee62ff9dcd1.zip
gcc-6e646abbe02f2c79cc3ba1f3de705ee62ff9dcd1.tar.gz
gcc-6e646abbe02f2c79cc3ba1f3de705ee62ff9dcd1.tar.bz2
fold-const: Fix up ((1 << x) & y) != 0 folding for vectors [PR99225]
This optimization was written purely with scalar integers in mind, can work fine even with vectors, but we can't use build_int_cst but need to use build_one_cst instead. 2021-02-24 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/99225 * fold-const.c (fold_binary_loc) <case NE_EXPR>: In (x & (1 << y)) != 0 to ((x >> y) & 1) != 0 simplifications use build_one_cst instead of build_int_cst (..., 1). Formatting fixes. * gcc.c-torture/compile/pr99225.c: New test.
Diffstat (limited to 'gcc/omp-low.c')
0 files changed, 0 insertions, 0 deletions