public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/37334] New: gcc.dg/fastmath-2.c doesn't work
@ 2008-09-02 16:01 hjl dot tools at gmail dot com
2008-09-02 20:50 ` [Bug middle-end/37334] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-09-02 16:01 UTC (permalink / raw)
To: gcc-bugs
On Linux/ia32, I got
Executing on host: /export/gnu/import/svn/gcc-test/bld/gcc/xgcc
-B/export/gnu/import/svn/gcc-test/bld/gcc/
/export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/gcc.dg/fastmath-2.c
-O2 -ffast-math -lm -m32 -o ./fastmath-2.exe (timeout = 300)
PASS: gcc.dg/fastmath-2.c (test for excess errors)
Setting LD_LIBRARY_PATH to
:/export/gnu/import/svn/gcc-test/bld/gcc:/export/gnu/import/svn/gcc-test/bld/gcc/32::/export/gnu/import/svn/gcc-test/bld/gcc:/export/gnu/import/svn/gcc-test/bld/gcc/32:/export/gnu/import/svn/gcc-test/bld/x86_64-unknown-linux-gnu/libstdc++-v3/.libs:/export/gnu/import/svn/gcc-test/bld/x86_64-unknown-linux-gnu/libmudflap/.libs:/export/gnu/import/svn/gcc-test/bld/x86_64-unknown-linux-gnu/libssp/.libs:/export/gnu/import/svn/gcc-test/bld/x86_64-unknown-linux-gnu/libgomp/.libs:/export/gnu/import/svn/gcc-test/bld/./gcc:/export/gnu/import/svn/gcc-test/bld/./prev-gcc
FAIL: gcc.dg/fastmath-2.c execution test
--
Summary: gcc.dg/fastmath-2.c doesn't work
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37334
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/37334] gcc.dg/fastmath-2.c doesn't work
2008-09-02 16:01 [Bug middle-end/37334] New: gcc.dg/fastmath-2.c doesn't work hjl dot tools at gmail dot com
@ 2008-09-02 20:50 ` pinskia at gcc dot gnu dot org
2008-09-03 10:22 ` victork at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-02 20:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-02 20:48 -------
This testcase really should not be applied as it really depends on the
precision of -ffast-math which we don't guarantee at all.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37334
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/37334] gcc.dg/fastmath-2.c doesn't work
2008-09-02 16:01 [Bug middle-end/37334] New: gcc.dg/fastmath-2.c doesn't work hjl dot tools at gmail dot com
2008-09-02 20:50 ` [Bug middle-end/37334] " pinskia at gcc dot gnu dot org
@ 2008-09-03 10:22 ` victork at gcc dot gnu dot org
2008-09-07 7:37 ` victork at gcc dot gnu dot org
2008-09-08 21:38 ` [Bug testsuite/37334] " pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: victork at gcc dot gnu dot org @ 2008-09-03 10:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from victork at gcc dot gnu dot org 2008-09-03 10:20 -------
Yes, looks like a problem in testcase. This patch should fix it:
Index: gcc/testsuite/gcc.dg/fastmath-2.c
===================================================================
--- gcc/testsuite/gcc.dg/fastmath-2.c (revision 139888)
+++ gcc/testsuite/gcc.dg/fastmath-2.c (working copy)
@@ -9,9 +9,10 @@ double b;
int
main()
{
+ double c = (1. / 2.002083e-146);
b = 1. / a;
- if (b != (1. / 2.002083e-146))
+ if (memcmp ((void *)&b, (void *)&c, sizeof (double)) != 0)
abort ();
return 0;
}
--
victork at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |victork at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-09-03 10:20:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37334
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/37334] gcc.dg/fastmath-2.c doesn't work
2008-09-02 16:01 [Bug middle-end/37334] New: gcc.dg/fastmath-2.c doesn't work hjl dot tools at gmail dot com
2008-09-02 20:50 ` [Bug middle-end/37334] " pinskia at gcc dot gnu dot org
2008-09-03 10:22 ` victork at gcc dot gnu dot org
@ 2008-09-07 7:37 ` victork at gcc dot gnu dot org
2008-09-08 21:38 ` [Bug testsuite/37334] " pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: victork at gcc dot gnu dot org @ 2008-09-07 7:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from victork at gcc dot gnu dot org 2008-09-07 07:35 -------
Subject: Bug 37334
Author: victork
Date: Sun Sep 7 07:34:30 2008
New Revision: 140082
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140082
Log:
2008-09-07 Victor Kaplansky <victork@il.ibm.com>
PR testsuite/37334
* gcc/testsuite/gcc.dg/fastmath-2.c: Add volatile to
definition of b, change -ffast-math to -ffinite-math-only
and rename test to ...
* gcc/testsuite/gcc.dg/div-double-1.c: ... this.
Added:
trunk/gcc/testsuite/gcc.dg/div-double-1.c
Removed:
trunk/gcc/testsuite/gcc.dg/fastmath-2.c
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37334
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug testsuite/37334] gcc.dg/fastmath-2.c doesn't work
2008-09-02 16:01 [Bug middle-end/37334] New: gcc.dg/fastmath-2.c doesn't work hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2008-09-07 7:37 ` victork at gcc dot gnu dot org
@ 2008-09-08 21:38 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-08 21:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2008-09-08 21:37 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Component|middle-end |testsuite
Resolution| |FIXED
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37334
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-08 21:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-02 16:01 [Bug middle-end/37334] New: gcc.dg/fastmath-2.c doesn't work hjl dot tools at gmail dot com
2008-09-02 20:50 ` [Bug middle-end/37334] " pinskia at gcc dot gnu dot org
2008-09-03 10:22 ` victork at gcc dot gnu dot org
2008-09-07 7:37 ` victork at gcc dot gnu dot org
2008-09-08 21:38 ` [Bug testsuite/37334] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).