test: Fix FAIL of pr65518.c for RVV[PR112420]

Message ID 20231107092317.732045-1-juzhe.zhong@rivai.ai
State Not Applicable
Headers
Series test: Fix FAIL of pr65518.c for RVV[PR112420] |

Checks

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

Commit Message

juzhe.zhong@rivai.ai Nov. 7, 2023, 9:23 a.m. UTC
  PR target/112420

gcc/testsuite/ChangeLog:

	* gcc.dg/vect/pr65518.c: Fix check for RVV.

---
 gcc/testsuite/gcc.dg/vect/pr65518.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
  

Comments

Richard Biener Nov. 7, 2023, 12:51 p.m. UTC | #1
On Tue, 7 Nov 2023, Juzhe-Zhong wrote:

> 	PR target/112420

OK

> gcc/testsuite/ChangeLog:
> 
> 	* gcc.dg/vect/pr65518.c: Fix check for RVV.
> 
> ---
>  gcc/testsuite/gcc.dg/vect/pr65518.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/gcc/testsuite/gcc.dg/vect/pr65518.c b/gcc/testsuite/gcc.dg/vect/pr65518.c
> index 3e5b986183c..189a65534f6 100644
> --- a/gcc/testsuite/gcc.dg/vect/pr65518.c
> +++ b/gcc/testsuite/gcc.dg/vect/pr65518.c
> @@ -49,4 +49,6 @@ int main ()
>     sub-optimal and causes memory explosion (even though the cost model
>     should reject that in the end).  */
>  
> -/* { dg-final { scan-tree-dump-times "vectorized 0 loops in function" 2 "vect" } } */
> +/* { dg-final { scan-tree-dump-times "vectorized 0 loops in function" 2 "vect" { target {! riscv*-*-* } } } } */
> +/* We end up using gathers for the strided load on RISC-V which would be OK.  */
> +/* { dg-final { scan-tree-dump "using gather/scatter for strided/grouped access" "vect" { target { riscv*-*-* } } } } */
>
  
Li, Pan2 Nov. 7, 2023, 1:32 p.m. UTC | #2
Committed, thanks Richard.

Pan

-----Original Message-----
From: Richard Biener <rguenther@suse.de> 
Sent: Tuesday, November 7, 2023 8:51 PM
To: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Cc: gcc-patches@gcc.gnu.org; jeffreyalaw@gmail.com
Subject: Re: [PATCH] test: Fix FAIL of pr65518.c for RVV[PR112420]

On Tue, 7 Nov 2023, Juzhe-Zhong wrote:

> 	PR target/112420

OK

> gcc/testsuite/ChangeLog:
> 
> 	* gcc.dg/vect/pr65518.c: Fix check for RVV.
> 
> ---
>  gcc/testsuite/gcc.dg/vect/pr65518.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/gcc/testsuite/gcc.dg/vect/pr65518.c b/gcc/testsuite/gcc.dg/vect/pr65518.c
> index 3e5b986183c..189a65534f6 100644
> --- a/gcc/testsuite/gcc.dg/vect/pr65518.c
> +++ b/gcc/testsuite/gcc.dg/vect/pr65518.c
> @@ -49,4 +49,6 @@ int main ()
>     sub-optimal and causes memory explosion (even though the cost model
>     should reject that in the end).  */
>  
> -/* { dg-final { scan-tree-dump-times "vectorized 0 loops in function" 2 "vect" } } */
> +/* { dg-final { scan-tree-dump-times "vectorized 0 loops in function" 2 "vect" { target {! riscv*-*-* } } } } */
> +/* We end up using gathers for the strided load on RISC-V which would be OK.  */
> +/* { dg-final { scan-tree-dump "using gather/scatter for strided/grouped access" "vect" { target { riscv*-*-* } } } } */
>
  

Patch

diff --git a/gcc/testsuite/gcc.dg/vect/pr65518.c b/gcc/testsuite/gcc.dg/vect/pr65518.c
index 3e5b986183c..189a65534f6 100644
--- a/gcc/testsuite/gcc.dg/vect/pr65518.c
+++ b/gcc/testsuite/gcc.dg/vect/pr65518.c
@@ -49,4 +49,6 @@  int main ()
    sub-optimal and causes memory explosion (even though the cost model
    should reject that in the end).  */
 
-/* { dg-final { scan-tree-dump-times "vectorized 0 loops in function" 2 "vect" } } */
+/* { dg-final { scan-tree-dump-times "vectorized 0 loops in function" 2 "vect" { target {! riscv*-*-* } } } } */
+/* We end up using gathers for the strided load on RISC-V which would be OK.  */
+/* { dg-final { scan-tree-dump "using gather/scatter for strided/grouped access" "vect" { target { riscv*-*-* } } } } */