[llvm] r353963 - [X86] Add 'fxsr' to the getHostCPUFeatures detection code.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 13 10:21:36 PST 2019
Author: ctopper
Date: Wed Feb 13 10:21:36 2019
New Revision: 353963
URL: http://llvm.org/viewvc/llvm-project?rev=353963&view=rev
Log:
[X86] Add 'fxsr' to the getHostCPUFeatures detection code.
We implicitly mark this feature as enabled when the target is 64-bits, but our detection code for -march=native didn't support it so you can't detect it on 32-bit targets.
Modified:
llvm/trunk/lib/Support/Host.cpp
Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=353963&r1=353962&r2=353963&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Wed Feb 13 10:21:36 2019
@@ -1259,6 +1259,7 @@ bool sys::getHostCPUFeatures(StringMap<b
Features["cmov"] = (EDX >> 15) & 1;
Features["mmx"] = (EDX >> 23) & 1;
+ Features["fxsr"] = (EDX >> 24) & 1;
Features["sse"] = (EDX >> 25) & 1;
Features["sse2"] = (EDX >> 26) & 1;
More information about the llvm-commits
mailing list