blob: 1057a7eb5f6a51dcf5b756af665e7af368e0774c [file] [log] [blame]
// { dg-require-effective-target vect_simd_clones }
// { dg-additional-options "-fopenmp-simd -fno-inline" }
// { dg-additional-options "-mavx" { target avx_runtime } }
// { dg-additional-sources "simd-clone-2.cc" }
#include "simd-clone-2.h"
#pragma omp declare simd notinbranch
int
S::f0 (int x)
{
return x + s;
}
#pragma omp declare simd notinbranch uniform(this)
int
S::f1 (int x)
{
return x + s;
}
#pragma omp declare simd notinbranch linear(this:sizeof(this)/sizeof(this))
int
S::f2 (int x)
{
return x + this->S::s;
}
#pragma omp declare simd uniform(this) aligned(this:32) linear(x)
int
T::f3 (int x)
{
return t[x];
}