https://bugs.llvm.org/show_bug.cgi?id=46292
Bug ID: 46292
Summary: [X86] -march=native doesn't work on non-Intel/AMD CPUs
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
-march=native calls getHostCPUName tries various ways to determine a CPU name.
If the CPUID vendor says Intel we try a combination of Family/Model
identification followed by a fall back to guessing based on features. For AMD
we only look at Family/Model and if the family/model check fails we report
"generic". If CPUID isn't supported or the vendor isn't AMD or Intel we return
"generic".
Any case that returns "generic" will be rejected by clang -cc1.
We should probably do something sane and at least try to find SSE2 or long mode
before falling back to generic.
--
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