public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/114607] New: aarch64: Incorrect expansion of svsudot
@ 2024-04-05 16:14 rsandifo at gcc dot gnu.org
  2024-04-05 16:15 ` [Bug target/114607] " rsandifo at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2024-04-05 16:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114607
           Summary: aarch64: Incorrect expansion of svsudot
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rsandifo at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64*-*-*

svsudot is supposed to expand to USDOT with the second and third arguments
swapped.  However, there is a thinko in the code that does the reversal, making
it a no-op.  Unfortunately, the tests simply accept the buggy form. :-(

For example, gcc.target/aarch64/sve/acle/asm/sudot_s32.c contains:

/*
** sudot_s32_tied1:
**      usdot   z0\.s, z2\.b, z4\.b
**      ret
*/
TEST_TRIPLE_Z (sudot_s32_tied1, svint32_t, svint8_t, svuint8_t,
               z0 = svsudot_s32 (z0, z2, z4),
               z0 = svsudot (z0, z2, z4))

where the usdot z2 and z4 operands should be in the opposite order.

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

end of thread, other threads:[~2024-08-16 14:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-05 16:14 [Bug target/114607] New: aarch64: Incorrect expansion of svsudot rsandifo at gcc dot gnu.org
2024-04-05 16:15 ` [Bug target/114607] " rsandifo at gcc dot gnu.org
2024-04-08 15:53 ` cvs-commit at gcc dot gnu.org
2024-04-08 15:59 ` rsandifo at gcc dot gnu.org
2024-07-31 11:48 ` ktkachov at gcc dot gnu.org
2024-08-16  6:58 ` cvs-commit at gcc dot gnu.org
2024-08-16 14:38 ` cvs-commit at gcc dot gnu.org
2024-08-16 14:41 ` 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).