public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] testsuite/104728 - constrain gcc.dg/vect/pr81196-2.c
@ 2022-03-01 14:24 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2022-03-01 14:24 UTC (permalink / raw)
  To: gcc-patches

We need to be able to reverse a vector for negative strides.

Tested on x86_64-unknown-linux-gnu, pushed.

2022-03-01  Richard Biener  <rguenther@suse.de>

	PR testsuite/104728
	* gcc.dg/vect/pr81196-2.c: Require vect_perm.
---
 gcc/testsuite/gcc.dg/vect/pr81196-2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/vect/pr81196-2.c b/gcc/testsuite/gcc.dg/vect/pr81196-2.c
index 8d5ce6bad53..b5861c17b3d 100644
--- a/gcc/testsuite/gcc.dg/vect/pr81196-2.c
+++ b/gcc/testsuite/gcc.dg/vect/pr81196-2.c
@@ -1,5 +1,7 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_int } */
+/* For negative stride we need to reverse the aligned load.  */
+/* { dg-require-effective-target vect_perm } */
 
 void b (int *p)
 {
-- 
2.34.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-01 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 14:24 [PATCH] testsuite/104728 - constrain gcc.dg/vect/pr81196-2.c Richard Biener

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