public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/36983]  New: Trunk 138207 miscompiles 172.mgrid on x86-64
@ 2008-07-31  8:57 Joey dot ye at intel dot com
  2008-07-31  9:21 ` [Bug middle-end/36983] " rguenth at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Joey dot ye at intel dot com @ 2008-07-31  8:57 UTC (permalink / raw)
  To: gcc-bugs

$ cat mgrid.f
      SUBROUTINE RESID(U,V,R,N,A)
      INTEGER N
      REAL*8 U(N,N,N),V(N,N,N),R(N,N,N),A(0:3)
      INTEGER I3, I2, I1
      DO 600 I3=2,N-1
      DO 600 I2=2,N-1
      DO 600 I1=2,N-1
 600  R(I1,I2,I3)=V(I1,I2,I3)
     >      -A(0)*( U(I1,  I2,  I3  ) )
     >      -A(1)*( U(I1-1,I2,  I3  ) + U(I1+1,I2,  I3  )
     >                 +  U(I1,  I2-1,I3  ) + U(I1,  I2+1,I3  )
     >                 +  U(I1,  I2,  I3-1) + U(I1,  I2,  I3+1) )
     >      -A(2)*( U(I1-1,I2-1,I3  ) + U(I1+1,I2-1,I3  )
     >                 +  U(I1-1,I2+1,I3  ) + U(I1+1,I2+1,I3  )
     >                 +  U(I1,  I2-1,I3-1) + U(I1,  I2+1,I3-1)
     >                 +  U(I1,  I2-1,I3+1) + U(I1,  I2+1,I3+1)
     >                 +  U(I1-1,I2,  I3-1) + U(I1-1,I2,  I3+1)
     >                 +  U(I1+1,I2,  I3-1) + U(I1+1,I2,  I3+1) )
     >      -A(3)*( U(I1-1,I2-1,I3-1) + U(I1+1,I2-1,I3-1)
     >                 +  U(I1-1,I2+1,I3-1) + U(I1+1,I2+1,I3-1)
     >                 +  U(I1-1,I2-1,I3+1) + U(I1+1,I2-1,I3+1)
     >                 +  U(I1-1,I2+1,I3+1) + U(I1+1,I2+1,I3+1) )
      RETURN
      END
$ gfortran -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../src/configure --prefix=/home/jye2/rrs/138207/usr
--enable-languages=c,c++,fortran --disable-bootstrap
Thread model: posix
gcc version 4.4.0 20080728 (experimental) [trunk revision 138207] (GCC) 
$ gfortran   -O3 -ffast-math     mgrid.f     -c
mgrid.f: In function 'resid':
mgrid.f:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ gfortran -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../src/configure --prefix=/home/jye2/rrs/138206/usr
--enable-languages=c,c++,fortran --disable-bootstrap
Thread model: posix
gcc version 4.4.0 20080728 (experimental) [trunk revision 138206] (GCC) 
$ gfortran   -O3 -ffast-math     mgrid.f     -c
$


-- 
           Summary: Trunk 138207 miscompiles 172.mgrid on x86-64
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Joey dot ye at intel dot com


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


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

* [Bug middle-end/36983] Trunk 138207 miscompiles 172.mgrid on x86-64
  2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
@ 2008-07-31  9:21 ` rguenth at gcc dot gnu dot org
  2008-07-31 10:52 ` Joey dot ye at intel dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-07-31  9:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-07-31 09:19 -------
Works for me.  Very likely a dup of PR36967.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|richard dot guenther at     |rguenth at gcc dot gnu dot
                   |gmail dot com               |org


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


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

* [Bug middle-end/36983] Trunk 138207 miscompiles 172.mgrid on x86-64
  2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
  2008-07-31  9:21 ` [Bug middle-end/36983] " rguenth at gcc dot gnu dot org
@ 2008-07-31 10:52 ` Joey dot ye at intel dot com
  2008-08-07  7:57 ` Joey dot ye at intel dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Joey dot ye at intel dot com @ 2008-07-31 10:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from Joey dot ye at intel dot com  2008-07-31 10:50 -------
Yes. Just notice that latest trunk passes.


-- 

Joey dot ye at intel dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug middle-end/36983] Trunk 138207 miscompiles 172.mgrid on x86-64
  2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
  2008-07-31  9:21 ` [Bug middle-end/36983] " rguenth at gcc dot gnu dot org
  2008-07-31 10:52 ` Joey dot ye at intel dot com
@ 2008-08-07  7:57 ` Joey dot ye at intel dot com
  2008-08-11  0:20 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Joey dot ye at intel dot com @ 2008-08-07  7:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from Joey dot ye at intel dot com  2008-08-07 07:55 -------
Although 138318 fixes the compiler ICE, it miscompile with -O3 -ffast-math on
x86-64:
  Running 172.mgrid ref base o3 default
*** Miscompare of mgrid.out, see
/home/jye2/cpu2000/benchspec/CFP2000/172.mgrid/run/00000003/mgrid.out.mis

No small case available yet


-- 

Joey dot ye at intel dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |


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


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

* [Bug middle-end/36983] Trunk 138207 miscompiles 172.mgrid on x86-64
  2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
                   ` (2 preceding siblings ...)
  2008-08-07  7:57 ` Joey dot ye at intel dot com
@ 2008-08-11  0:20 ` pinskia at gcc dot gnu dot org
  2008-08-11  3:30 ` hjl dot tools at gmail dot com
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-11  0:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2008-08-11 00:19 -------
If you remove -ffast-math, does it miscompare?


-- 


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


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

* [Bug middle-end/36983] Trunk 138207 miscompiles 172.mgrid on x86-64
  2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
                   ` (3 preceding siblings ...)
  2008-08-11  0:20 ` pinskia at gcc dot gnu dot org
@ 2008-08-11  3:30 ` hjl dot tools at gmail dot com
  2008-08-11  5:53 ` Joey dot ye at intel dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-08-11  3:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from hjl dot tools at gmail dot com  2008-08-11 03:29 -------
More info:

1. Revision 138207 introduced ICE.
2. Revision 138318 fixed ICE, but miscompiled mgrid.
3. Revision 138207 + change in revision 138318 also miscompiled mgrid.


-- 


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


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

* [Bug middle-end/36983] Trunk 138207 miscompiles 172.mgrid on x86-64
  2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
                   ` (4 preceding siblings ...)
  2008-08-11  3:30 ` hjl dot tools at gmail dot com
@ 2008-08-11  5:53 ` Joey dot ye at intel dot com
  2008-08-17 15:35 ` hjl dot tools at gmail dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Joey dot ye at intel dot com @ 2008-08-11  5:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from Joey dot ye at intel dot com  2008-08-11 05:52 -------
(In reply to comment #4)
> If you remove -ffast-math, does it miscompare?
Passes without -ffast-math.


-- 


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


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

* [Bug middle-end/36983] Trunk 138207 miscompiles 172.mgrid on x86-64
  2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
                   ` (5 preceding siblings ...)
  2008-08-11  5:53 ` Joey dot ye at intel dot com
@ 2008-08-17 15:35 ` hjl dot tools at gmail dot com
  2008-08-17 16:51 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-08-17 15:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from hjl dot tools at gmail dot com  2008-08-17 15:34 -------
Revision 139171 works for me at -O3 -ffast-math on Linux/Intel64.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


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


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

* [Bug middle-end/36983] [4.4 Regression] Trunk 138207 miscompiles 172.mgrid on x86-64
  2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
                   ` (7 preceding siblings ...)
  2008-08-17 16:51 ` rguenth at gcc dot gnu dot org
@ 2008-08-17 16:51 ` rguenth at gcc dot gnu dot org
  2008-08-17 17:17 ` hjl dot tools at gmail dot com
  2008-08-22 15:03 ` rguenth at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-17 16:51 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Trunk 138207 miscompiles    |[4.4 Regression] Trunk
                   |172.mgrid on x86-64         |138207 miscompiles 172.mgrid
                   |                            |on x86-64
   Target Milestone|---                         |4.4.0


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


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

* [Bug middle-end/36983] Trunk 138207 miscompiles 172.mgrid on x86-64
  2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
                   ` (6 preceding siblings ...)
  2008-08-17 15:35 ` hjl dot tools at gmail dot com
@ 2008-08-17 16:51 ` rguenth at gcc dot gnu dot org
  2008-08-17 16:51 ` [Bug middle-end/36983] [4.4 Regression] " rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-17 16:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rguenth at gcc dot gnu dot org  2008-08-17 16:49 -------
Still broken for me with -O3 -ffast-math -funroll-loops -fpeel-loops.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|WORKSFORME                  |


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


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

* [Bug middle-end/36983] [4.4 Regression] Trunk 138207 miscompiles 172.mgrid on x86-64
  2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
                   ` (8 preceding siblings ...)
  2008-08-17 16:51 ` [Bug middle-end/36983] [4.4 Regression] " rguenth at gcc dot gnu dot org
@ 2008-08-17 17:17 ` hjl dot tools at gmail dot com
  2008-08-22 15:03 ` rguenth at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-08-17 17:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from hjl dot tools at gmail dot com  2008-08-17 17:16 -------
(In reply to comment #8)
> Still broken for me with -O3 -ffast-math -funroll-loops -fpeel-loops.
> 

It is the same as PR 35418. My suggestion at

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35418#c8

works for me with -O3 -ffast-math -funroll-loops -fpeel-loops.


-- 


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


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

* [Bug middle-end/36983] [4.4 Regression] Trunk 138207 miscompiles 172.mgrid on x86-64
  2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
                   ` (9 preceding siblings ...)
  2008-08-17 17:17 ` hjl dot tools at gmail dot com
@ 2008-08-22 15:03 ` rguenth at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-08-22 15:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rguenth at gcc dot gnu dot org  2008-08-22 15:02 -------


*** This bug has been marked as a duplicate of 35418 ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2008-08-22 15:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-31  8:57 [Bug middle-end/36983] New: Trunk 138207 miscompiles 172.mgrid on x86-64 Joey dot ye at intel dot com
2008-07-31  9:21 ` [Bug middle-end/36983] " rguenth at gcc dot gnu dot org
2008-07-31 10:52 ` Joey dot ye at intel dot com
2008-08-07  7:57 ` Joey dot ye at intel dot com
2008-08-11  0:20 ` pinskia at gcc dot gnu dot org
2008-08-11  3:30 ` hjl dot tools at gmail dot com
2008-08-11  5:53 ` Joey dot ye at intel dot com
2008-08-17 15:35 ` hjl dot tools at gmail dot com
2008-08-17 16:51 ` rguenth at gcc dot gnu dot org
2008-08-17 16:51 ` [Bug middle-end/36983] [4.4 Regression] " rguenth at gcc dot gnu dot org
2008-08-17 17:17 ` hjl dot tools at gmail dot com
2008-08-22 15:03 ` rguenth 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).