This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/53319] exact subtract of two decimal floating-point values raises FE_INEXACT
- From: "tydeman at tybor dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 12 May 2012 15:37:54 +0000
- Subject: [Bug other/53319] exact subtract of two decimal floating-point values raises FE_INEXACT
- Auto-submitted: auto-generated
- References: <bug-53319-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53319
--- Comment #5 from Fred J. Tydeman <tydeman at tybor dot com> 2012-05-12 15:37:54 UTC ---
Another failure:
_Decimal32 val, lo;
val = 0.e-40DF;
lo = 9.e-1DF;
val += lo; /* raises FE_INEXACT */
This is with gcc 4.5.1 on Linux Fedora Core 14 on Intel Core 2 in 32-bit mode.
Command line options:
-std=gnu99 -O0 -pedantic -H -fno-builtin -frounding-math -mieee-fp
-ffloat-store -fexcess-precision=standard