https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84407
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 51676 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51676&action=edit patch Testing for exact real-to-int / int-to-real conversions is a bit awkward but maybe I am missing interesting details in real.c that could be exercised here. Also a question is the behavior on overflow when converting a real to an integer (IIRC the behavior here is undefined, but we constant fold to the largest/smallest integer here). For integer to float conversions is the overflow considered before or after applying the rounding? That is, are there integer values that invoke undefined behavior when converted to a real dependent on the rounding mode?