diff options
author | Craig Topper <craig.topper@intel.com> | 2019-02-13 18:21:36 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-02-13 18:21:36 +0000 |
commit | 6829ca975d699e74b0bcdffd3c914a6831cf8a69 (patch) | |
tree | cff413da3706e4fa7e0240202899195f7f580057 /llvm/lib/Support/Host.cpp | |
parent | f688293393f1e481d1aef3b10cd35bb37c1ea7f8 (diff) | |
download | bcm5719-llvm-6829ca975d699e74b0bcdffd3c914a6831cf8a69.tar.gz bcm5719-llvm-6829ca975d699e74b0bcdffd3c914a6831cf8a69.zip |
[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.
llvm-svn: 353963
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 1b907bc6284..367fd188a1f 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -1259,6 +1259,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) { 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; |