RISC-V: Disable RV64-only crc testcases for RV32
Checks
| Context |
Check |
Description |
| rivoscibot/toolchain-ci-rivos-lint |
success
|
Lint passed
|
| rivoscibot/toolchain-ci-rivos-apply-patch |
success
|
Patch applied
|
| rivoscibot/toolchain-ci-rivos-build--newlib-rv64gcv-lp64d-multilib |
success
|
Build passed
|
| rivoscibot/toolchain-ci-rivos-build--linux-rv64gcv-lp64d-multilib |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_gcc_build--master-arm |
success
|
Build passed
|
| rivoscibot/toolchain-ci-rivos-build--linux-rv64gc_zba_zbb_zbc_zbs-lp64d-multilib |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_gcc_check--master-arm |
success
|
Test passed
|
| linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 |
success
|
Build passed
|
| rivoscibot/toolchain-ci-rivos-test |
success
|
Testing passed
|
| linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 |
success
|
Test passed
|
Commit Message
These testcases require RV64 targets. They fail when -march=rv32* is
specified while using an riscv64* compiler.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/crc-21-rv64-zbc.c: Disallow rv32 targets.
* gcc.target/riscv/crc-21-rv64-zbkc.c: Ditto.
---
gcc/testsuite/gcc.target/riscv/crc-21-rv64-zbc.c | 5 ++---
gcc/testsuite/gcc.target/riscv/crc-21-rv64-zbkc.c | 5 ++---
2 files changed, 4 insertions(+), 6 deletions(-)
Comments
On 1/14/25 12:57 AM, Bohan Lei wrote:
> These testcases require RV64 targets. They fail when -march=rv32* is
> specified while using an riscv64* compiler.
>
> gcc/testsuite/ChangeLog:
>
> * gcc.target/riscv/crc-21-rv64-zbc.c: Disallow rv32 targets.
> * gcc.target/riscv/crc-21-rv64-zbkc.c: Ditto.
Thanks. I've pushed this to the trunk.
jeff
@@ -1,6 +1,5 @@
-/* { dg-do run { target { riscv64*-*-* && riscv_zbc_ok } } } */
-/* { dg-options "-march=rv64gc_zbc -fdump-tree-crc -fdump-rtl-dfinish" { target { rv64 } } } */
-/* { dg-options "-march=rv32gc_zbc -fdump-tree-crc -fdump-rtl-dfinish" { target { rv32 } } } */
+/* { dg-do run { target { rv64 && riscv_zbc_ok } } } */
+/* { dg-options "-march=rv64gc_zbc -fdump-tree-crc -fdump-rtl-dfinish" } */
/* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */
#include "../../gcc.dg/torture/crc-21.c"
@@ -1,6 +1,5 @@
-/* { dg-do run { target { riscv64*-*-* && riscv_zbkc_ok } } } */
-/* { dg-options "-march=rv64gc_zbkc -fdump-tree-crc -fdump-rtl-dfinish" { target { rv64 } } } */
-/* { dg-options "-march=rv32gc_zbkc -fdump-tree-crc -fdump-rtl-dfinish" { target { rv32 } } } */
+/* { dg-do run { target { rv64 && riscv_zbkc_ok } } } */
+/* { dg-options "-march=rv64gc_zbkc -fdump-tree-crc -fdump-rtl-dfinish" } */
/* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */
#include "../../gcc.dg/torture/crc-21.c"