RISC-V regression test: Fix FAIL of bb-slp-39.c

Message ID 20231107023212.3383839-1-juzhe.zhong@rivai.ai
State Accepted
Headers
Series RISC-V regression test: Fix FAIL of bb-slp-39.c |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

juzhe.zhong@rivai.ai Nov. 7, 2023, 2:32 a.m. UTC
  Like s390, add riscv to fix the fail.

gcc/testsuite/ChangeLog:

	* gcc.dg/vect/bb-slp-39.c: Add RISCV.

---
 gcc/testsuite/gcc.dg/vect/bb-slp-39.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Li, Pan2 Nov. 7, 2023, 3:06 a.m. UTC | #1
Committed, thanks Kito.

Pan

-----Original Message-----
From: Kito Cheng <kito.cheng@gmail.com> 
Sent: Tuesday, November 7, 2023 10:47 AM
To: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Cc: gcc-patches@gcc.gnu.org; kito.cheng@sifive.com; jeffreyalaw@gmail.com; rdapp.gcc@gmail.com
Subject: Re: [PATCH] RISC-V regression test: Fix FAIL of bb-slp-39.c

LGTM

On Tue, Nov 7, 2023 at 10:32 AM Juzhe-Zhong <juzhe.zhong@rivai.ai> wrote:
>
> Like s390, add riscv to fix the fail.
>
> gcc/testsuite/ChangeLog:
>
>         * gcc.dg/vect/bb-slp-39.c: Add RISCV.
>
> ---
>  gcc/testsuite/gcc.dg/vect/bb-slp-39.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-39.c b/gcc/testsuite/gcc.dg/vect/bb-slp-39.c
> index ee596cfa08b..f05ce8f2847 100644
> --- a/gcc/testsuite/gcc.dg/vect/bb-slp-39.c
> +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-39.c
> @@ -16,5 +16,5 @@ void foo (double *p)
>  }
>
>  /* See that we vectorize three SLP instances.  */
> -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp2" { target { ! s390*-*-* } } } } */
> -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 5 "slp2" { target {   s390*-*-* } } } } */
> +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp2" { target { ! { s390*-*-* riscv*-*-* } } } } } */
> +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 5 "slp2" { target {   s390*-*-* riscv*-*-* } } } } */
> --
> 2.36.3
>
  

Patch

diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-39.c b/gcc/testsuite/gcc.dg/vect/bb-slp-39.c
index ee596cfa08b..f05ce8f2847 100644
--- a/gcc/testsuite/gcc.dg/vect/bb-slp-39.c
+++ b/gcc/testsuite/gcc.dg/vect/bb-slp-39.c
@@ -16,5 +16,5 @@  void foo (double *p)
 }
 
 /* See that we vectorize three SLP instances.  */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp2" { target { ! s390*-*-* } } } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 5 "slp2" { target {   s390*-*-* } } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp2" { target { ! { s390*-*-* riscv*-*-* } } } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 5 "slp2" { target {   s390*-*-* riscv*-*-* } } } } */