]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/gomp/target-simd-clone-7.c
1 /* { dg-options "-fopenmp -O2" } */
2 /* { dg-additional-options "-fopenmp-target-simd-clone=any -fdump-ipa-simdclone-details" } */
4 /* Test that simd clones are not generated for functions with
5 "declare target" that have no callers in the same compilation unit. */
7 #pragma omp declare target
8 __attribute__ ((__noinline__
)) int addit (int a
, int b
)
12 #pragma omp end declare target
14 /* { dg-final { scan-ipa-dump "function is not used" "simdclone" { target x86_64-*-* } } } */
15 /* { dg-final { scan-ipa-dump-not "Generated .* clone" "simdclone" { target x86_64-*-* } } } */