On Sat, 2026-01-24 at 01:17 +0100, David Guillen Fandos wrote: > MIPS32 (and going back to MIPS II and III) has some instructions that > roughly map to these patterns, with some caveats (i.e. NaN returns zero > and Inf. is mapped to INT_MAX). For this reason these patterns are only > emitted under some conditions (builtin-inexact/trapping-math).
The conditions are not related to those caveats. Those patterns are allowed to invoke undefined behavior for NaN and Inf, thus we don't need to care them. The conditions are actually because those instructions raises the inexact exception that -fno-fp-int-builtin-inexact does not allow (as how the flag is named). Thus the commit message needs to be reworded. -- Xi Ruoyao <[email protected]>
