3 // { dg-additional-options "-O2" }
5 struct S { S (); ~S (); };
7 int bar1 (int, int, float &, S &, int *, int, int &, int &, int &, int &, int &);
8 int bar2 (int, int, float &, S &, int *, int, int &, int &, int &, int &, int &);
9 int bar3 (int, int, float &, S &, int *, int, int &, int &, int &, int &, int &) __attribute__((noreturn));
10 int bar4 (int, int, float &, S &, int *, int, int &, int &, int &, int &, int &) __attribute__((noreturn));
12 #pragma omp declare simd notinbranch uniform (b, c, d, e) aligned (e : 16) \
13 linear (f : 2) linear (ref (g) : 1) \
14 linear (val (h) : 1) linear (uval (i) : 1) \
17 foo1 (int a, int b, float c, S d, int *e, int f, int &g, int &h, int &i, int j, int k)
19 return bar1 (a, b, c, d, e, f, g, h, i, j, k);
21 // { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } .-4 }
23 #pragma omp declare simd inbranch uniform (b, c, d, e) aligned (e : 16) \
24 linear (f : 2) linear (ref (g) : 1) \
25 linear (val (h) : 1) linear (uval (i) : 1) \
28 foo2 (int a, int b, float c, S d, int *e, int f, int &g, int &h, int &i, int j, int k)
30 return bar2 (a, b, c, d, e, f, g, h, i, j, k);
32 // { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } .-4 }
34 #pragma omp declare simd notinbranch uniform (b, c, d, e) aligned (e : 16) \
35 linear (f : 2) linear (ref (g) : 1) \
36 linear (val (h) : 1) linear (uval (i) : 1) \
39 foo3 (int a, int b, float c, S d, int *e, int f, int &g, int &h, int &i, int j, int k)
41 return bar3 (a, b, c, d, e, f, g, h, i, j, k);
43 // { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } .-4 }
45 #pragma omp declare simd inbranch uniform (b, c, d, e) aligned (e : 16) \
46 linear (f : 2) linear (ref (g) : 1) \
47 linear (val (h) : 1) linear (uval (i) : 1) \
50 foo4 (int a, int b, float c, S d, int *e, int f, int &g, int &h, int &i, int j, int k)
52 return bar4 (a, b, c, d, e, f, g, h, i, j, k);
54 // { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } .-4 }