tree-vect.h (check_vect): Handle __SSE4_2__.
authorUros Bizjak <ubizjak@gmail.com>
Fri, 24 Jun 2016 13:53:13 +0000 (15:53 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 24 Jun 2016 13:53:13 +0000 (15:53 +0200)
* gcc.dg/vect/tree-vect.h (check_vect): Handle __SSE4_2__.

From-SVN: r237759

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/tree-vect.h
gcc/testsuite/gcc.dg/vect/vect-bool-cmp.c

index e13be243ba8cc1c9d65ad5db9fcd12ca5a860702..e90595d2b7b29d6ecdabb64b13f73d0a960ecd65 100644 (file)
        (check_effective_target_sse4_runtime): Ditto.
        * g++.dg/pr71488.C (dg-additional-options): Use -msse4 instead of
        -march=westmere for sse4_runtime targets.
+       * gcc.dg/vect/tree-vect.h (check_vect): Handle __SSE4_2__.
        * gcc.dg/vect/vect-bool-cmp.c: Include "tree-vect.h".
-       (dg-additional-options): Use for sse4_runtime targets.
        (main): Call check_vect ().
-       (dg-final): Perform scan only for sse4_runtime targets.
 
 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
 
index faf91d512380ca85f6758979c57a54fadf213c3d..3a8b8d33d2e5a3d99c562850d3a4a2aeb1b3a8f4 100644 (file)
@@ -42,6 +42,8 @@ check_vect (void)
     want_level = 7, want_b = bit_AVX2;
 # elif defined(__AVX__)
     want_level = 1, want_c = bit_AVX;
+# elif defined(__SSE4_2__)
+    want_level = 1, want_c = bit_SSE4_2;
 # elif defined(__SSE4_1__)
     want_level = 1, want_c = bit_SSE4_1;
 # elif defined(__SSSE3__)
index 35d2a3ca02e948cba9c83467cd0e34e44dbe0b09..8618a86064299f8c79c1b5350e6369901e4d6df1 100644 (file)
@@ -1,7 +1,7 @@
 /* PR tree-optimization/71488 */
 /* { dg-require-effective-target vect_int } */
 /* { dg-require-effective-target vect_pack_trunc } */
-/* { dg-additional-options "-msse4" { target sse4_runtime } } */
+/* { dg-additional-options "-msse4" { target { i?86-*-* x86_64-*-* } } } */
 
 #include "tree-vect.h"
 
@@ -253,4 +253,4 @@ main (int argc, char **argv)
   check (res, ne);
 }
 
-/* { dg-final { scan-tree-dump-times "VECTORIZED" 18 "vect" { target sse4_runtime } } } */
+/* { dg-final { scan-tree-dump-times "VECTORIZED" 18 "vect" { target { i?86-*-* x86_64-*-* } } } } */