]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: testsuite: Do not set default arch for RVV.
authorRobin Dapp <rdapp@ventanamicro.com>
Mon, 20 Nov 2023 13:25:03 +0000 (14:25 +0100)
committerRobin Dapp <rdapp@ventanamicro.com>
Tue, 21 Nov 2023 20:06:13 +0000 (21:06 +0100)
This removes setting of the default arch and abi in the testsuite.  We
should directly use what the target provides.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/rvv.exp:  Remove -march and -mabi from
default CFLAGS.

gcc/testsuite/gcc.target/riscv/rvv/rvv.exp

index 237a20e11aaf0a57a14cfd989b760311c2ac8dd9..1d5041b0c8c4238824957a0a5c8482f4bb4048f3 100644 (file)
@@ -30,18 +30,11 @@ if ![info exists DEFAULT_CFLAGS] then {
     set DEFAULT_CFLAGS " -ansi -pedantic-errors"
 }
 
-set gcc_march "rv64gcv_zfh"
-set gcc_mabi  "lp64d"
-if [istarget riscv32-*-*] then {
-  set gcc_march "rv32gcv_zfh"
-  set gcc_mabi  "ilp32d"
-}
-
 # Initialize `dg'.
 dg-init
 
 # Main loop.
-set CFLAGS "$DEFAULT_CFLAGS -march=$gcc_march -mabi=$gcc_mabi -O3"
+set CFLAGS "$DEFAULT_CFLAGS -O3"
 dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/base/*.\[cS\]]] \
        "" $CFLAGS
 gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/vsetvl/*.\[cS\]]] \