https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109797
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-*-* --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- No, it's indeed plain -O2 with the default architecture level, thus SSE2 only. For the case of "complex" expansions we might want to bite the bullet and fix the GIGO vectorizer cost modeling in the target. add_stmt_cost should use ix86_multiplication_cost here passing down V2SImode. There's cases for various integer multiplication emulations but your patch didn't amend this function for the new V2SImode emulation w/o SSE4.