]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: RISC-V: Skip tests using -mcpu= for ILP32E/ILP64E ABIs
authorDimitar Dimitrov <dimitar@dinux.eu>
Wed, 4 Dec 2024 15:51:11 +0000 (17:51 +0200)
committerDimitar Dimitrov <dimitar@dinux.eu>
Tue, 7 Jan 2025 19:06:36 +0000 (21:06 +0200)
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>
gcc/testsuite/gcc.target/riscv/pr109508.c
gcc/testsuite/gcc.target/riscv/pr114139.c

index 65f291e17ed830048dd4dec3b74a312022c8f8eb..9ed06a4daed4722f8bc672c6b5997432f6aaf5be 100644 (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;
index 1d4eeb65f5c55595edeb324720f742511826989c..d4e7593f5c04b1141e9f441c771c6752268913f1 100644 (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;