From 377eaca734da58430ab9b37300f730e86ae8f04a Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Sat, 14 May 2016 11:07:13 +0200 Subject: [PATCH] i * gcc.dg/vect/pr66636.c (foo): Add __attribute__((noinline,noclone)). From-SVN: r236238 --- gcc/testsuite/ChangeLog | 1 + gcc/testsuite/gcc.dg/vect/pr66636.c | 3 ++- gcc/testsuite/gcc.dg/vect/tree-vect.h | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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; -- 2.30.2