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>
This commit is contained in:
Dimitar Dimitrov 2024-12-04 17:51:11 +02:00
parent 62e7c49669
commit 3eaf74beac
No known key found for this signature in database
GPG key ID: 963DD134E821F15D
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;