public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98917] New: SVE: wrong code with -O -ftree-vectorize -msve-vector-bits=128 --param=aarch64-autovec-preference=2
@ 2021-02-01 13:09 acoplan at gcc dot gnu.org
  2021-02-01 14:01 ` [Bug target/98917] " ktkachov at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-02-01 13:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98917
           Summary: SVE: wrong code with -O -ftree-vectorize
                    -msve-vector-bits=128
                    --param=aarch64-autovec-preference=2
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

Created attachment 50109
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50109&action=edit
reduced testcase

The attached C++ testcase appears to be miscompiled with -O -ftree-vectorize
-march=armv8.2-a+sve -msve-vector-bits=128
--param=aarch64-autovec-preference=2.

The testcase comes from YARPGen and is hard to reduce. It runs fine
with/without sanitizers at various optimisation levels under GCC/clang for both
x86 and aarch64 but segfaults with the above options on trunk.

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

* [Bug target/98917] SVE: wrong code with -O -ftree-vectorize -msve-vector-bits=128 --param=aarch64-autovec-preference=2
  2021-02-01 13:09 [Bug target/98917] New: SVE: wrong code with -O -ftree-vectorize -msve-vector-bits=128 --param=aarch64-autovec-preference=2 acoplan at gcc dot gnu.org
@ 2021-02-01 14:01 ` ktkachov at gcc dot gnu.org
  2021-02-01 14:21 ` acoplan at gcc dot gnu.org
  2021-03-30 16:05 ` rsandifo at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2021-02-01 14:01 UTC (permalink / raw)
  To: gcc-bugs

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

ktkachov at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktkachov at gcc dot gnu.org

--- Comment #1 from ktkachov at gcc dot gnu.org ---
Is this a 11 regression?

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

* [Bug target/98917] SVE: wrong code with -O -ftree-vectorize -msve-vector-bits=128 --param=aarch64-autovec-preference=2
  2021-02-01 13:09 [Bug target/98917] New: SVE: wrong code with -O -ftree-vectorize -msve-vector-bits=128 --param=aarch64-autovec-preference=2 acoplan at gcc dot gnu.org
  2021-02-01 14:01 ` [Bug target/98917] " ktkachov at gcc dot gnu.org
@ 2021-02-01 14:21 ` acoplan at gcc dot gnu.org
  2021-03-30 16:05 ` rsandifo at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-02-01 14:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Alex Coplan <acoplan at gcc dot gnu.org> ---
(In reply to ktkachov from comment #1)
> Is this a 11 regression?

It's hard to tell given the dependency on --param=aarch64-autovec-preference=2.

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

* [Bug target/98917] SVE: wrong code with -O -ftree-vectorize -msve-vector-bits=128 --param=aarch64-autovec-preference=2
  2021-02-01 13:09 [Bug target/98917] New: SVE: wrong code with -O -ftree-vectorize -msve-vector-bits=128 --param=aarch64-autovec-preference=2 acoplan at gcc dot gnu.org
  2021-02-01 14:01 ` [Bug target/98917] " ktkachov at gcc dot gnu.org
  2021-02-01 14:21 ` acoplan at gcc dot gnu.org
@ 2021-03-30 16:05 ` rsandifo at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2021-03-30 16:05 UTC (permalink / raw)
  To: gcc-bugs

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

rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |rsandifo at gcc dot gnu.org

--- Comment #3 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> ---
Same underlying problem as PR99102.

*** This bug has been marked as a duplicate of bug 99102 ***

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

end of thread, other threads:[~2021-03-30 16:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 13:09 [Bug target/98917] New: SVE: wrong code with -O -ftree-vectorize -msve-vector-bits=128 --param=aarch64-autovec-preference=2 acoplan at gcc dot gnu.org
2021-02-01 14:01 ` [Bug target/98917] " ktkachov at gcc dot gnu.org
2021-02-01 14:21 ` acoplan at gcc dot gnu.org
2021-03-30 16:05 ` rsandifo 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).