(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
vect/
simd-clone-3.cc
// { 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];
}