public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/94587] New: Intrinsics optimization bug with -O2 -march=skylake-avx512
@ 2020-04-13 21:28 lopresti at gmail dot com
  2020-04-14  6:47 ` [Bug target/94587] " marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: lopresti at gmail dot com @ 2020-04-13 21:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94587
           Summary: Intrinsics optimization bug with -O2
                    -march=skylake-avx512
           Product: gcc
           Version: 9.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lopresti at gmail dot com
  Target Milestone: ---

Created attachment 48265
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48265&action=edit
Minimal test case for skylake-avx512 intrinsics optimization bug

This bug appears to be present across at least GCC 8 and GCC 9.

Compile the attached program using "g++ -O2 -march=skylake-avx512" and run it.

Expected result: No output, exit status 0.

Actual result: "WRONG -0.99999999999999789058", exit status 2.

To make the problem go away, do any of the following:

- Use "-march=corei7" ; or

- Remove the "__attribute__((noinline))" from the rot90() function ; or

- Add "-DHEISENBUG" to the command line

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

end of thread, other threads:[~2020-04-14 21:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-13 21:28 [Bug rtl-optimization/94587] New: Intrinsics optimization bug with -O2 -march=skylake-avx512 lopresti at gmail dot com
2020-04-14  6:47 ` [Bug target/94587] " marxin at gcc dot gnu.org
2020-04-14  9:27 ` jakub at gcc dot gnu.org
2020-04-14 15:25 ` lopresti at gmail dot com
2020-04-14 18:51 ` pinskia at gcc dot gnu.org
2020-04-14 19:35 ` lopresti at gmail dot com
2020-04-14 20:44 ` pinskia at gcc dot gnu.org
2020-04-14 20:47 ` jakub at gcc dot gnu.org
2020-04-14 21:33 ` lopresti 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).