public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/99037] New: Invalid representation of vector zero in aarch64-simd.md
@ 2021-02-09 17:55 rsandifo at gcc dot gnu.org
  2021-02-09 17:55 ` [Bug target/99037] " rsandifo at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2021-02-09 17:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99037
           Summary: Invalid representation of vector zero in
                    aarch64-simd.md
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rsandifo at gcc dot gnu.org
                CC: andre.simoesdiasvieira at arm dot com
  Target Milestone: ---
            Target: aarch64*-*-*

As Andre noticed, the following patterns have an invalid
representation of constant zero:

- move_lo_quad_internal_<mode>
- move_lo_quad_internal_be_<mode>

The vector forms use (vec_duplicate …) of a constant instead
of a const_vector, and both forms use (const_int 0) even for
FP modes.

In r5-3343 the patterns were split into two, one with a
vec_duplicate and one with a const_int.  But I think that
was the wrong (partial) fix: we should have a single pattern
for each, but use aarch64_simd_or_scalar_imm_zero to match
the right form.

I guess this will have to wait for GCC 12 at this point.

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

end of thread, other threads:[~2022-05-06  8:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09 17:55 [Bug target/99037] New: Invalid representation of vector zero in aarch64-simd.md rsandifo at gcc dot gnu.org
2021-02-09 17:55 ` [Bug target/99037] " rsandifo at gcc dot gnu.org
2021-02-10  9:16 ` ktkachov at gcc dot gnu.org
2021-03-29 10:21 ` ktkachov at gcc dot gnu.org
2021-03-29 10:28 ` jakub at gcc dot gnu.org
2021-03-29 10:29 ` jakub at gcc dot gnu.org
2021-03-29 10:55 ` cvs-commit at gcc dot gnu.org
2021-03-31  9:39 ` cvs-commit at gcc dot gnu.org
2021-05-07 10:36 ` cvs-commit at gcc dot gnu.org
2021-05-07 10:38 ` cvs-commit at gcc dot gnu.org
2022-05-06  8:30 ` jakub at gcc dot gnu.org
2022-05-06  8:34 ` ktkachov 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).