public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-7221] RISC-V: Set the ABI for the RVV tests
@ 2023-04-19  2:41 Palmer Dabbelt
  0 siblings, 0 replies; only message in thread
From: Palmer Dabbelt @ 2023-04-19  2:41 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:787834ad4ab97c9b196cc2ab84fe897bb38618cb

commit r13-7221-g787834ad4ab97c9b196cc2ab84fe897bb38618cb
Author: Palmer Dabbelt <palmer@rivosinc.com>
Date:   Mon Apr 17 11:20:43 2023 -0700

    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.
    
    (cherry picked from commit e6b050da8a4513ab37fd3699c7a963421fbe4d81)

Diff:
---
 gcc/testsuite/gcc.target/riscv/rvv/rvv.exp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp b/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp
index 7a9a2b6ac48..4b5509db385 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\]]] \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-19  2:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-19  2:41 [gcc r13-7221] RISC-V: Set the ABI for the RVV tests Palmer Dabbelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).