https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110311
--- Comment #34 from anlauf at gcc dot gnu.org --- A few more data points: reverting r13-6361-g8020c9c42349f51f75239b on 13-branch fixes the issue: no fprem generated, no FPE. Adding -ffinite-math-only to the modified 13-branch restores the FPE. Compiling the affected module (only) with 12-branch and linking everything with 14-mainline shows the same: fprem is used only with -ffinite-math-only, and I get an FPE even with 12-branch in that case. Same with 11-branch. I am still not sure why it cannot be reproduced with a smaller example, thus I hope that Jürgen can provide a significantly smaller reproducer.