diff options
author | Palmer Dabbelt <palmer@rivosinc.com> | 2023-04-11 15:18:20 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-04-17 11:13:42 -0700 |
commit | e6b050da8a4513ab37fd3699c7a963421fbe4d81 (patch) | |
tree | 38e499cc74c8f3f7a65aabfab49ee909baa263c4 /gcc | |
parent | 8c010f6fe5ebe80d2e054b31e04ae0e9f12ae368 (diff) | |
download | gcc-e6b050da8a4513ab37fd3699c7a963421fbe4d81.zip gcc-e6b050da8a4513ab37fd3699c7a963421fbe4d81.tar.gz gcc-e6b050da8a4513ab37fd3699c7a963421fbe4d81.tar.bz2 |
RISC-V: Set the ABI for the RVV tests
The RVV test harness currently sets the ISA according to the target
tuple, but doesn't also set the ABI. This just sets the ABI to match
the ISA, though we should really also be respecting the user's specific
ISA to test.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/rvv.exp (gcc_mabi): New variable.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/rvv/rvv.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp b/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp index 7a9a2b6..4b5509d 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp +++ b/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp @@ -31,15 +31,17 @@ if ![info exists DEFAULT_CFLAGS] then { } 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 -O3" +set CFLAGS "$DEFAULT_CFLAGS -march=$gcc_march -mabi=$gcc_mabi -O3" dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/base/*.\[cS\]]] \ "" $CFLAGS gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/vsetvl/*.\[cS\]]] \ |