public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] testsuite: Fix dump checks under different riscv-sim for RVV.
@ 2023-12-19  5:30 Li Xu
       [not found] ` <947C2F236DA9D07F+F6BD116B-DEF6-447E-9064-BABAAFF4D260@rivai.ai>
  0 siblings, 1 reply; 2+ messages in thread
From: Li Xu @ 2023-12-19  5:30 UTC (permalink / raw)
  To: gcc-patches; +Cc: kito.cheng, palmer, juzhe.zhong, xuli

From: xuli <xuli1@eswincomputing.com>

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/rvv/base/cpymem-1.c: Fix checks under medany.
	* gcc.target/riscv/rvv/base/cpymem-strategy-3.c: Fix checks.
	* gcc.target/riscv/rvv/base/cpymem-strategy-4.c: Ditto.
---
 .../gcc.target/riscv/rvv/base/cpymem-1.c      | 23 +++++++++++++++++--
 .../riscv/rvv/base/cpymem-strategy-3.c        |  3 ++-
 .../riscv/rvv/base/cpymem-strategy-4.c        |  3 ++-
 3 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c
index ccde7575051..9efe258c99a 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c
@@ -85,15 +85,34 @@ void f2 (__INT32_TYPE__* a, __INT32_TYPE__* b, int l)
 */
 
 /*
-** f3: { target { any-opts "-mcmodel=medany" } }
+** f3: { target { { any-opts "-mcmodel=medany" } && { no-opts "-march=rv64gcv_zvl512b" "-march=rv64gcv_zvl256b" "-march=rv64gcv_zvl1024b" "--param=riscv-autovec-lmul=dynamic" "--param=riscv-autovec-lmul=m8" "--param=riscv-autovec-lmul=m4" "--param=riscv-autovec-preference=fixed-vlmax" } } }
+**        lla\s+[ta][0-7],a_a
 **        lla\s+[ta][0-7],a_b
-**        vsetivli\s+zero,16,e32,m4,ta,ma
+**        vsetivli\s+zero,16,e32,m8,ta,ma
+**        vle32.v\s+v\d+,0\([ta][0-7]\)
+**        vse32\.v\s+v\d+,0\([ta][0-7]\)
+**        ret
+*/
+
+/*
+** f3: { target { { any-opts "-mcmodel=medany"  } && { no-opts "-march=rv64gcv_zvl512b" "-march=rv64gcv_zvl256b" "-march=rv64gcv" "-march=rv64gc_zve64d" "-march=rv64gc_zve32f" } } }
+**        lla\s+[ta][0-7],a_b
+**        vsetivli\s+zero,16,e32,m(f2|1|4),ta,ma
 **        vle32.v\s+v\d+,0\([ta][0-7]\)
 **        lla\s+[ta][0-7],a_a
 **        vse32\.v\s+v\d+,0\([ta][0-7]\)
 **        ret
 */
 
+/*
+** f3: { target { { any-opts "-mcmodel=medany --param=riscv-autovec-preference=fixed-vlmax" } && { no-opts "-march=rv64gcv_zvl1024b" } } }
+**        lla\s+[ta][0-7],a_a
+**        lla\s+[ta][0-7],a_b
+**        vl(1|2|4)re32\.v\s+v\d+,0\([ta][0-7]\)
+**        vs(1|2|4)r\.v\s+v\d+,0\([ta][0-7]\)
+**        ret
+*/
+
 extern struct { __INT32_TYPE__ a[16]; } a_a, a_b;
 
 void f3 ()
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-strategy-3.c b/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-strategy-3.c
index 83e5a837730..1e11ac0759f 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-strategy-3.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-strategy-3.c
@@ -3,4 +3,5 @@
 
 #include "cpymem-strategy.h"
 
-/* { dg-final { scan-assembler-times {v[ls]+e[0-9]+\.v\tv[0-9]+\,0\([a-z0-9]+\)} 4 } } */
+/* { dg-final { scan-assembler-times {v[ls]+e[0-9]+\.v\tv[0-9]+\,0\([a-z0-9]+\)} 4 { target { no-opts "--param=riscv-autovec-preference=fixed-vlmax" } } } } */
+/* { dg-final { scan-assembler-times {v[ls]+e[0-9]+\.v\tv[0-9]+\,0\([a-z0-9]+\)} 2 { target { any-opts "--param=riscv-autovec-preference=fixed-vlmax" } } } } */
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-strategy-4.c b/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-strategy-4.c
index 800549c8556..6bbcb54dec1 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-strategy-4.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-strategy-4.c
@@ -3,4 +3,5 @@
 
 #include "cpymem-strategy.h"
 
-/* { dg-final { scan-assembler-times {v[ls]+e[0-9]+\.v\tv[0-9]+\,0\([a-z0-9]+\)} 4 } } */
+/* { dg-final { scan-assembler-times {v[ls]+e[0-9]+\.v\tv[0-9]+\,0\([a-z0-9]+\)} 4 { target { no-opts "--param=riscv-autovec-preference=fixed-vlmax" } } } } */
+/* { dg-final { scan-assembler-times {v[ls]+e[0-9]+\.v\tv[0-9]+\,0\([a-z0-9]+\)} 2 { target { any-opts "--param=riscv-autovec-preference=fixed-vlmax" } } } } */
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Re: [PATCH] testsuite: Fix dump checks under different riscv-sim for RVV.
       [not found] ` <947C2F236DA9D07F+F6BD116B-DEF6-447E-9064-BABAAFF4D260@rivai.ai>
@ 2023-12-19  6:07   ` Li Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Li Xu @ 2023-12-19  6:07 UTC (permalink / raw)
  To: juzhe.zhong; +Cc: gcc-patches, kito.cheng, palmer

[-- Attachment #1: Type: text/plain, Size: 661 bytes --]

Committed, thanks juzhe.



xuli1@eswincomputing.com
 
From: juzhe.zhong
Date: 2023-12-19 14:01
To: Li Xu
CC: gcc-patches@gcc.gnu.org; kito.cheng@gmail.com; palmer@dabbelt.com; xuli
Subject: Re: [PATCH] testsuite: Fix dump checks under different riscv-sim for RVV.
ok
---- Replied Message ----
FromLi Xu<xuli1@eswincomputing.com>
Date12/19/2023 13:31
Togcc-patches@gcc.gnu.org<gcc-patches@gcc.gnu.org>
Cckito.cheng@gmail.com<kito.cheng@gmail.com>,
palmer@dabbelt.com<palmer@dabbelt.com>,
juzhe.zhong@rivai.ai<juzhe.zhong@rivai.ai>,
xuli<xuli1@eswincomputing.com>
Subject[PATCH] testsuite: Fix dump checks under different riscv-sim for RVV.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-19  6:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-19  5:30 [PATCH] testsuite: Fix dump checks under different riscv-sim for RVV Li Xu
     [not found] ` <947C2F236DA9D07F+F6BD116B-DEF6-447E-9064-BABAAFF4D260@rivai.ai>
2023-12-19  6:07   ` Li Xu

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).