* [PATCH] RISC-V Regression: Fix FAIL of vect-multitypes-16.c for RVV
@ 2023-10-10 14:49 Juzhe-Zhong
2023-10-10 15:28 ` Jeff Law
0 siblings, 1 reply; 3+ messages in thread
From: Juzhe-Zhong @ 2023-10-10 14:49 UTC (permalink / raw)
To: gcc-patches; +Cc: rguenther, jeffreyalaw, Juzhe-Zhong
As Richard suggested: https://gcc.gnu.org/pipermail/gcc-patches/2023-October/632288.html
Add vect_ext_char_longlong to fix FAIL for RVV.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/vect-multitypes-16.c: Adapt check for RVV.
* lib/target-supports.exp: Add vect_ext_char_longlong property.
---
gcc/testsuite/gcc.dg/vect/vect-multitypes-16.c | 4 ++--
gcc/testsuite/lib/target-supports.exp | 9 +++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/vect/vect-multitypes-16.c b/gcc/testsuite/gcc.dg/vect/vect-multitypes-16.c
index a61f1a9a221..fd17ad7437e 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-multitypes-16.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-multitypes-16.c
@@ -35,6 +35,6 @@ int main (void)
return 0;
}
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_unpack } } } */
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { ! vect_unpack } } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { { vect_unpack } || { vect_variable_length && vect_ext_char_longlong } } } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { { ! vect_unpack } && {! { vect_variable_length && vect_ext_char_longlong } } } } } } */
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 95c489d7f76..b454b07359a 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -4215,6 +4215,15 @@ proc check_effective_target_vect_floatuint_cvt { } {
&& [check_effective_target_riscv_v]) }}]
}
+# Return 1 if the target supports vector integer char -> long long extend optab
+#
+
+proc check_effective_target_vect_ext_char_longlong { } {
+ return [check_cached_effective_target_indexed vect_ext_char_longlong {
+ expr { ([istarget riscv*-*-*]
+ && [check_effective_target_riscv_v]) }}]
+}
+
# Return 1 if peeling for alignment might be profitable on the target
#
--
2.36.3
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] RISC-V Regression: Fix FAIL of vect-multitypes-16.c for RVV
2023-10-10 14:49 [PATCH] RISC-V Regression: Fix FAIL of vect-multitypes-16.c for RVV Juzhe-Zhong
@ 2023-10-10 15:28 ` Jeff Law
2023-10-11 1:08 ` Li, Pan2
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Law @ 2023-10-10 15:28 UTC (permalink / raw)
To: Juzhe-Zhong, gcc-patches; +Cc: rguenther
On 10/10/23 08:49, Juzhe-Zhong wrote:
> As Richard suggested: https://gcc.gnu.org/pipermail/gcc-patches/2023-October/632288.html
>
> Add vect_ext_char_longlong to fix FAIL for RVV.
>
> gcc/testsuite/ChangeLog:
>
> * gcc.dg/vect/vect-multitypes-16.c: Adapt check for RVV.
> * lib/target-supports.exp: Add vect_ext_char_longlong property.
OK
jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] RISC-V Regression: Fix FAIL of vect-multitypes-16.c for RVV
2023-10-10 15:28 ` Jeff Law
@ 2023-10-11 1:08 ` Li, Pan2
0 siblings, 0 replies; 3+ messages in thread
From: Li, Pan2 @ 2023-10-11 1:08 UTC (permalink / raw)
To: Jeff Law, Juzhe-Zhong, gcc-patches; +Cc: rguenther
Committed, thanks Jeff.
Pan
-----Original Message-----
From: Jeff Law <jeffreyalaw@gmail.com>
Sent: Tuesday, October 10, 2023 11:29 PM
To: Juzhe-Zhong <juzhe.zhong@rivai.ai>; gcc-patches@gcc.gnu.org
Cc: rguenther@suse.de
Subject: Re: [PATCH] RISC-V Regression: Fix FAIL of vect-multitypes-16.c for RVV
On 10/10/23 08:49, Juzhe-Zhong wrote:
> As Richard suggested: https://gcc.gnu.org/pipermail/gcc-patches/2023-October/632288.html
>
> Add vect_ext_char_longlong to fix FAIL for RVV.
>
> gcc/testsuite/ChangeLog:
>
> * gcc.dg/vect/vect-multitypes-16.c: Adapt check for RVV.
> * lib/target-supports.exp: Add vect_ext_char_longlong property.
OK
jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-11 1:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-10 14:49 [PATCH] RISC-V Regression: Fix FAIL of vect-multitypes-16.c for RVV Juzhe-Zhong
2023-10-10 15:28 ` Jeff Law
2023-10-11 1:08 ` Li, Pan2
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).