1  /* { dg-options "-fopenmp -O2" } */
       2  /* { dg-additional-options "-fdump-ipa-simdclone-details" } */
       3  
       4  /* Test that host simd clones are not generated for functions with 
       5     "declare target" by default at -O2.  */
       6  
       7  #pragma omp declare target
       8  __attribute__ ((__noinline__)) int addit (int a, int b)
       9  {
      10    return a + b;
      11  }
      12  #pragma omp end declare target
      13  
      14  void callit (int *a, int *b, int *c)
      15  {
      16    int i;
      17    #pragma omp for simd
      18    for (i = 0; i < 16; i++)
      19      c[i] = addit (a[i], b[i]);
      20  }
      21  
      22  /* { dg-final { scan-ipa-dump-not "Generated .* clone" "simdclone" { target x86_64-*-* } } } */