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