]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix fail of vmv-imm-rv64.c in rv32
authorJuzhe Zhong <juzhe.zhong@rivai.ai>
Fri, 12 May 2023 06:38:46 +0000 (14:38 +0800)
committerPan Li <pan2.li@intel.com>
Fri, 12 May 2023 06:40:09 +0000 (14:40 +0800)
After update local codebase to the trunk. I realize there is one more
fail in RV32.
After this patch, all fails of RVV are cleaned up.
Thanks.

FAIL: gcc.target/riscv/rvv/autovec/vmv-imm-rv64.c -O3 -ftree-vectorize
(test for excess errors)
Excess errors:
cc1: error: ABI requires '-march=rv32'

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/vmv-imm-rv64.c: Add ABI

Signed-off-by: Juzhe Zhong <juzhe.zhong@rivai.ai>
gcc/testsuite/gcc.target/riscv/rvv/autovec/vmv-imm-rv64.c

index 520321e1c734d5fbb4351b1acf878f9152661f06..e386166f95e87500c4a657ee40e5417a1915023d 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-additional-options "-std=c99 -march=rv64gcv -fno-vect-cost-model --param=riscv-autovec-preference=scalable -fno-builtin" } */
+/* { dg-additional-options "-std=c99 -march=rv64gcv -mabi=lp64d -fno-vect-cost-model --param=riscv-autovec-preference=scalable -fno-builtin" } */
 
 #include "vmv-imm-template.h"