https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59666
--- Comment #2 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> --- (In reply to Joseph S. Myers from comment #0) > I think the right approach for a fix will probably involve setting > round-to-nearest temporarily within the functions, then adjusting > overflowing and underflowing results based on the original rounding mode. This would not be sufficient. Even without overflow/underflow, the rounding direction needs to be honored for the basic arithmetic operations.