public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/96854] New: avx vectorizer breaks complex arithmetic
@ 2020-08-30 20:47 already5chosen at yahoo dot com
  2020-08-31  6:50 ` [Bug target/96854] [10 Regression] " rguenth at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: already5chosen at yahoo dot com @ 2020-08-30 20:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96854
           Summary: avx vectorizer breaks complex arithmetic
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: already5chosen at yahoo dot com
  Target Milestone: ---

'-Ofast -mavx -march=ivybridge' miscompiles this simple loop:

double complex foo(double complex acc, const double complex *x, const double
complex* y, int N)
{
  for (int c = 0; c < N; ++c)
    acc -= x[c] * y[c];
  return acc;
}

The bug appears to be triggered by -fassociative-math, but it could be a
trigger rather than the reason.

You can find a reproducer here:
https://github.com/already5chosen/others/tree/master/cholesky_solver/gcc-bug
I only tried with MSYS2 variant of gcc 10.2.0

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

end of thread, other threads:[~2020-09-07  6:30 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-30 20:47 [Bug target/96854] New: avx vectorizer breaks complex arithmetic already5chosen at yahoo dot com
2020-08-31  6:50 ` [Bug target/96854] [10 Regression] " rguenth at gcc dot gnu.org
2020-08-31  9:36 ` jakub at gcc dot gnu.org
2020-08-31  9:52 ` rguenth at gcc dot gnu.org
2020-08-31  9:57 ` already5chosen at yahoo dot com
2020-08-31 11:20 ` rguenth at gcc dot gnu.org
2020-08-31 11:20 ` rguenth at gcc dot gnu.org
2020-08-31 11:35 ` rguenth at gcc dot gnu.org
2020-08-31 11:40 ` cvs-commit at gcc dot gnu.org
2020-08-31 11:43 ` cvs-commit at gcc dot gnu.org
2020-08-31 11:43 ` rguenth at gcc dot gnu.org
2020-09-06 10:56 ` already5chosen at yahoo dot com
2020-09-06 12:43 ` jakub at gcc dot gnu.org
2020-09-06 14:03 ` already5chosen at yahoo dot com
2020-09-06 14:08 ` jakub at gcc dot gnu.org
2020-09-06 15:17 ` already5chosen at yahoo dot com
2020-09-06 15:22 ` jakub at gcc dot gnu.org
2020-09-07  6:30 ` rguenther at suse dot de

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