public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] testsuite/vect: Make check more accurate.
@ 2023-11-07  8:31 juzhe.zhong
  2023-11-07  8:34 ` Robin Dapp
  0 siblings, 1 reply; 5+ messages in thread
From: juzhe.zhong @ 2023-11-07  8:31 UTC (permalink / raw)
  To: gcc-patches; +Cc: Robin Dapp, jeffreyalaw, rguenther

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

Hi, Robin.

/* { dg-final { scan-tree-dump-times "optimizing condition reduction with FOLD_EXTRACT_LAST" 4 "vect" { target { { vect_fold_extract_last } && { ! vect_pack_trunc } } } } } */
This check should be removed. Previously, I added it since we didn't enable vect_pack_trunc test.
But I think we don't need it any more. Your fix looks more reasonable.



juzhe.zhong@rivai.ai

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH] testsuite/vect: Make check more accurate.
@ 2023-11-07  8:22 Robin Dapp
  2023-11-07  8:28 ` Richard Biener
  2023-11-09 20:00 ` Thomas Schwinge
  0 siblings, 2 replies; 5+ messages in thread
From: Robin Dapp @ 2023-11-07  8:22 UTC (permalink / raw)
  To: gcc-patches; +Cc: rdapp.gcc

Hi,

similar to before this modifies a check so we do only match a
vectorization attempt if it succeeded.  On riscv we potentially try
several modes of which some may fail.

I tested on riscv, aarch64 and x86 but on the cfarm machines
there is no vect_fold_extract_last.  Maybe gcn would work?

Regards
 Robin

gcc/testsuite/ChangeLog:

	* gcc.dg/vect/vect-cond-reduc-4.c: Make check more accurate.
---
 gcc/testsuite/gcc.dg/vect/vect-cond-reduc-4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vect/vect-cond-reduc-4.c b/gcc/testsuite/gcc.dg/vect/vect-cond-reduc-4.c
index 8ea8c538713..c5aa989ec29 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-cond-reduc-4.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-cond-reduc-4.c
@@ -42,7 +42,7 @@ main (void)
 }
 
 /* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 2 "vect" } } */
-/* { dg-final { scan-tree-dump-times "optimizing condition reduction with FOLD_EXTRACT_LAST" 2 "vect" { target { vect_fold_extract_last && vect_pack_trunc } } } } */
+/* { dg-final { scan-tree-dump-times "optimizing condition reduction with FOLD_EXTRACT_LAST(?:(?!failed)(?!Re-trying).)*succeeded" 2 "vect" { target { vect_fold_extract_last && vect_pack_trunc } } } } */
 /* { dg-final { scan-tree-dump-times "optimizing condition reduction with FOLD_EXTRACT_LAST" 4 "vect" { target { { vect_fold_extract_last } && { ! vect_pack_trunc } } } } } */
 /* { dg-final { scan-tree-dump-times "condition expression based on integer induction." 2 "vect" { target { ! vect_fold_extract_last } } } } */
 
-- 
2.41.0


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

end of thread, other threads:[~2023-11-09 20:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-07  8:31 [PATCH] testsuite/vect: Make check more accurate juzhe.zhong
2023-11-07  8:34 ` Robin Dapp
  -- strict thread matches above, loose matches on Subject: below --
2023-11-07  8:22 Robin Dapp
2023-11-07  8:28 ` Richard Biener
2023-11-09 20:00 ` Thomas Schwinge

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