From 5f07095d22f58572c06997aa6d4f3bc456e1925d Mon Sep 17 00:00:00 2001 From: Tamar Christina Date: Tue, 8 Mar 2022 11:32:59 +0000 Subject: [PATCH] vect: disable bitmask tests on sparc These testcases declare requiring vect_int which sparc declares as well however sparc doesn't have an optab to vectorize comparisons so these testcases fail to vectorize and so the tests fail. As such best coure of action is to just skip them on sparc as comparisons are somewhat expected from a target that can do SIMD. gcc/testsuite/ChangeLog: PR tree-optimization/104755 * gcc.dg/vect/vect-bic-bitmask-10.c: Disable sparc. * gcc.dg/vect/vect-bic-bitmask-11.c: Likewise. * gcc.dg/vect/vect-bic-bitmask-12.c: Likewise. * gcc.dg/vect/vect-bic-bitmask-2.c: Likewise. * gcc.dg/vect/vect-bic-bitmask-23.c: Likewise. * gcc.dg/vect/vect-bic-bitmask-3.c: Likewise. * gcc.dg/vect/vect-bic-bitmask-4.c: Likewise. * gcc.dg/vect/vect-bic-bitmask-5.c: Likewise. * gcc.dg/vect/vect-bic-bitmask-6.c: Likewise. * gcc.dg/vect/vect-bic-bitmask-8.c: Likewise. * gcc.dg/vect/vect-bic-bitmask-9.c: Likewise. --- gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-10.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-11.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-12.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-2.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-23.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-3.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-4.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-5.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-6.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-8.c | 1 + gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-9.c | 1 + 11 files changed, 11 insertions(+) diff --git a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-10.c b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-10.c index fe4f677..e9ec960 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-10.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-10.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */ /* { dg-do run } */ /* { dg-additional-options "-O3 -save-temps -fdump-tree-dce -w" } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-11.c b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-11.c index b77f4d4..06c103d 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-11.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-11.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */ /* { dg-do run } */ /* { dg-additional-options "-O3 -save-temps -fdump-tree-dce -w" } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-12.c b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-12.c index 30d36f4..36ec5a8 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-12.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-12.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */ /* { dg-do assemble } */ /* { dg-additional-options "-O3 -fdump-tree-dce -w" } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-2.c b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-2.c index 58c0b92..059bfb3 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-2.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-2.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */ /* { dg-do run } */ /* { dg-additional-options "-O3 -save-temps -fdump-tree-dce -w" } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-23.c b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-23.c index 67119d3..5b4c3b6 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-23.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-23.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */ /* { dg-do assemble } */ /* { dg-additional-options "-O1 -fdump-tree-dce -w" } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-3.c b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-3.c index 58c0b92..059bfb3 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-3.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-3.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */ /* { dg-do run } */ /* { dg-additional-options "-O3 -save-temps -fdump-tree-dce -w" } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-4.c b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-4.c index 6e2da41..91b82fb 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-4.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-4.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */ /* { dg-do run } */ /* { dg-additional-options "-O3 -save-temps -fdump-tree-dce -w" } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-5.c b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-5.c index 5ef0f46..59f339f 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-5.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-5.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */ /* { dg-do run } */ /* { dg-additional-options "-O3 -save-temps -fdump-tree-dce -w" } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-6.c b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-6.c index 22e5f88..84df837 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-6.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-6.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */ /* { dg-do run } */ /* { dg-additional-options "-O3 -save-temps -fdump-tree-dce -w" } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-8.c b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-8.c index edff542..b3e0b5b 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-8.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-8.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */ /* { dg-do run } */ /* { dg-additional-options "-O3 -save-temps -fdump-tree-dce -w" } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-9.c b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-9.c index 319d80e..5fcde11 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-9.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bic-bitmask-9.c @@ -1,3 +1,4 @@ +/* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */ /* { dg-do run } */ /* { dg-additional-options "-O3 -save-temps -fdump-tree-dce -w" } */ -- 2.7.4