public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r15-763] RISC-V: Enable vectorization for vect-early-break_124-pr114403.c
@ 2024-05-22 0:58 Li Xu
0 siblings, 0 replies; only message in thread
From: Li Xu @ 2024-05-22 0:58 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ffab721f3c9ecbb9831844d844ad257b69a77993
commit r15-763-gffab721f3c9ecbb9831844d844ad257b69a77993
Author: xuli <xuli1@eswincomputing.com>
Date: Mon May 20 01:56:47 2024 +0000
RISC-V: Enable vectorization for vect-early-break_124-pr114403.c
Because "targetm.slow_unaligned_access" is set to true by default
(aka -mtune=rocket) for RISC-V, it causes the __builtin_memcpy with
8 bytes failed to folded into int64 assignment during ccp1.
So adding "-mtune=generic-ooo" to the RISC-V target can vectorize
vect-early-break_124-pr114403.c.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/vect-early-break_124-pr114403.c: Enable vectrization for RISC-V target.
Diff:
---
gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c b/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c
index 101ae1e0eaa..610b951b262 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-early-break_124-pr114403.c
@@ -1,8 +1,9 @@
/* { dg-add-options vect_early_break } */
/* { dg-require-effective-target vect_early_break_hw } */
/* { dg-require-effective-target vect_long_long } */
+/* { dg-additional-options "-mtune=generic-ooo" { target riscv*-*-* } } */
-/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { xfail riscv*-*-* } } } */
+/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
#include "tree-vect.h"
@@ -74,4 +75,3 @@ int main ()
return 0;
}
-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-22 0:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-22 0:58 [gcc r15-763] RISC-V: Enable vectorization for vect-early-break_124-pr114403.c Li Xu
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).