public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/48367] New: [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled
@ 2011-03-30 14:55 hjl.tools at gmail dot com
  2011-03-30 15:01 ` [Bug middle-end/48367] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2011-03-30 14:55 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU
                    2000 are miscompiled
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


On Linux/ia32, revision 171716 gave

  Running 200.sixtrack ref peak lnx32-gcc default
*** Miscompare of inp.out, see
/export/gnu/import/svn/gcc-test-spec/spec/2000/i6
86/spec/benchspec/CFP2000/200.sixtrack/run/00000004/inp.out.mis
  Running 301.apsi ref peak lnx32-gcc default
*** Miscompare of APO11, see
/export/gnu/import/svn/gcc-test-spec/spec/2000/i686
/spec/benchspec/CFP2000/301.apsi/run/00000004/APO11.mis
*** Miscompare of APO6, see
/export/gnu/import/svn/gcc-test-spec/spec/2000/i686/
spec/benchspec/CFP2000/301.apsi/run/00000004/APO6.mis
*** Miscompare of APO8, see
/export/gnu/import/svn/gcc-test-spec/spec/2000/i686/
spec/benchspec/CFP2000/301.apsi/run/00000004/APO8.mis
*** Miscompare of APV, see
/export/gnu/import/svn/gcc-test-spec/spec/2000/i686/s
pec/benchspec/CFP2000/301.apsi/run/00000004/APV.mis

Revision 171623 is OK.


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

* [Bug middle-end/48367] [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled
  2011-03-30 14:55 [Bug middle-end/48367] New: [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled hjl.tools at gmail dot com
@ 2011-03-30 15:01 ` rguenth at gcc dot gnu.org
  2011-03-30 16:53 ` hjl.tools at gmail dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-30 15:01 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0


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

* [Bug middle-end/48367] [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled
  2011-03-30 14:55 [Bug middle-end/48367] New: [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled hjl.tools at gmail dot com
  2011-03-30 15:01 ` [Bug middle-end/48367] " rguenth at gcc dot gnu.org
@ 2011-03-30 16:53 ` hjl.tools at gmail dot com
  2011-03-30 17:00 ` hjl.tools at gmail dot com
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2011-03-30 16:53 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vmakarov at redhat dot com

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-03-30 16:19:40 UTC ---
It is caused by revision 171649:

http://gcc.gnu.org/ml/gcc-cvs/2011-03/msg01074.html


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

* [Bug middle-end/48367] [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled
  2011-03-30 14:55 [Bug middle-end/48367] New: [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled hjl.tools at gmail dot com
  2011-03-30 15:01 ` [Bug middle-end/48367] " rguenth at gcc dot gnu.org
  2011-03-30 16:53 ` hjl.tools at gmail dot com
@ 2011-03-30 17:00 ` hjl.tools at gmail dot com
  2011-03-30 17:02 ` hjl.tools at gmail dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2011-03-30 17:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-03-30 16:26:14 UTC ---
I used "-O3 -funroll-loops -msse2 -mfpmath=sse -ffast-math" to
compile it.


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

* [Bug middle-end/48367] [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled
  2011-03-30 14:55 [Bug middle-end/48367] New: [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled hjl.tools at gmail dot com
                   ` (2 preceding siblings ...)
  2011-03-30 17:00 ` hjl.tools at gmail dot com
@ 2011-03-30 17:02 ` hjl.tools at gmail dot com
  2011-03-31  0:02 ` vmakarov at redhat dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2011-03-30 17:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2011-03-30 16:53:11 UTC ---
It still fails at revision 171734.


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

* [Bug middle-end/48367] [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled
  2011-03-30 14:55 [Bug middle-end/48367] New: [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled hjl.tools at gmail dot com
                   ` (3 preceding siblings ...)
  2011-03-30 17:02 ` hjl.tools at gmail dot com
@ 2011-03-31  0:02 ` vmakarov at redhat dot com
  2011-03-31  3:18 ` vmakarov at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: vmakarov at redhat dot com @ 2011-03-31  0:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Vladimir Makarov <vmakarov at redhat dot com> 2011-03-30 23:17:58 UTC ---
I've started to work on this.  Probably it will take day or two to fix it is
hard to find a wrong code in a big program as apsi.


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

* [Bug middle-end/48367] [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled
  2011-03-30 14:55 [Bug middle-end/48367] New: [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled hjl.tools at gmail dot com
                   ` (4 preceding siblings ...)
  2011-03-31  0:02 ` vmakarov at redhat dot com
@ 2011-03-31  3:18 ` vmakarov at gcc dot gnu.org
  2011-03-31  3:27 ` vmakarov at redhat dot com
  2011-04-12 16:15 ` hjl.tools at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2011-03-31  3:18 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Vladimir Makarov <vmakarov at gcc dot gnu.org> 2011-03-31 01:04:47 UTC ---
Author: vmakarov
Date: Thu Mar 31 01:04:43 2011
New Revision: 171767

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171767
Log:
2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>

    PR middle-end/48367
    * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
    calculation.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ira-costs.c


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

* [Bug middle-end/48367] [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled
  2011-03-30 14:55 [Bug middle-end/48367] New: [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled hjl.tools at gmail dot com
                   ` (5 preceding siblings ...)
  2011-03-31  3:18 ` vmakarov at gcc dot gnu.org
@ 2011-03-31  3:27 ` vmakarov at redhat dot com
  2011-04-12 16:15 ` hjl.tools at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: vmakarov at redhat dot com @ 2011-03-31  3:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Vladimir Makarov <vmakarov at redhat dot com> 2011-03-31 01:05:33 UTC ---
  The problem was in a typo in ira-costs.c which in some cases results in
assigning INT_MAX to memory_cost and as consequence ALL_REGS to some allocnos. 
After some optimizations the allocno which got a hard reg and corresponds to
loop which contains subloops and never referenced in its loop is spilled in
function move_spill_restore and because it is never referenced in the loop, it
got zero costs for all hard regs.

In reload, the allocno is assigned to a mmx hard register through IRA which
corrupted by sse registers usage in other program places.

I'll sent a patch soon to fix this.


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

* [Bug middle-end/48367] [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled
  2011-03-30 14:55 [Bug middle-end/48367] New: [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled hjl.tools at gmail dot com
                   ` (6 preceding siblings ...)
  2011-03-31  3:27 ` vmakarov at redhat dot com
@ 2011-04-12 16:15 ` hjl.tools at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: hjl.tools at gmail dot com @ 2011-04-12 16:15 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

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

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> 2011-04-12 16:15:20 UTC ---
Fixed as of revision 172273:

http://gcc.gnu.org/ml/gcc-testresults/2011-04/msg00958.html


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

end of thread, other threads:[~2011-04-12 16:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-30 14:55 [Bug middle-end/48367] New: [4.7 Regression] 200.sixtrack/301.apsi in SPEC CPU 2000 are miscompiled hjl.tools at gmail dot com
2011-03-30 15:01 ` [Bug middle-end/48367] " rguenth at gcc dot gnu.org
2011-03-30 16:53 ` hjl.tools at gmail dot com
2011-03-30 17:00 ` hjl.tools at gmail dot com
2011-03-30 17:02 ` hjl.tools at gmail dot com
2011-03-31  0:02 ` vmakarov at redhat dot com
2011-03-31  3:18 ` vmakarov at gcc dot gnu.org
2011-03-31  3:27 ` vmakarov at redhat dot com
2011-04-12 16:15 ` hjl.tools at gmail dot com

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).