https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113604
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Zdenek Sojka from comment #5) > (In reply to Jakub Jelinek from comment #4) > > Created attachment 57221 [details] > > gcc14-pr113604.patch > > > > Untested fix. I've tried to explain what's going on in the large comment. > > I can confirm this fixes the testcase and other 3 testcases I have locally. If you could upload those 3 (even when not reduced), I'd appreciate it, so that we get better divmod coverage; I could turn it just into a single test checking all 3 or how many divisions (or modulo operations).