[V3] test: Fix FAIL of pr97428.c for RVV

Message ID 20231107151859.2882293-1-juzhe.zhong@rivai.ai
State Unresolved
Headers
Series [V3] test: Fix FAIL of pr97428.c for RVV |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

juzhe.zhong@rivai.ai Nov. 7, 2023, 3:18 p.m. UTC
  gcc/testsuite/ChangeLog:

	* gcc.dg/vect/pr97428.c: Add additional compile option for riscv.

---
 gcc/testsuite/gcc.dg/vect/pr97428.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

juzhe.zhong@rivai.ai Nov. 10, 2023, 1:30 a.m. UTC | #1
Thanks Jeff. Committed.



juzhe.zhong@rivai.ai
 
From: Jeff Law
Date: 2023-11-10 09:26
To: Juzhe-Zhong; gcc-patches
CC: rguenther
Subject: Re: [PATCH V3] test: Fix FAIL of pr97428.c for RVV
 
 
On 11/7/23 08:18, Juzhe-Zhong wrote:
> gcc/testsuite/ChangeLog:
> 
> * gcc.dg/vect/pr97428.c: Add additional compile option for riscv.
I don't guess we know if other targets would benefit from this option. 
The only reference in gcc-testresults to pr97428.c is an armv7 run from 
2022.  So let's assume nobody else cares.
 
OK for the trunk.
 
jeff
  

Patch

diff --git a/gcc/testsuite/gcc.dg/vect/pr97428.c b/gcc/testsuite/gcc.dg/vect/pr97428.c
index ad6416096aa..60dd984cfd3 100644
--- a/gcc/testsuite/gcc.dg/vect/pr97428.c
+++ b/gcc/testsuite/gcc.dg/vect/pr97428.c
@@ -1,5 +1,6 @@ 
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_double } */
+/* { dg-additional-options "--param vect-epilogues-nomask=0" { target riscv*-*-* } } */
 
 typedef struct { double re, im; } dcmlx_t;
 typedef struct { double re[4], im[4]; } dcmlx4_t;