public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] test: Fix FAIL of vect-sdiv-pow2-1.c for RVV test: Fix FAIL of vect-sdiv-pow2-1.c for RVV#
@ 2023-11-07  3:50 Juzhe-Zhong
  2023-11-07  3:53 ` Jeff Law
  2023-11-07 13:45 ` Richard Biener
  0 siblings, 2 replies; 9+ messages in thread
From: Juzhe-Zhong @ 2023-11-07  3:50 UTC (permalink / raw)
  To: gcc-patches; +Cc: rguenther, jeffreyalaw, Juzhe-Zhong

RVV didn't explictly enable DIV_POW2 optab but we cen vectorize it.
We should check pattern recognition instead of explicit pattern check.

gcc/testsuite/ChangeLog:

	* gcc.dg/vect/vect-sdiv-pow2-1.c: Fix dump check.

---
 gcc/testsuite/gcc.dg/vect/vect-sdiv-pow2-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vect/vect-sdiv-pow2-1.c b/gcc/testsuite/gcc.dg/vect/vect-sdiv-pow2-1.c
index 49ecbe216f2..8056c2a6748 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-sdiv-pow2-1.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-sdiv-pow2-1.c
@@ -79,5 +79,5 @@ main (void)
   return 0;
 }
 
-/* { dg-final { scan-tree-dump {\.DIV_POW2} "vect" { target vect_sdiv_pow2_si } } } */
+/* { dg-final { scan-tree-dump "vect_recog_divmod_pattern: detected" "vect" } } */
 /* { dg-final { scan-tree-dump-times "vectorized 1 loop" 18 "vect" { target vect_sdiv_pow2_si } } } */
-- 
2.36.3


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

end of thread, other threads:[~2023-11-07 14:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-07  3:50 [PATCH] test: Fix FAIL of vect-sdiv-pow2-1.c for RVV test: Fix FAIL of vect-sdiv-pow2-1.c for RVV# Juzhe-Zhong
2023-11-07  3:53 ` Jeff Law
2023-11-07  7:20   ` juzhe.zhong
2023-11-07 13:45 ` Richard Biener
2023-11-07 13:58   ` 钟居哲
2023-11-07 14:36     ` Richard Biener
2023-11-07 14:47       ` 钟居哲
2023-11-07 14:02   ` 钟居哲
     [not found]   ` <202311072202351616596@rivai.ai>
2023-11-07 14:03     ` 钟居哲

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