[Bug tree-optimization/99225] [8/9 Regression] ICE in wide_int_to_tree_1, at tree.c:1644
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 22 16:51:23 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99225
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:cf570d10449a35fe4f5e45db087a527eefd0dcf3
commit r8-10891-gcf570d10449a35fe4f5e45db087a527eefd0dcf3
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Feb 24 12:10:25 2021 +0100
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.
(cherry picked from commit 4de402ab60c54fff48cb7371644b024d10d7e5bb)
More information about the Gcc-bugs
mailing list