public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/39831]  New: gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE
@ 2009-04-21  1:39 pinskia at gcc dot gnu dot org
  2009-04-21 10:21 ` [Bug testsuite/39831] " joseph at codesourcery dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-21  1:39 UTC (permalink / raw)
  To: gcc-bugs

i386-darwin defaults to having -mfpmath=sse,387 by default so
gcc.target/i386/excess-precision-{1,2,3}.c fail because those testcases depend
on excessive precision to happen.


-- 
           Summary: gcc.target/i386/excess-precision-*.c assume the default
                    -mfp-math does not include SSE
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug testsuite/39831] gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE
  2009-04-21  1:39 [Bug testsuite/39831] New: gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE pinskia at gcc dot gnu dot org
@ 2009-04-21 10:21 ` joseph at codesourcery dot com
  2009-04-21 22:28 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: joseph at codesourcery dot com @ 2009-04-21 10:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from joseph at codesourcery dot com  2009-04-21 10:20 -------
Subject: Re:   New: gcc.target/i386/excess-precision-*.c
 assume the default -mfp-math does not include SSE

Probably all six excess precision tests should have explicit -mfpmath=387.


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug testsuite/39831] gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE
  2009-04-21  1:39 [Bug testsuite/39831] New: gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE pinskia at gcc dot gnu dot org
  2009-04-21 10:21 ` [Bug testsuite/39831] " joseph at codesourcery dot com
@ 2009-04-21 22:28 ` pinskia at gcc dot gnu dot org
  2009-06-06 23:27 ` fxcoudert at gcc dot gnu dot org
  2009-06-11 20:06 ` fxcoudert at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-21 22:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-04-21 22:28 -------
(In reply to comment #1)
> Probably all six excess precision tests should have explicit -mfpmath=387.

Yes and I will test this on Darwin and GNU/Linux.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-04-21 22:28:01
               date|                            |


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug testsuite/39831] gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE
  2009-04-21  1:39 [Bug testsuite/39831] New: gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE pinskia at gcc dot gnu dot org
  2009-04-21 10:21 ` [Bug testsuite/39831] " joseph at codesourcery dot com
  2009-04-21 22:28 ` pinskia at gcc dot gnu dot org
@ 2009-06-06 23:27 ` fxcoudert at gcc dot gnu dot org
  2009-06-11 20:06 ` fxcoudert at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-06-06 23:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from fxcoudert at gcc dot gnu dot org  2009-06-06 23:27 -------
I can confirm that at least the three tests that are run (1 to 3) PASS on
darwin with the following patch:

Index: gcc/testsuite/gcc.target/i386/excess-precision-1.c
===================================================================
--- gcc/testsuite/gcc.target/i386/excess-precision-1.c  (revision 148236)
+++ gcc/testsuite/gcc.target/i386/excess-precision-1.c  (working copy)
@@ -2,7 +2,7 @@
    through various operations.  */
 /* { dg-do run } */
 /* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -fexcess-precision=standard" } */
+/* { dg-options "-O2 -mfpmath=387 -fexcess-precision=standard" } */

 #include <float.h>

Index: gcc/testsuite/gcc.target/i386/excess-precision-3.c
===================================================================
--- gcc/testsuite/gcc.target/i386/excess-precision-3.c  (revision 148236)
+++ gcc/testsuite/gcc.target/i386/excess-precision-3.c  (working copy)
@@ -2,7 +2,7 @@
    necessary.  */
 /* { dg-do run } */
 /* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -fexcess-precision=standard" } */
+/* { dg-options "-O2 -mfpmath=387 -fexcess-precision=standard" } */

 #include <float.h>
 #include <stdarg.h>
Index: gcc/testsuite/gcc.target/i386/excess-precision-2.c
===================================================================
--- gcc/testsuite/gcc.target/i386/excess-precision-2.c  (revision 148236)
+++ gcc/testsuite/gcc.target/i386/excess-precision-2.c  (working copy)
@@ -1,7 +1,7 @@
 /* Excess precision tests.  Test excess precision of constants.  */
 /* { dg-do run } */
 /* { dg-require-effective-target ilp32 } */
-/* { dg-options "-O2 -fexcess-precision=standard" } */
+/* { dg-options "-O2 -mfpmath=387 -fexcess-precision=standard" } */

 #include <float.h>



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu dot
                   |                            |org


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug testsuite/39831] gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE
  2009-04-21  1:39 [Bug testsuite/39831] New: gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-06-06 23:27 ` fxcoudert at gcc dot gnu dot org
@ 2009-06-11 20:06 ` fxcoudert at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-06-11 20:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from fxcoudert at gcc dot gnu dot org  2009-06-11 20:06 -------
Subject: Bug 39831

Author: fxcoudert
Date: Thu Jun 11 20:06:32 2009
New Revision: 148395

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148395
Log:
        PR testsuite/39831
        * gcc.target/i386/excess-precision-1.c: Use -mfpmath=387, and
        remove ilp32 requirement.
        * gcc.target/i386/excess-precision-2.c: Likewise.
        * gcc.target/i386/excess-precision-3.c: Likewise.
        * gcc.target/i386/excess-precision-4.c: Likewise.
        * gcc.target/i386/excess-precision-5.c: Likewise.
        * gcc.target/i386/excess-precision-6.c: Likewise.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.target/i386/excess-precision-1.c
    trunk/gcc/testsuite/gcc.target/i386/excess-precision-2.c
    trunk/gcc/testsuite/gcc.target/i386/excess-precision-3.c
    trunk/gcc/testsuite/gcc.target/i386/excess-precision-4.c
    trunk/gcc/testsuite/gcc.target/i386/excess-precision-5.c
    trunk/gcc/testsuite/gcc.target/i386/excess-precision-6.c


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug testsuite/39831] gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE
       [not found] <bug-39831-4@http.gcc.gnu.org/bugzilla/>
@ 2011-11-17 22:53 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-11-17 22:53 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-11-17 22:00:42 UTC ---
This was fixed a long time ago so closing.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-17 22:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-21  1:39 [Bug testsuite/39831] New: gcc.target/i386/excess-precision-*.c assume the default -mfp-math does not include SSE pinskia at gcc dot gnu dot org
2009-04-21 10:21 ` [Bug testsuite/39831] " joseph at codesourcery dot com
2009-04-21 22:28 ` pinskia at gcc dot gnu dot org
2009-06-06 23:27 ` fxcoudert at gcc dot gnu dot org
2009-06-11 20:06 ` fxcoudert at gcc dot gnu dot org
     [not found] <bug-39831-4@http.gcc.gnu.org/bugzilla/>
2011-11-17 22:53 ` pinskia at gcc dot gnu.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).