https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78576
--- Comment #12 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Ah, I was incorrect about that. If I use -O0, the test produces 26 in my environment as well. At higher optimization the whole computation is folded.