aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/vect-simd-clone-21.c
blob: 49c52fb59bd191c330b4ff65dc0196f33fb12a03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-require-effective-target vect_simd_clones } */
/* { dg-additional-options "-fopenmp-simd" } */

#pragma omp declare simd simdlen(4) inbranch
__attribute__((noinline)) int
foo (int a, int b)
{
  return a + b;
}

/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 4 "vect" { target i?86-*-* x86_64-*-* } } } */
/* if-conversion shouldn't need to resort to masked stores for the result
   array created by OMP lowering since that's automatic and does not have
   its address taken.  */
/* { dg-final { scan-tree-dump-not "MASK_STORE" "vect" } } */