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