diff mbox series

[committed,testsuite] vect: disable bitmask tests on sparc

Message ID patch-15380-tamar@arm.com
State New
Headers show
Series [committed,testsuite] vect: disable bitmask tests on sparc | expand

Commit Message

Tamar Christina March 8, 2022, 11:26 a.m. UTC
Hi All,

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.

Regtested on aarch64-none-linux-gnu and no issues.

Committed under the obvious rule.

Thanks,
Tamar

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.

--- inline copy of patch -- 
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 fe4f677b64dc96862683faf503eb4900a01e7407..e9ec9603af62b67afcf82bc79f66005a5d146be1 100644


--
diff mbox series

Patch

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 fe4f677b64dc96862683faf503eb4900a01e7407..e9ec9603af62b67afcf82bc79f66005a5d146be1 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 b77f4d42450fe6496d277a4429f0e051f5178781..06c103d38858dd15c21afc13cfc459312c0b4f5b 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 30d36f452014cdb90eeccf6eb7f0a4cd6d8f8234..36ec5a8b19bb88ea69dcae0807b7c230510d3c25 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 58c0b9254badc2aeae01bd181a60830ed3eba44a..059bfb3ae62379c74b2075e3467c36fbb7d4077a 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 67119d32f751fa107b5d4927809e122c1bcbf3ef..5b4c3b6e19bcf17c03e93cec315f5940601e060e 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 58c0b9254badc2aeae01bd181a60830ed3eba44a..059bfb3ae62379c74b2075e3467c36fbb7d4077a 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 6e2da41bac127d82a6a83f3e99c6f68b77ac2b42..91b82fb598871090a8dc1d78b12bc051902f621e 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 5ef0f46c0b1709db633d3aa801cd7211baef31ef..59f339fb8c58590f74e03c002a12d6b6f7bd7f7b 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 22e5f885bebea9a141e9ffdd0ea7276a5a9046aa..84df8371be59195097b8008c45adf49a6f039aac 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 edff5428c5455f3b6597f561b53948ad21be05ad..b3e0b5ba92f4852913299ee1d69853a9cbd255c4 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 319d80e672f231e4a96d4d22bc68f6b9ea464a74..5fcde11ad4eb3f0056cc093f9f9a2ad953cbbdca 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" } */