summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/simd-clones-7.c
blob: ef6fa113c1ab03981c17079e8b60a4ebdde726d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-fopenmp -w" } */

int array[1000];

#pragma omp declare simd notinbranch simdlen(4)
void foo (int *a, int b)
{
  a[b] = 555;
}

#pragma omp declare simd notinbranch simdlen(4)
void bar (int *a)
{
  *a = 555;
}