[gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Specify -mabi=lp64d in wredsum_vlmax.c testcase
Jeff Law
law@gcc.gnu.org
Mon Oct 9 12:50:33 GMT 2023
https://gcc.gnu.org/g:d7bb2aa1e85840a11a4a0185c10d2a202e6cfe50
commit d7bb2aa1e85840a11a4a0185c10d2a202e6cfe50
Author: Patrick O'Neill <patrick@rivosinc.com>
Date: Fri Sep 29 14:20:07 2023 -0700
RISC-V: Specify -mabi=lp64d in wredsum_vlmax.c testcase
Resolves this error on rv32gcv:
cc1: error: ABI requires '-march=rv32'
compiler exited with status 1
FAIL: gcc.target/riscv/rvv/vsetvl/wredsum_vlmax.c -O0 (test for excess errors)
Tested for regressions using glibc rv32gcv/rv64gcv multilib on
r14-4339-geaa41a6dc12.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/vsetvl/wredsum_vlmax.c: Specify -mabi=lp64d.
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
(cherry picked from commit 4f1e5379fd77c744111672ab3d961cecb4826b80)
Diff:
---
gcc/testsuite/gcc.target/riscv/rvv/vsetvl/wredsum_vlmax.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/wredsum_vlmax.c b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/wredsum_vlmax.c
index 6b7c77326ae..81a0ebb9f52 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/wredsum_vlmax.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/vsetvl/wredsum_vlmax.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-march=rv64gcv_zvl256b --param=riscv-autovec-preference=fixed-vlmax -O3" } */
+/* { dg-options "-march=rv64gcv_zvl256b -mabi=lp64d --param=riscv-autovec-preference=fixed-vlmax -O3" } */
#include <stdint.h>
More information about the Gcc-cvs
mailing list