public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/60418] New: [4.9 Regression] 435.gromacs in SPEC CPU 2006 is miscompiled
@ 2014-03-04 22:37 hjl.tools at gmail dot com
  2014-03-04 23:31 ` [Bug middle-end/60418] " hjl.tools at gmail dot com
                   ` (31 more replies)
  0 siblings, 32 replies; 33+ messages in thread
From: hjl.tools at gmail dot com @ 2014-03-04 22:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60418
           Summary: [4.9 Regression] 435.gromacs in SPEC CPU 2006 is
                    miscompiled
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com

Since r208165, 435.gromacs in SPEC CPU 2006 is miscompiled on x32 with

-mx32 -O3 -funroll-loops -ffast-math -fwhole-program -flto=jobserver
-fuse-linker-plugin

The failure is

  Running 435.gromacs ref peak lto default

*** Miscompare of gromacs.out; for details see
   
/export/project/git/gcc-regression/spec/2006/spec/benchspec/CPU2006/435.grom
acs/run/run_peak_ref_lto.0000/gromacs.out.mis

cat
/export/project/git/gcc-regression/spec/2006/spec/benchspec/CPU2006/435.gromacs/run/run_peak_ref_lto.0000/gromacs.out.mis
0002:  3.07684e+02
       3.03594e+02

The result of 3.03594e+02 is outside of tolerance for 3.07684e+02.
I added a static counter in tree_forwarder_block_p for the number of
times returned true above and return false if it is between getenv("from")
and getenv("to").  I noticed that as more basic blocks get removed,
the deviation is getting bigger. One removed basic block has

;; basic block 3, loop depth 0, count 0, freq 225, maybe hot 
;;  prev block 2, next block 4, flags: (NEW, REACHABLE)
;;  pred:       2
;; 
;;  succ:       4

and its successor has

;; basic block 4, loop depth 1, count 0, freq 2500, maybe hot 
;;  prev block 3, next block 5, flags: (NEW)
;;  pred:       3
;;              6
;; starting at line 722 
# gimple_phi <i_429, 0(3), [bondfree.c : 726:24] i_27(6)>

Is is safe to remove basic block 3?


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

end of thread, other threads:[~2014-03-13  9:40 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-04 22:37 [Bug middle-end/60418] New: [4.9 Regression] 435.gromacs in SPEC CPU 2006 is miscompiled hjl.tools at gmail dot com
2014-03-04 23:31 ` [Bug middle-end/60418] " hjl.tools at gmail dot com
2014-03-05  9:32 ` rguenth at gcc dot gnu.org
2014-03-05  9:33 ` rguenth at gcc dot gnu.org
2014-03-05  9:36 ` rguenth at gcc dot gnu.org
2014-03-05 19:10 ` hjl.tools at gmail dot com
2014-03-05 19:18 ` hjl.tools at gmail dot com
2014-03-05 20:08 ` hjl.tools at gmail dot com
2014-03-05 20:45 ` hjl.tools at gmail dot com
2014-03-06 18:45 ` hjl.tools at gmail dot com
2014-03-06 21:56 ` hjl.tools at gmail dot com
2014-03-06 23:29 ` hjl.tools at gmail dot com
2014-03-07  9:15 ` rguenth at gcc dot gnu.org
2014-03-07  9:18 ` rguenth at gcc dot gnu.org
2014-03-07 21:57 ` hjl.tools at gmail dot com
2014-03-07 22:12 ` jakub at gcc dot gnu.org
2014-03-07 23:12 ` hjl.tools at gmail dot com
2014-03-08  9:49 ` rguenther at suse dot de
2014-03-10 10:28 ` jakub at gcc dot gnu.org
2014-03-10 13:27 ` rguenther at suse dot de
2014-03-10 15:46 ` hjl.tools at gmail dot com
2014-03-10 16:36 ` jakub at gcc dot gnu.org
2014-03-10 17:01 ` hjl.tools at gmail dot com
2014-03-11  8:49 ` rguenther at suse dot de
2014-03-11 15:06 ` hjl.tools at gmail dot com
2014-03-11 17:47 ` jakub at gcc dot gnu.org
2014-03-11 21:03 ` hjl.tools at gmail dot com
2014-03-12  8:54 ` jakub at gcc dot gnu.org
2014-03-12  8:54 ` rguenther at suse dot de
2014-03-12  9:13 ` jakub at gcc dot gnu.org
2014-03-12 15:29 ` hjl.tools at gmail dot com
2014-03-13  9:39 ` jakub at gcc dot gnu.org
2014-03-13  9:40 ` jakub 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).