Debian Codegraph @

gcc/testsuite/g++.dg/vect/simd-clone-5.cc

raw
1 // { dg-require-effective-target vect_simd_clones }
2 // { dg-additional-options "-fopenmp-simd -fno-inline" }
3 // { dg-additional-options "-mavx" { target avx_runtime } }
4 // { dg-additional-sources "simd-clone-4.cc" linkonly }
5
6 #include "simd-clone-4.h"
7
8 #pragma omp declare simd notinbranch
9 template <int N>
10 int
11 S<N>::f0 (int x)
12 {
13 return x + s;
14 }
15
16 #pragma omp declare simd notinbranch uniform(this)
17 template <int N>
18 int
19 S<N>::f1 (int x)
20 {
21 return x + s;
22 }
23
24 #pragma omp declare simd notinbranch linear(this:sizeof(this)/sizeof(this))
25 template <int N>
26 int
27 S<N>::f2 (int x)
28 {
29 return x + this->S::s;
30 }
31
32 #pragma omp declare simd uniform(this) aligned(this:32) linear(x)
33 template <int N>
34 int
35 T<N>::f3 (int x)
36 {
37 return t[x];
38 }
39
40 template struct S<0>;
41 template struct T<0>;