slp-perm-9.c: Use vect_sizes_16B_8B.
authorTamar Christina <tamar.christina@arm.com>
Thu, 5 Oct 2017 15:17:39 +0000 (15:17 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Thu, 5 Oct 2017 15:17:39 +0000 (15:17 +0000)
gcc/testsuite/
2017-10-05  Tamar Christina  <tamar.christina@arm.com>

* gcc.dg/vect/slp-perm-9.c: Use vect_sizes_16B_8B.
* lib/target-supports.exp (vect_sizes_16B_8B): New.

gcc/
2017-10-05  Tamar Christina  <tamar.christina@arm.com>

* doc/sourcebuild.texi (vect_sizes_16B_8B, vect_sizes_32B_16B): New.

From-SVN: r253452

gcc/ChangeLog
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/slp-perm-9.c
gcc/testsuite/lib/target-supports.exp

index 43bb14735511a877150e4430206f568b945cafc5..777340cdce73f0dcc9f05d3de5a4c3bbc0d89cbc 100644 (file)
@@ -1,3 +1,7 @@
+2017-10-05  Tamar Christina  <tamar.christina@arm.com>
+
+       * doc/sourcebuild.texi (vect_sizes_16B_8B, vect_sizes_32B_16B): New.
+
 2017-10-05  Jan Hubicka <hubicka@ucw.cz>
 
        * i386.c (znver1_cost): Set branch_cost to 3 (instead of 2)
index 1646d0a99911aa7b2e66762e5907fbb0454ed00d..a2f0429119499297ec5ec6ecea2ba46512f02426 100644 (file)
@@ -1519,6 +1519,12 @@ Target supports conversion from @code{double} to @code{signed int}.
 
 @item vect_max_reduc
 Target supports max reduction for vectors.
+
+@item vect_sizes_16B_8B
+Target supports 16- and 8-bytes vectors.
+
+@item vect_sizes_32B_16B
+Target supports 32- and 16-bytes vectors.
 @end table
 
 @subsubsection Thread Local Storage attributes
index bfb82c075e28de9a020eaf20a557594d3dcb9b9b..5b7919fc956b41ca22814d5fa426331882dda734 100644 (file)
@@ -1,4 +1,9 @@
-2017-09-28  Tamar Christina  <tamar.christina@arm.com>
+2017-10-05  Tamar Christina  <tamar.christina@arm.com>
+
+       * gcc.dg/vect/slp-perm-9.c: Use vect_sizes_16B_8B.
+       * lib/target-supports.exp (vect_sizes_16B_8B): New.
+
+2017-10-05  Tamar Christina  <tamar.christina@arm.com>
 
        * gcc.dg/vect/vect-align-1.c: Fix vect_hw_misalign condition.
        * gcc.dg/vect/vect-align-2.c: Likewise.
index 4d9c11dcc476a8023b3eaac2ae76cc01bd0db182..b9b5a3b87ad031a5ab7421efce2c2b0fdf9145f3 100644 (file)
@@ -54,8 +54,8 @@ int main (int argc, const char* argv[])
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect"  { target { {! vect_perm } || {! vect_sizes_32B_16B } } } } } */
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect"  { target { { vect_perm } && { vect_sizes_32B_16B } } } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect"  { target { {! vect_perm } || {! vect_sizes_16B_8B } } } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect"  { target { { vect_perm } && { vect_sizes_16B_8B } } } } } */
 /* { dg-final { scan-tree-dump-times "permutation requires at least three vectors" 1 "vect" { target vect_perm_short } } } */
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" { target { {! vect_perm } || {! vect_sizes_32B_16B } } } } } */
 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { { vect_perm } && { vect_sizes_32B_16B } } } } } */
index b6f9e51c4817cf8235c8e33b14e2763308eb482a..fbe8f2a76af739c8e211c708f79717a60a72b87a 100644 (file)
@@ -7671,6 +7671,19 @@ proc check_effective_target_vect_sizes_32B_16B { } {
   }
 }
 
+# Return true if 16- and 8-bytes vectors are available.
+
+proc check_effective_target_vect_sizes_16B_8B { } {
+  if { [check_avx_available]
+       || [is-effective-target arm_neon]
+       || [istarget aarch64*-*-*] } {
+     return 1;
+  } else {
+    return 0;
+  }
+}
+
+
 # Return true if 128-bits vectors are preferred even if 256-bits vectors
 # are available.