https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110311
--- Comment #39 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to anlauf from comment #36) > Breakpoint 2, rng_stream.rng_stream_s::mmm_mod (x1=330289839997, > x2=4294967087) at rng_stream_sub.f90:336 > 336 res = mod (x1, x2) > (gdb) info float > R7: Valid 0x401be51fb57800000000 +480507567 > R6: Valid 0x401be51fb57800000000 +480507567 > R5: Zero 0x00000000000000000000 +0 > R4: Zero 0x00000000000000000000 +0 > R3: Zero 0x00000000000000000000 +0 > R2: Zero 0x00000000000000000000 +0 > R1: Zero 0x00000000000000000000 +0 > =>R0: Special 0xffff0000000004f5dc90 Unsupported Here is the problem. FPREM chokes on invalid input in R0. [1] Says that IA (invalid arithmetic) exception is generated for unsupported format, and this is what happened above: #IA Source operand is an SNaN value, modulus is 0, dividend is ∞, or unsupported format. [1] https://www.felixcloutier.com/x86/fprem