target/arm: Fix SME full tile indexing
commit1f51573f7925b80e79a29f87c7d9d6ead60960c0
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 4 Jul 2023 13:08:48 +0000 (4 14:08 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 6 Jul 2023 11:56:21 +0000 (6 12:56 +0100)
treee550a91dda0ba09af6ec2a554a14b812acb297af
parent270bea47a23b286c2ab3a76f720991c59680b8e6
target/arm: Fix SME full tile indexing

For the outer product set of insns, which take an entire matrix
tile as output, the argument is not a combined tile+column.
Therefore using get_tile_rowcol was incorrect, as we extracted
the tile number from itself.

The test case relies only on assembler support for SME, since
no release of GCC recognizes -march=armv9-a+sme yet.

Cc: qemu-stable@nongnu.org
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1620
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230622151201.1578522-5-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: dropped now-unneeded changes to sysregs CFLAGS]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/tcg/translate-sme.c
tests/tcg/aarch64/Makefile.target
tests/tcg/aarch64/sme-outprod1.c [new file with mode: 0644]