[Bug target/91970] arm: 64bit int to double conversion does not respect rounding mode

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Wed Oct 2 19:55:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91970

--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
The libgcc2.c functions for conversions that get used by default on most 
architectures should respect the rounding mode if the underlying 
single-word-to-floating-point instruction does so.  (They have more 
complicated logic to handle the __floatdisf case and other such cases 
where a single word is wider than the precision of the floating-point 
type.)

The libgcc2.c __fix* functions may raise spurious "inexact" exceptions, 
but that's a different matter.


More information about the Gcc-bugs mailing list