* gcc.dg/vect/tree-vect.h (check_vect): Handle __SSE4_2__.
From-SVN: r237759
(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>
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__)
/* 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"
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-*-* } } } } */