public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] TEST: Fix dump FAIL for RVV (RISCV-V vector)
@ 2023-10-09 12:52 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-10-09 12:52 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1e9c53e625a7dec7501a8c04eedc45ce8cb6c01b
commit 1e9c53e625a7dec7501a8c04eedc45ce8cb6c01b
Author: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Date: Sun Oct 8 16:20:05 2023 +0800
TEST: Fix dump FAIL for RVV (RISCV-V vector)
As this showed: https://godbolt.org/z/3K9oK7fx3
ARM SVE 2 times for FOLD_EXTRACT_LAST wheras RVV 4 times.
This is because RISC-V doesn't enable vec_pack_trunc so we will failed conversion and fold_extract_last at the first time analysis.
Then we succeed at the second time.
So RVV has 4 times of showing "FOLD_EXTRACT_LAST:.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/vect-cond-reduc-4.c: Add vect_pack_trunc variant.
(cherry picked from commit 873586ebc565b6c8abbaaba58b900dbe984bf64f)
Diff:
---
gcc/testsuite/gcc.dg/vect/vect-cond-reduc-4.c | 3 ++-
1 file changed, 2 insertions(+), 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 8820075b1dc..8ea8c538713 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-cond-reduc-4.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-cond-reduc-4.c
@@ -42,6 +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 } } } */
+/* { 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" 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 } } } } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-09 12:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-09 12:52 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] TEST: Fix dump FAIL for RVV (RISCV-V vector) Jeff Law
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).