https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100088
--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> --- (In reply to Hongtao.liu from comment #3) > (In reply to Hongtao.liu from comment #2) > > > > > > This issue does not exist for sse or avx512f. Setting `-march=haswell` or > > > `-mtune=haswell` on the command line also seems to fix this but neither of > > > these works when added to the target attribute. > > > > It seems a problem that target attribute arch=haswell didn't work > typo tune=haswell > > > > https://godbolt.org/z/5hhqTYv9G Seems also fixed in GCC11.