https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87901
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #5) > + case INTEGER_CST: > + if (integer_zerop (gimple_assign_rhs1 (stmt))) > + maybe_trim_constructor_store (ref, live, stmt, true); This has a small bug, we need to check to see the the type has mode precision. Otherwise: exact_div (ref->size, BITS_PER_UNIT); Will cause a ICE since size is not an exact multiply of BITS_PER_UNIT .