rtl: Validate subreg info when optimizing vec_select.
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / pr83977-1.c
blobbcc42ddbb81d17e94244510b88c96611cba72851
1 /* PR middle-end/83977 */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-O2 -w" } */
5 struct S { int a, b, c; };
7 #pragma omp declare simd uniform(z) linear(v:1)
8 __attribute__((noinline)) static int
9 foo (int x, int y, struct S z, int u, int v)
11 return x + y + z.a;
14 int
15 bar (int x, int y, int z)
17 struct S s = { z, 1, 1 };
18 return foo (x, y, s, 0, 0);