[Bug target/58757] Advertise the lack of denormal support on alpha without -mieee
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Sep 21 19:25:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58757
--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
As the author of the testcase kindly advises:
/* Test that the smallest positive value is not 0. This needs to be true
even when denormals are not supported, so we do not pass any flag
like -mieee. If it fails on alpha, see PR 58757. */
Well, the testcase does fail on alpha:
Program received signal SIGFPE, Arithmetic exception.
0x00000001200007ac in main () at
/space/homedirs/uros/gcc-svn/trunk/gcc/testsuite/gcc.dg/c11-true_min-1.c:14
14 if (f == 0 || d == 0 || l == 0)
(gdb) p f
$1 = 1.40129846e-45
(gdb) p d
$2 = 4.9406564584124654e-324
(gdb) p l
$3 = <error reading variable>
0x00000001200007a4 <+84>: fmov $f10,$f10
=> 0x00000001200007a8 <+88>: cmpteq $f11,$f10,$f10
0x00000001200007ac <+92>: fbne $f10,0x1200007ec <main+156>
f10 0 (raw 0x0000000000000000)
f11 2.6524947387065904e-315 (raw 0x0000000020000000)
More information about the Gcc-bugs
mailing list