https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80652
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> --- I didn't study the testcase (a bit long), but I am getting the same output with any version of gcc or clang I tried, at any level of optimization. Are you certain about your example? What is the expected output? And since you specifically mention -O3, what difference did it make for you?