public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/106054] New: Tree optimizations cause mcf generates incorrect results
@ 2022-06-22  9:03 dizhao at os dot amperecomputing.com
  2022-06-22 11:52 ` [Bug tree-optimization/106054] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dizhao at os dot amperecomputing.com @ 2022-06-22  9:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106054

            Bug ID: 106054
           Summary: Tree optimizations cause mcf generates incorrect
                    results
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dizhao at os dot amperecomputing.com
  Target Milestone: ---

Created attachment 53189
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53189&action=edit
test code in C

Some tree optimization caused verification error on the spec2017 505.mcf test
case.

Attached is a small example I extracted, to help debugging the problem.
When compiled with "-std=c99 -O2 -funroll-loops -fdisable-tree-slp1" the result
is different with "-std=c99 -O2 -funroll-loops", the latter result is
incorrect. (It is possible the problem is not slp itself. I haven't figured out
the root cause by now.)

Tested on trunk commit: 98b6e62cf5e7d477b5797084da59561f6d018668 . And the
error seems to exist at least since trunk commit
a1c9f779f75283427316b5c670c1e01ff8ce9ced.

Thanks.

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

end of thread, other threads:[~2022-06-23  3:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-22  9:03 [Bug tree-optimization/106054] New: Tree optimizations cause mcf generates incorrect results dizhao at os dot amperecomputing.com
2022-06-22 11:52 ` [Bug tree-optimization/106054] " pinskia at gcc dot gnu.org
2022-06-22 11:54 ` pinskia at gcc dot gnu.org
2022-06-22 19:48 ` pinskia at gcc dot gnu.org
2022-06-23  3:38 ` dizhao at os dot amperecomputing.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).