[Bug middle-end/123069] [16 Regression] ICE: tree check: expected none of vector_type, have vector_type in build_int_cst, at tree.cc:1649 with vector multiply since r16-5095
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 10 17:07:49 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123069
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:9029f5436aa4badd17c63a5633346a620d265ef5
commit r16-6017-g9029f5436aa4badd17c63a5633346a620d265ef5
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Dec 10 18:07:02 2025 +0100
vect-generic: Fix expand_vector_mult [PR123069]
The r16-5095 PR122065 change added build_int_cst call on vector types.
That is never correct, it ICEs already on the TYPE_PRECISION used at the
start of wide_int_to_tree_1.
Fixed by using build_zero_cst instead.
2025-12-10 Jakub Jelinek <jakub@redhat.com>
Andrew Pinski <andrew.pinski@oss.qualcomm.com>
PR middle-end/123069
* tree-vect-generic.cc (expand_vector_mult): Use
build_zero_cst (vectype) instead of build_int_cst (vectype, 0).
* gcc.c-torture/compile/pr123069.c: New test.
More information about the Gcc-bugs
mailing list