public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/109964] New: auto-vectorization of shift ignores integral promotions
@ 2023-05-25 10:49 mkretz at gcc dot gnu.org
  2023-05-25 11:15 ` [Bug target/109964] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mkretz at gcc dot gnu.org @ 2023-05-25 10:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109964
           Summary: auto-vectorization of shift ignores integral
                    promotions
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mkretz at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc64le-*-*

Test cases:
short: https://godbolt.org/z/oM56Pd19o
char: https://godbolt.org/z/f5Tc6TMEd

The POWER vector shifts read only 3/4 bits from the rhs vector. Thus, shifts
that are valid on int (i.e. >= 8 or >= 16) are translated incorrectly when
using the vector shift instructions. If the rhs values are not known to be
bounded a fix-up is necessary.

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

end of thread, other threads:[~2024-04-15 13:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-25 10:49 [Bug target/109964] New: auto-vectorization of shift ignores integral promotions mkretz at gcc dot gnu.org
2023-05-25 11:15 ` [Bug target/109964] " rguenth at gcc dot gnu.org
2023-05-25 11:17 ` rguenth at gcc dot gnu.org
2023-05-25 11:45 ` rguenth at gcc dot gnu.org
2023-05-25 13:01 ` rsandifo at gcc dot gnu.org
2023-07-28 12:05 ` rguenth at gcc dot gnu.org
2024-04-15 13:28 ` rguenth at gcc dot gnu.org
2024-04-15 13:40 ` mkretz at gcc dot gnu.org
2024-04-15 13:42 ` 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).