/* { dg-do compile } */ /* { dg-require-ifunc "" } */ /* { dg-options "-O0" } */ /* { dg-additional-options "-Wno-experimental-fmv-target" } */ int foo () { return 1; } __attribute__((target_version("dotprod"))) int foo () { return 3; } __attribute__((target_version("sve+sve2"))) int foo () { return 5; } __attribute__((target_version("sve+sve2"))) int foo (int) { return 6; } __attribute__((target_version("dotprod"))) int foo (int) { return 4; } int foo (int) { return 2; } int bar() { return foo (); } int bar(int x) { return foo (x); } /* When updating any of the symbol names in these tests, make sure to also update any tests for their absence in mv-symbolsN.C */ /* { dg-final { scan-assembler-times "\n_Z3foov\.default:\n" 1 } } */ /* { dg-final { scan-assembler-times "\n_Z3foov\._Mdotprod:\n" 1 } } */ /* { dg-final { scan-assembler-times "\n_Z3foov\._MsveMsve2:\n" 1 } } */ /* { dg-final { scan-assembler-times "\n_Z3foov\.resolver:\n" 1 } } */ /* { dg-final { scan-assembler-times "\n\tbl\t_Z3foov\n" 1 } } */ /* { dg-final { scan-assembler-times "\n\t\.type\t_Z3foov, %gnu_indirect_function\n" 1 } } */ /* { dg-final { scan-assembler-times "\n\t\.set\t_Z3foov,_Z3foov\.resolver\n" 1 } } */ /* { dg-final { scan-assembler-times "\n_Z3fooi\.default:\n" 1 } } */ /* { dg-final { scan-assembler-times "\n_Z3fooi\._Mdotprod:\n" 1 } } */ /* { dg-final { scan-assembler-times "\n_Z3fooi\._MsveMsve2:\n" 1 } } */ /* { dg-final { scan-assembler-times "\n_Z3fooi\.resolver:\n" 1 } } */ /* { dg-final { scan-assembler-times "\n\tbl\t_Z3fooi\n" 1 } } */ /* { dg-final { scan-assembler-times "\n\t\.type\t_Z3fooi, %gnu_indirect_function\n" 1 } } */ /* { dg-final { scan-assembler-times "\n\t\.set\t_Z3fooi,_Z3fooi\.resolver\n" 1 } } */