https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102498
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 51512 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51512&action=edit gcc12-pr102498.patch Untested fix. 4 of the 5 constants misbehave with -frounding-math in FE_TOWARDZERO and FE_DOWNWARD modes, one misbehaves in FE_UPWARD mode.