gcc/testsuite/gcc.target/i386/pr89684.c
raw| 1 | /* PR ipa/89684 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-require-ifunc "" } */ |
| 4 | |
| 5 | void bar (int, void (*) (void)); |
| 6 | |
| 7 | __attribute__((target_clones ("default", "avx"))) |
| 8 | void foo (void) |
| 9 | { |
| 10 | bar (0, foo); |
| 11 | bar (0, foo); |
| 12 | } |
| 13 | |
| 14 | __attribute__((target_clones ("default", "avx", "avx2"))) |
| 15 | void baz (void) |
| 16 | { |
| 17 | bar (0, foo); |
| 18 | bar (0, foo); |
| 19 | bar (0, foo); |
| 20 | bar (0, foo); |
| 21 | bar (0, foo); |
| 22 | bar (0, foo); |
| 23 | } |