]> gcc.gnu.org Git - gcc.git/commit
RISC-V: Enable ztso tests on rv32
authorPatrick O'Neill <patrick@rivosinc.com>
Mon, 30 Oct 2023 23:54:40 +0000 (16:54 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Wed, 8 Nov 2023 02:05:44 +0000 (19:05 -0700)
commitdcd6352fa8c518044b8330d480e8c685ee6c6b56
tree470929ebf4c1f3a767f6f1febd130c8ecaa8414b
parent2f5f3646f42e6ffa128961e5e067cd32ab7535b8
RISC-V: Enable ztso tests on rv32

This patch transitions the ztso testcases to use the testsuite infrastructure,
enabling the tests on both rv64 and rv32 targets.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/amo-table-ztso-amo-add-1.c: Add Ztso extension to
dg-options for dg-do compile.
* gcc.target/riscv/amo-table-ztso-amo-add-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-amo-add-3.c: Ditto.
* gcc.target/riscv/amo-table-ztso-amo-add-4.c: Ditto.
* gcc.target/riscv/amo-table-ztso-amo-add-5.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-1.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-3.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-4.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-5.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-6.c: Ditto.
* gcc.target/riscv/amo-table-ztso-compare-exchange-7.c: Ditto.
* gcc.target/riscv/amo-table-ztso-fence-1.c: Ditto.
* gcc.target/riscv/amo-table-ztso-fence-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-fence-3.c: Ditto.
* gcc.target/riscv/amo-table-ztso-fence-4.c: Ditto.
* gcc.target/riscv/amo-table-ztso-fence-5.c: Ditto.
* gcc.target/riscv/amo-table-ztso-load-1.c: Ditto.
* gcc.target/riscv/amo-table-ztso-load-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-load-3.c: Ditto.
* gcc.target/riscv/amo-table-ztso-store-1.c: Ditto.
* gcc.target/riscv/amo-table-ztso-store-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-store-3.c: Ditto.
* gcc.target/riscv/amo-table-ztso-subword-amo-add-1.c: Ditto.
* gcc.target/riscv/amo-table-ztso-subword-amo-add-2.c: Ditto.
* gcc.target/riscv/amo-table-ztso-subword-amo-add-3.c: Ditto.
* gcc.target/riscv/amo-table-ztso-subword-amo-add-4.c: Ditto.
* gcc.target/riscv/amo-table-ztso-subword-amo-add-5.c: Ditto.
* lib/target-supports.exp: Add testing infrastructure to require the
Ztso extension or add it to an existing -march.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
(cherry picked from commit ea2e7bf80b8deead064d9b54c3caa852dfe009b3)
29 files changed:
gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-3.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-4.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-5.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-3.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-4.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-5.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-6.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-7.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-3.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-4.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-5.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-3.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-3.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-1.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-2.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-3.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-4.c
gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-5.c
gcc/testsuite/lib/target-supports.exp
This page took 0.061757 seconds and 5 git commands to generate.