]> gcc.gnu.org Git - gcc.git/commit
riscv: thead: Fix failing XTheadCondMov tests (indirect-rv[32|64])
authorChristoph Müllner <christoph.muellner@vrull.eu>
Thu, 6 Jul 2023 06:16:39 +0000 (08:16 +0200)
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>
Wed, 12 Jul 2023 14:43:02 +0000 (16:43 +0200)
commit5a13caf2666bdf586272cc24a08ab90499771c95
treee7014c0ace431e50067154488f9a24f3cf302a8f
parent2eb8ee2b6a6922b1dd220de31ae1b48b83e51678
riscv: thead: Fix failing XTheadCondMov tests (indirect-rv[32|64])

Recently, two identical XTheadCondMov tests have been added, which both fail.
Let's fix that by changing the following:
* Merge both files into one (no need for separate tests for rv32 and rv64)
* Drop unrelated attribute check test (we already test for `th.mveqz`
  and `th.mvnez` instructions, so there is little additional value)
* Fix the pattern to allow matching

Fixes: a1806f0918c0 ("RISC-V: Optimize TARGET_XTHEADCONDMOV")
gcc/testsuite/ChangeLog:

* gcc.target/riscv/xtheadcondmov-indirect-rv32.c: Moved to...
* gcc.target/riscv/xtheadcondmov-indirect.c: ...here.
* gcc.target/riscv/xtheadcondmov-indirect-rv64.c: Removed.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/testsuite/gcc.target/riscv/xtheadcondmov-indirect-rv32.c [deleted file]
gcc/testsuite/gcc.target/riscv/xtheadcondmov-indirect-rv64.c [deleted file]
gcc/testsuite/gcc.target/riscv/xtheadcondmov-indirect.c [new file with mode: 0644]
This page took 0.058952 seconds and 5 git commands to generate.