]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Fix expansion of svsudot [PR114607]
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 16 Aug 2024 14:37:50 +0000 (15:37 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 16 Aug 2024 14:37:50 +0000 (15:37 +0100)
commit2d1b1f404f3361a0e3d9d2a2bee5cf68c1290fe5
tree9136a368ef9cfa76c1aa1d05e59c7c61c48a2ae5
parent62b4f084037bdc1d5758c1ff48f12304539c148a
aarch64: Fix expansion of svsudot [PR114607]

Not sure how this happend, but: svsudot is supposed to be expanded
as USDOT with the operands swapped.  However, a thinko in the
expansion of svsudot meant that the arguments weren't in fact
swapped; the attempted swap was just a no-op.  And the testcases
blithely accepted that.

gcc/
PR target/114607
* config/aarch64/aarch64-sve-builtins-base.cc
(svusdot_impl::expand): Fix botched attempt to swap the operands
for svsudot.

gcc/testsuite/
PR target/114607
* gcc.target/aarch64/sve/acle/asm/sudot_s32.c: New test.

(cherry picked from commit 2c1c2485a4b1aca746ac693041e51ea6da5c64ca)
gcc/config/aarch64/aarch64-sve-builtins-base.cc
gcc/testsuite/gcc.target/aarch64/sve/acle/asm/sudot_s32.c