1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* { dg-do compile } */ /* { dg-require-ifunc "" } */ /* { dg-options "-fno-inline" } */ /* { dg-final { scan-assembler-times "foo.ifunc" 6 } } */ __attribute__((target_clones("default","avx","avx2"))) int foo () { return 10; } __attribute__((target_clones("default","avx","avx2"))) int bar () { return -foo (); }