1 /* PR ipa/81214. */ 2 /* { dg-do compile } */ 3 /* { dg-require-ifunc "" } */ 4 5 __attribute__((target_clones("avx","arch=slm","arch=core-avx2","default"))) 6 static int foo()7foo () 8 { 9 return -2; 10 } 11 main()12int main() 13 { 14 return foo(); 15 } 16 17 /* { dg-final { scan-assembler "\t.globl\tfoo\\..*\\.ifunc" } } */ 18 /* { dg-final { scan-assembler "foo.resolver:" } } */ 19 /* { dg-final { scan-assembler "foo\\..*\\.ifunc, @gnu_indirect_function" } } */ 20