public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4514] RISC-V Regression test: Adapt SLP tests like ARM SVE
@ 2023-10-09 14:26 Pan Li
  0 siblings, 0 replies; only message in thread
From: Pan Li @ 2023-10-09 14:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:79e6ea48b7bb67a101f1fba22d633ff759d946d2

commit r14-4514-g79e6ea48b7bb67a101f1fba22d633ff759d946d2
Author: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Date:   Mon Oct 9 21:37:07 2023 +0800

    RISC-V Regression test: Adapt SLP tests like ARM SVE
    
    Like ARM SVE, RVV is vectorizing these 2 cases in the same way.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.dg/vect/slp-23.c: Add RVV like ARM SVE.
            * gcc.dg/vect/slp-perm-10.c: Ditto.

Diff:
---
 gcc/testsuite/gcc.dg/vect/slp-23.c      | 2 +-
 gcc/testsuite/gcc.dg/vect/slp-perm-10.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/vect/slp-23.c b/gcc/testsuite/gcc.dg/vect/slp-23.c
index d32ee5ba73b..8836acf0330 100644
--- a/gcc/testsuite/gcc.dg/vect/slp-23.c
+++ b/gcc/testsuite/gcc.dg/vect/slp-23.c
@@ -114,5 +114,5 @@ int main (void)
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { ! vect_perm } } } } */
 /* SLP fails for the second loop with variable-length SVE because
    the load size is greater than the minimum vector size.  */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { target vect_perm xfail { aarch64_sve && vect_variable_length } } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" { target vect_perm xfail { { aarch64_sve || riscv_v } && vect_variable_length } } } } */
   
diff --git a/gcc/testsuite/gcc.dg/vect/slp-perm-10.c b/gcc/testsuite/gcc.dg/vect/slp-perm-10.c
index 2cce30c2444..03de4c61b50 100644
--- a/gcc/testsuite/gcc.dg/vect/slp-perm-10.c
+++ b/gcc/testsuite/gcc.dg/vect/slp-perm-10.c
@@ -53,4 +53,4 @@ int main ()
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_perm } } } */
 /* SLP fails for variable-length SVE because the load size is greater
    than the minimum vector size.  */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target vect_perm xfail { aarch64_sve && vect_variable_length } } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target vect_perm xfail { { aarch64_sve || riscv_v } && vect_variable_length } } } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-09 14:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-09 14:26 [gcc r14-4514] RISC-V Regression test: Adapt SLP tests like ARM SVE Pan Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).