https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118062
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-12-17 Status|UNCONFIRMED |ASSIGNED Assignee|clyon at gcc dot gnu.org |rguenth at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Huh, int delta = tree_to_uhwi (part_width) / vector_element_bits (type); ... for (i = 0; i < nunits; i += delta, index = int_const_binop (PLUS_EXPR, index, part_width)) { This looks like designed to support lowering to vectors of smaller size, but delta should have used vector_element_bits (inner_type), not the number of bits in the bool result vector type. Testing a patch.