]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: testsuite: xtheadfmemidx: Rename test and add similar Zfa test
authorChristoph Müllner <christoph.muellner@vrull.eu>
Tue, 6 Aug 2024 05:24:07 +0000 (07:24 +0200)
committerChristoph Müllner <christoph.muellner@vrull.eu>
Thu, 8 Aug 2024 14:18:37 +0000 (16:18 +0200)
commit8e6bc6dd2bb476fa97586b477bc98c670a3fcaf0
tree79e389d47274f9fa82653ba971a44b94c62be4d9
parentad7d4843d452b97686bcc30da11b933759f09a12
RISC-V: testsuite: xtheadfmemidx: Rename test and add similar Zfa test

Test file xtheadfmemidx-medany.c has been added in b79cd204c780 as a
test case that provoked an ICE when loading DFmode registers via two
SImode register loads followed by a SI->DF[63:32] move from XTheadFmv.
Since Zfa is affected in the same way as XTheadFmv, even if both
have slightly different instructions, let's add a test for Zfa as well
and give the tests proper names.

Let's also add a test into the test files that counts the SI->DF moves
from XTheadFmv/Zfa.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/xtheadfmemidx-medany.c: Move to...
* gcc.target/riscv/xtheadfmemidx-xtheadfmv-medany.c: ...here.
* gcc.target/riscv/xtheadfmemidx-zfa-medany.c: New test.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/testsuite/gcc.target/riscv/xtheadfmemidx-xtheadfmv-medany.c [moved from gcc/testsuite/gcc.target/riscv/xtheadfmemidx-medany.c with 71% similarity]
gcc/testsuite/gcc.target/riscv/xtheadfmemidx-zfa-medany.c [new file with mode: 0644]