diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2024-12-04 17:51:11 +0200 |
---|---|---|
committer | Dimitar Dimitrov <dimitar@dinux.eu> | 2025-01-07 21:06:36 +0200 |
commit | 3eaf74beac9c587edab13aa946b52a09b759d7fe (patch) | |
tree | 8d9e72aa5553d3fcaca8a38c8f80c303b01e26f6 /gcc/testsuite/gcc.target/riscv | |
parent | 62e7c496696eb68186616a2fa3654a876d21d695 (diff) | |
download | gcc-3eaf74beac9c587edab13aa946b52a09b759d7fe.zip gcc-3eaf74beac9c587edab13aa946b52a09b759d7fe.tar.gz gcc-3eaf74beac9c587edab13aa946b52a09b759d7fe.tar.bz2 |
testsuite: RISC-V: Skip tests using -mcpu= for ILP32E/ILP64E ABIs
The tests are specifying -mcpu with D extension, which is not compatible
with the ILP32E and ILP64E ABIs. Fix by skipping the tests if toolchain's
default ABI is an E variant.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/pr109508.c: Skip for E ABI.
* gcc.target/riscv/pr114139.c: Ditto.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diffstat (limited to 'gcc/testsuite/gcc.target/riscv')
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/pr109508.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/pr114139.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.target/riscv/pr109508.c b/gcc/testsuite/gcc.target/riscv/pr109508.c index 65f291e..9ed06a4 100644 --- a/gcc/testsuite/gcc.target/riscv/pr109508.c +++ b/gcc/testsuite/gcc.target/riscv/pr109508.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target { ! riscv_abi_e } } } */ /* { dg-options "-mcpu=sifive-s76" } */ typedef char __attribute__((__vector_size__ (1))) V; diff --git a/gcc/testsuite/gcc.target/riscv/pr114139.c b/gcc/testsuite/gcc.target/riscv/pr114139.c index 1d4eeb6..d4e7593 100644 --- a/gcc/testsuite/gcc.target/riscv/pr114139.c +++ b/gcc/testsuite/gcc.target/riscv/pr114139.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target { ! riscv_abi_e } } } */ /* { dg-options "-O2 -fpic -mexplicit-relocs -mcpu=sifive-p450" } */ static void *p; |