]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Fix expansion of svsudot [PR114607]
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 8 Apr 2024 15:53:32 +0000 (16:53 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Mon, 8 Apr 2024 15:53:32 +0000 (16:53 +0100)
commit2c1c2485a4b1aca746ac693041e51ea6da5c64ca
tree630b68f3f956ce83fd41202506a22f4afb8be6a3
parent97069657c4e40b209c7b774e12faaca13812a86c
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.
gcc/config/aarch64/aarch64-sve-builtins-base.cc
gcc/testsuite/gcc.target/aarch64/sve/acle/asm/sudot_s32.c