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.
--- /dev/null
+/* PR middle-end/123069 */
+
+__attribute__((__vector_size__ (2 * sizeof (long long)))) unsigned long long v;
+
+void
+foo (void)
+{
+ v *= 0xffffffff00000000ULL;
+}
}
tree accumulator, tmp_var;
if (alg.op[0] == alg_zero)
- accumulator = build_int_cst (vectype, 0);
+ accumulator = build_zero_cst (vectype);
else
accumulator = op0;