https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115259
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #8) > Created attachment 61054 [details] > Maybe a testcase > > I tried this on x86_64 with: > -O2 -fdisable-tree-cselim -march=skylake-avx512 -fno-vect-cost-model > > And it seems to work there. I mean by works it does not cause the failure and we get the correct results and the path which uses MASK_STORE is used. Note -fdisable-tree-cselim is needed on x86_64 because otherwise the undoing of the sink happens.