From 936ff03092aef07309cc83b6646ba54301010d89 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Fri, 24 Jun 2016 15:53:13 +0200 Subject: [PATCH] tree-vect.h (check_vect): Handle __SSE4_2__. * gcc.dg/vect/tree-vect.h (check_vect): Handle __SSE4_2__. From-SVN: r237759 --- gcc/testsuite/ChangeLog | 3 +-- gcc/testsuite/gcc.dg/vect/tree-vect.h | 2 ++ gcc/testsuite/gcc.dg/vect/vect-bool-cmp.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e13be243ba8..e90595d2b7b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -97,10 +97,9 @@ (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 diff --git a/gcc/testsuite/gcc.dg/vect/tree-vect.h b/gcc/testsuite/gcc.dg/vect/tree-vect.h index faf91d51238..3a8b8d33d2e 100644 --- a/gcc/testsuite/gcc.dg/vect/tree-vect.h +++ b/gcc/testsuite/gcc.dg/vect/tree-vect.h @@ -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__) diff --git a/gcc/testsuite/gcc.dg/vect/vect-bool-cmp.c b/gcc/testsuite/gcc.dg/vect/vect-bool-cmp.c index 35d2a3ca02e..8618a860642 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-bool-cmp.c +++ b/gcc/testsuite/gcc.dg/vect/vect-bool-cmp.c @@ -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-*-* } } } } */ -- 2.30.2