aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPatrick O'Neill <patrick@rivosinc.com>2023-07-28 09:19:33 -0700
committerPatrick O'Neill <patrick@rivosinc.com>2023-07-28 09:32:42 -0700
commitfdbb0863b6111ad3f45b79f47ebfe471555b2c4a (patch)
treeefaff1d192f5f5b45ba40eedf6c3bf2acbfed2ed /gcc
parenta47e615fbf9c6f4b24e5032df5d720b6bf9b63b5 (diff)
downloadgcc-fdbb0863b6111ad3f45b79f47ebfe471555b2c4a.zip
gcc-fdbb0863b6111ad3f45b79f47ebfe471555b2c4a.tar.gz
gcc-fdbb0863b6111ad3f45b79f47ebfe471555b2c4a.tar.bz2
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>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/riscv/rvv/autovec/madd-split2-1.c2
1 files changed, 1 insertions, 1 deletions
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 14a9802..e10a9e9 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)