1 /* Test case to check if a call to a multiversioned function
2 is replaced with a direct call to the particular version when
3 the most specialized version's target attributes match the
6 In this program, foo is multiversioned but there is no default
7 function. This is an error if the call has to go through a
8 dispatcher. However, the call to foo in bar can be replaced
9 with a direct call to the popcnt version of foo. Hence, this
12 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
13 /* { dg-options "-O2" } */
16 int __attribute__ ((target ("sse")))
21 int __attribute__ ((target ("popcnt")))
27 int __attribute__ ((target ("popcnt")))