https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91275
--- Comment #10 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- I don't *believe* that "#pragma target" works with -mno-optimize-swaps, but you could try it. I think that mechanism only works for certain flags, but I haven't tried that one. I think inline asm should kill swap optimization for just the computation involving the vpmsumd. (If it doesn't, that's another bug. ;-)