public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103432] New: [12 regression] libjxl-0.5 is miscompiled, works fine with -fno-ipa-modref
@ 2021-11-25 23:59 slyfox at gcc dot gnu.org
  2021-11-26  0:19 ` [Bug ipa/103432] " pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: slyfox at gcc dot gnu.org @ 2021-11-25 23:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103432
           Summary: [12 regression] libjxl-0.5 is miscompiled, works fine
                    with -fno-ipa-modref
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: slyfox at gcc dot gnu.org
  Target Milestone: ---

Created attachment 51875
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51875&action=edit
dct_test.cc

Originally noticed a problem as failed tests on libjxl-0.5.

I extracted ~10KB self-contained single-file example. It still could be
reduced, but it's quite tangled. Could you see what is obviously wrong with it?

Attached the reproducer as dct_test.cc:

$ g++-12.0.0 -std=c++11 -O2 -fno-tree-vectorize                 dct_test.cc -o
dct_test
$ g++-12.0.0 -std=c++11 -O2 -fno-tree-vectorize -fno-ipa-modref dct_test.cc -o
dct_test1

# good:
$ ./dct_test1
OK: Good accuracy: exp=0.000001 act=0.000000
OK: Good accuracy: exp=0.000001 act=0.000000

# bad:
$ ./dct_test
OK: Good accuracy: exp=0.000001 act=0.000000
ERROR: Too low accuracy: exp=0.000001 act=1.000000

$ g++-12.0.0 -v
Using built-in specs.
COLLECT_GCC=/nix/store/2lxwqh3k88x4jwyfwlsfnwrp78yq2ah2-gcc-12.0.0/bin/g++
COLLECT_LTO_WRAPPER=/nix/store/2lxwqh3k88x4jwyfwlsfnwrp78yq2ah2-gcc-12.0.0/libexec/gcc/x86_64-unknown-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with:
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20211121 (experimental) (GCC)

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

end of thread, other threads:[~2022-04-07 12:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 23:59 [Bug tree-optimization/103432] New: [12 regression] libjxl-0.5 is miscompiled, works fine with -fno-ipa-modref slyfox at gcc dot gnu.org
2021-11-26  0:19 ` [Bug ipa/103432] " pinskia at gcc dot gnu.org
2021-11-26  0:31 ` [Bug tree-optimization/103432] " hubicka at gcc dot gnu.org
2021-11-26  0:33 ` [Bug ipa/103432] " pinskia at gcc dot gnu.org
2021-11-26  0:36 ` pinskia at gcc dot gnu.org
2021-11-26  7:24 ` rguenth at gcc dot gnu.org
2021-11-26  9:14 ` hubicka at kam dot mff.cuni.cz
2021-11-26 12:46 ` [Bug ipa/103432] [11 " hubicka at gcc dot gnu.org
2021-11-26 12:47 ` marxin at gcc dot gnu.org
2021-11-26 13:53 ` rguenth at gcc dot gnu.org
2021-11-26 22:45 ` slyfox at gcc dot gnu.org
2022-04-07 12:04 ` cvs-commit at gcc dot gnu.org
2022-04-07 12:05 ` rguenth 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).