1 /* { dg-do run } */ 2 /* { dg-require-ifunc "" } */ 3 4 __attribute__((target_clones("avx","arch=slm","arch=core-avx2","default"))) 5 int foo()6foo () 7 { 8 return -2; 9 } 10 11 int bar()12bar () 13 { 14 return 2; 15 } 16 17 int main()18main () 19 { 20 int r = 0; 21 r += bar (); 22 r += foo (); 23 r += bar (); 24 r += foo (); 25 r += bar (); 26 return r - 2; 27 } 28