public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V Regression: Fix FAIL of pr65947-8.c for RVV
@ 2023-10-12 21:59 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-10-12 21:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9bad2aa45018e9a8de7162ea41ee443e30d6ce1d
commit 9bad2aa45018e9a8de7162ea41ee443e30d6ce1d
Author: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Date: Tue Oct 10 20:55:47 2023 +0800
RISC-V Regression: Fix FAIL of pr65947-8.c for RVV
This test is testing fold_extract_last pattern so it's more reasonable use
vect_fold_extract_last instead of specifying targets.
This is the vect_fold_extract_last property:
proc check_effective_target_vect_fold_extract_last { } {
return [expr { [check_effective_target_aarch64_sve]
|| [istarget amdgcn*-*-*]
|| [check_effective_target_riscv_v] }]
}
include ARM SVE/GCN/RVV.
It perfectly matches what we want and more reasonable, better maintainment.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/pr65947-8.c: Use vect_fold_extract_last.
(cherry picked from commit 8a361405375a82ed1975c72b9900a6775e0de037)
Diff:
---
gcc/testsuite/gcc.dg/vect/pr65947-8.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-8.c b/gcc/testsuite/gcc.dg/vect/pr65947-8.c
index d0426792e35..9ced4dbb69f 100644
--- a/gcc/testsuite/gcc.dg/vect/pr65947-8.c
+++ b/gcc/testsuite/gcc.dg/vect/pr65947-8.c
@@ -41,6 +41,6 @@ main (void)
return 0;
}
-/* { dg-final { scan-tree-dump-not "LOOP VECTORIZED" "vect" { target { ! { amdgcn*-*-* || aarch64_sve } } } } } */
-/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target { amdgcn*-*-* || aarch64_sve } } } } */
-/* { dg-final { scan-tree-dump "multiple types in double reduction or condition reduction" "vect" { target { ! { amdgcn*-*-* || aarch64_sve } } } } } */
+/* { dg-final { scan-tree-dump-not "LOOP VECTORIZED" "vect" { target { ! { vect_fold_extract_last } } } } } */
+/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target { vect_fold_extract_last } } } } */
+/* { dg-final { scan-tree-dump "multiple types in double reduction or condition reduction" "vect" { target { ! { vect_fold_extract_last } } } } } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-12 21:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-12 21:59 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V Regression: Fix FAIL of pr65947-8.c for RVV 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).