https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104031
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #8) > That last testcase isn't very good for the testsuite, because 0 is pretty > common value on the stack, so even without the store the chances that it > will be already zero are high. Yes I didn't think of that while reducing it further. But that explains why it would pass at -O0 really :)