public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2854] RISC-V: Specify -mabi in rv64 autovec testcase
@ 2023-07-28 16:37 Patrick O'Neill
  0 siblings, 0 replies; only message in thread
From: Patrick O'Neill @ 2023-07-28 16:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:fdbb0863b6111ad3f45b79f47ebfe471555b2c4a

commit r14-2854-gfdbb0863b6111ad3f45b79f47ebfe471555b2c4a
Author: Patrick O'Neill <patrick@rivosinc.com>
Date:   Fri Jul 28 09:19:33 2023 -0700

    RISC-V: Specify -mabi in rv64 autovec testcase
    
    On rv32 targets, this patch fixes:
    FAIL: gcc.target/riscv/rvv/autovec/madd-split2-1.c -O3 -ftree-vectorize (test for excess errors)
    
    cc1: error: ABI requires '-march=rv32'
    
    gcc/testsuite/ChangeLog:
    
            * gcc.target/riscv/rvv/autovec/madd-split2-1.c: Add -mabi=lp64d
            to dg-options.
    
    Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>

Diff:
---
 gcc/testsuite/gcc.target/riscv/rvv/autovec/madd-split2-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/madd-split2-1.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/madd-split2-1.c
index 14a9802667e..e10a9e9d0f5 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/madd-split2-1.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/madd-split2-1.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-march=rv64gcv_zvl256b -O3 -fno-cprop-registers -fno-dce --param riscv-autovec-preference=scalable" } */
+/* { dg-options "-march=rv64gcv_zvl256b -mabi=lp64d -O3 -fno-cprop-registers -fno-dce --param riscv-autovec-preference=scalable" } */
 
 long
 foo (long *__restrict a, long *__restrict b, long n)

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

only message in thread, other threads:[~2023-07-28 16:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-28 16:37 [gcc r14-2854] RISC-V: Specify -mabi in rv64 autovec testcase Patrick O'Neill

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).