https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117987

            Bug ID: 117987
           Summary: Function multiversioning does not respect decl asms
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rsandifo at gcc dot gnu.org
                CC: acarlotti at gcc dot gnu.org, Alfie.Richards at arm dot com
  Target Milestone: ---

For:

int f() asm("foo");
int f() { return 1; }
__attribute__((target_version("sve"))) int f() { return 2; }
int g() { return f(); }

(aarch64 C++) and:

int f() asm("foo");
__attribute__((target("default"))) int f() { return 1; }
__attribute__((target("avx2"))) int f() { return 2; }
int g() { return f(); }

(x86 C++), the dispatcher is called "f" rather than "foo", and "g" similarly
calls "f" rather than "foo".

Reply via email to