From: Uros Bizjak Date: Sat, 14 May 2016 09:07:13 +0000 (+0200) Subject: i * gcc.dg/vect/pr66636.c (foo): Add __attribute__((noinline,noclone)). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=377eaca734da58430ab9b37300f730e86ae8f04a;p=gcc.git i * gcc.dg/vect/pr66636.c (foo): Add __attribute__((noinline,noclone)). From-SVN: r236238 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9a8cd750ea6..3916695f6f7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -18,6 +18,7 @@ * gcc.dg/vect/tree-vect.h (check_vect): Handle AVX2, remove XOP handling. + * gcc.dg/vect/pr66636.c (foo): Add __attribute__((noinline,noclone)). 2016-05-13 Nathan Sidwell diff --git a/gcc/testsuite/gcc.dg/vect/pr66636.c b/gcc/testsuite/gcc.dg/vect/pr66636.c index 7e6e5f6752e..c0733ffa5a3 100644 --- a/gcc/testsuite/gcc.dg/vect/pr66636.c +++ b/gcc/testsuite/gcc.dg/vect/pr66636.c @@ -6,7 +6,8 @@ extern void abort (void); struct X { double x; double y; }; -void foo (struct X *x, double px, int s) +void __attribute__((noinline,noclone)) +foo (struct X *x, double px, int s) { int i; for (i = 0; i < 256; ++i) diff --git a/gcc/testsuite/gcc.dg/vect/tree-vect.h b/gcc/testsuite/gcc.dg/vect/tree-vect.h index 21bd1148b4b..faf91d51238 100644 --- a/gcc/testsuite/gcc.dg/vect/tree-vect.h +++ b/gcc/testsuite/gcc.dg/vect/tree-vect.h @@ -38,7 +38,7 @@ check_vect (void) /* Determine what instruction set we've been compiled for, and detect that we're running with it. This allows us to at least do a compile check for, e.g. SSE4.1 when the machine only supports SSE2. */ -#if defined(__AVX2__) +# if defined(__AVX2__) want_level = 7, want_b = bit_AVX2; # elif defined(__AVX__) want_level = 1, want_c = bit_AVX;