https://bugs.llvm.org/show_bug.cgi?id=40748
Bug ID: 40748
Summary: Can't call multiversioned function from other
multiversioned function
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Hi,
GCC accepts this code, Clang (including version 8) doesn't:
__attribute__((target("sse2"))) int inner();
__attribute__((target("avx2"))) int inner();
__attribute__((target("sse2"))) int outer();
__attribute__((target("sse2")))
int outer()
{
return inner();
}
test.cc:9:9: error: no matching function for call to 'inner'
return inner();
^~~~~
1 error generated.
I don't see how this is supposed to work; the only way I can get it to compile
with Clang is to remove the avx2 version, but that sort of removes the point of
multiversioning.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs