https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110311
--- Comment #48 from anlauf at gcc dot gnu.org --- (In reply to anlauf from comment #47) > However, when I use -O2 together with an -march= flag, the code works. > I've tested -march=sandybridge, -march=haswell, -march=skylake, > -march=native. > It FPEs without. And it FPEs with core2,nehalem,westmere! Next I tried: -march=sandybridge -mno-avx # FPE! -march=sandybridge # OK.