https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118188
--- Comment #3 from Tamar Christina <tnfchris at gcc dot gnu.org> --- This is an existing bug that's due to the backend not having been expanded to support costing of emulated gathers and scatters. Basically Adv. Simd has no gather and scatters and the vectorizer emulated them by scalarization. It does ask the backend to cost it but we only cost it for SVE which ends up penalizing the SVE code. Generic cost models don't contain gather scatters uarch specific costing and so SVE normally ends up winning for such cases. I'll fix the costing when back next week.