target-supports.exp (check_effective_target_vect_usad_char): Add PowerPC support.
authorPat Haugen <pthaugen@us.ibm.com>
Wed, 20 Feb 2019 17:50:28 +0000 (17:50 +0000)
committerPat Haugen <pthaugen@gcc.gnu.org>
Wed, 20 Feb 2019 17:50:28 +0000 (17:50 +0000)
* lib/target-supports.exp (check_effective_target_vect_usad_char):
Add PowerPC support.
* gcc.dg/vect/slp-reduc-sad.c: Update scan string.
* gcc.dg/vect/vect-reduc-sad.c: Likewise.

From-SVN: r269043

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/slp-reduc-sad.c
gcc/testsuite/gcc.dg/vect/vect-reduc-sad.c
gcc/testsuite/lib/target-supports.exp

index d7240090c036bbb2dcf04260db2a2d5a9048b305..7a407cdba2082ce81d62682de6617475049b045e 100644 (file)
@@ -1,3 +1,10 @@
+2019-02-20  Pat Haugen  <pthaugen@us.ibm.com>
+
+       * lib/target-supports.exp (check_effective_target_vect_usad_char):
+       Add PowerPC support.
+       * gcc.dg/vect/slp-reduc-sad.c: Update scan string.
+       * gcc.dg/vect/vect-reduc-sad.c: Likewise.
+
 2019-02-20 Andre Vieira  <andre.simoesdiasvieira@arm.com>
 
        PR target/86487
index 5f7a3e09f60cec6c4559d5ddf648f6954febbd1a..15b286acdbdc2863867affe04d288185e43d8bf8 100644 (file)
@@ -58,6 +58,6 @@ main ()
   return 0;
 }
 
-/* { dg-final { scan-tree-dump "vect_recog_sad_pattern: detected" "vect" } } */
+/* { dg-final { scan-tree-dump "sad pattern recognized" "vect" } } */
 /* { dg-final { scan-tree-dump "vectorizing stmts using SLP" "vect" } } */
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
index 2d8bc7c86014f17e3c89c98a9ff3dfef6b0b275e..a033a7d27d191ce593657c6fc4d0d14a25dcc7e2 100644 (file)
@@ -49,6 +49,6 @@ main (void)
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-times "vect_recog_sad_pattern: detected" 1 "vect" } } */
+/* { dg-final { scan-tree-dump-times "sad pattern recognized" 1 "vect" } } */
 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
 
index 94cb319bc123d17a3493da88cb15d9fb2c6cf194..bf64b2b29e19e0aaae5e90805003827400e41b4a 100644 (file)
@@ -6047,7 +6047,9 @@ proc check_effective_target_vect_usad_char { } {
       expr { [istarget i?86-*-*]
              || [istarget x86_64-*-*]
              || ([istarget aarch64*-*-*]
-                 && ![check_effective_target_aarch64_sve])}}]
+                 && ![check_effective_target_aarch64_sve])
+             || ([istarget powerpc*-*-*]
+                 && [check_p9vector_hw_available])}}]
 }
 
 # Return 1 if the target plus current options supports both signed