1 // Test case to check if Multiversioning works for AES
3 // { dg-do run { target i?86-*-* x86_64-*-* } }
4 // { dg-require-ifunc "" }
5 // { dg-options "-O2" }
9 // Check if AES feature selection works
10 int foo () __attribute__((target("default")));
11 int foo () __attribute__((target("aes")));
17 if (__builtin_cpu_supports ("aes"))
25 int __attribute__ ((target("default")))
31 int __attribute__ ((target("aes")))