[Bug target/17614] long double / -mfp-rounding-mode=d -mieee-with-inexact

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 22 18:06:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-22 18:06 -------
Well it should as you used -mfp-rounding-mode=d

Dynamic rounding mode. A field in the floating point control register (fpcr, see Alpha architecture 
reference manual) controls the rounding mode in effect. The C library initializes this register for 
rounding towards plus infinity. Thus, unless your program modifies the fpcr, d corresponds to round 
towards plus infinity.

Since you are rounding towards postive infinity you will never reach zero.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
            Summary|long double / -mfp-rounding-|long double / -mfp-rounding-
                   |mode=d-mieee-with-inexact   |mode=d -mieee-with-inexact


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17614



More information about the Gcc-bugs mailing list