public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed][PATCH] middle-end: guard slp-11b.c testcase on vec_lanes
@ 2020-11-05 17:01 Tamar Christina
  0 siblings, 0 replies; only message in thread
From: Tamar Christina @ 2020-11-05 17:01 UTC (permalink / raw)
  To: gcc-patches; +Cc: nd, ook, rguenther

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

Hi All,

They say third time is the charm.. It looks like the testcase
disables the cost model and so AArch64 we end up being able to
do the permute but on x86 we can't.  However when analyzing the
testcase I didn't disable the cost model hence the difference.

So I now guard the testcase on vect_load_lanes as there's not a
"can do any permute" test directive and load lanes is what I will
be fixing up next year so this should catch it.

Regtested on aarch64-none-linux-gnu, x86_64-pc-linux-gnu (through the test harness) and no issues.

Committed under the obvious rule...

Thanks,
Tamar

gcc/testsuite/ChangeLog:

	* gcc.dg/vect/slp-11b.c: Guard statements.

-- 

[-- Attachment #2: rb13731.patch --]
[-- Type: text/x-diff, Size: 868 bytes --]

diff --git a/gcc/testsuite/gcc.dg/vect/slp-11b.c b/gcc/testsuite/gcc.dg/vect/slp-11b.c
index 0cc23770badf0e00ef98769a2dd14a92dca32cca..0aece8092a83ebd5fbdcd8257537a6bb3838a2c2 100644
--- a/gcc/testsuite/gcc.dg/vect/slp-11b.c
+++ b/gcc/testsuite/gcc.dg/vect/slp-11b.c
@@ -45,4 +45,5 @@ int main (void)
 
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_strided4 && vect_int_mult } } } } */
 /* { dg-final { scan-tree-dump-times "vectorized 0 loops" 1 "vect" { target { ! { vect_strided4 && vect_int_mult } } } } } */
-/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" { target { ! vect_load_lanes } } } } */
+/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { vect_load_lanes } } } } */


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

only message in thread, other threads:[~2020-11-05 17:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-05 17:01 [committed][PATCH] middle-end: guard slp-11b.c testcase on vec_lanes Tamar Christina

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