We require a vector-by-scalar shift, there's no appropriate target
selector so use SSE2 for now.

Tested on x86_64-linux, pushed.

2020-12-08  Richard Biener  <rguent...@suse.de>

        PR testsuite/95900
        * gcc.dg/vect/bb-slp-pr95866.c: Require sse2 for the
        BIT_FIELD_REF match.
---
 gcc/testsuite/gcc.dg/vect/bb-slp-pr95866.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-pr95866.c 
b/gcc/testsuite/gcc.dg/vect/bb-slp-pr95866.c
index edcaf17728e..14826b53cab 100644
--- a/gcc/testsuite/gcc.dg/vect/bb-slp-pr95866.c
+++ b/gcc/testsuite/gcc.dg/vect/bb-slp-pr95866.c
@@ -13,5 +13,5 @@ void foo()
 }
 
 /* The scalar shift argument should be extracted from the available vector.  */
-/* { dg-final { scan-tree-dump "BIT_FIELD_REF" "slp2" } } */
+/* { dg-final { scan-tree-dump "BIT_FIELD_REF" "slp2" { target sse2 } } } */
 /* { dg-final { scan-tree-dump "optimized: basic block" "slp2" } } */
-- 
2.26.2

Reply via email to