[gcc r11-4744] middle-end: guard slp-11b.c testcase on vec_lanes

Tamar Christina tnfchris@gcc.gnu.org
Thu Nov 5 17:03:40 GMT 2020


https://gcc.gnu.org/g:9f87fcf3034d0e774c4dee380f9113d1453e0e72

commit r11-4744-g9f87fcf3034d0e774c4dee380f9113d1453e0e72
Author: Tamar Christina <tamar.christina@arm.com>
Date:   Thu Nov 5 16:59:30 2020 +0000

    middle-end: guard slp-11b.c testcase on vec_lanes
    
    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.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.dg/vect/slp-11b.c: Guard statements.

Diff:
---
 gcc/testsuite/gcc.dg/vect/slp-11b.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vect/slp-11b.c b/gcc/testsuite/gcc.dg/vect/slp-11b.c
index 0cc23770bad..0aece8092a8 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 } } } } */


More information about the Gcc-cvs mailing list