[llvm-bugs] [Bug 46292] New: [X86] -march=native doesn't work on non-Intel/AMD CPUs
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 11 15:08:17 PDT 2020
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: unassignedbugs at nondot.org
Reporter: craig.topper at gmail.com
CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
llvm-dev at redking.me.uk, spatel+llvm at rotateright.com
-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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200611/02f37a82/attachment.html>
More information about the llvm-bugs
mailing list