This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17614] long double / -mfp-rounding-mode=d -mieee-with-inexact
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2004 18:06:57 -0000
- Subject: [Bug target/17614] long double / -mfp-rounding-mode=d -mieee-with-inexact
- References: <20040922155933.17614.ppelissi@caramail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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