mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 11:46:42 +00:00
Enable automatic detection of FMA3 support to allow intrinsics to be used.
llvm-svn: 157805
This commit is contained in:
parent
02e5a00a70
commit
04dc566bb2
@ -205,12 +205,10 @@ void X86Subtarget::AutoDetectSubtargetFeatures() {
|
||||
HasPCLMUL = true;
|
||||
ToggleFeature(X86::FeaturePCLMUL);
|
||||
}
|
||||
// FMA3 autodetection is switched off until we have a special flag
|
||||
// in code generator
|
||||
//if ((ECX >> 12) & 0x1) {
|
||||
// HasFMA3 = true;
|
||||
// ToggleFeature(X86::FeatureFMA3);
|
||||
//}
|
||||
if ((ECX >> 12) & 0x1) {
|
||||
HasFMA3 = true;
|
||||
ToggleFeature(X86::FeatureFMA3);
|
||||
}
|
||||
if (IsIntel && ((ECX >> 22) & 0x1)) {
|
||||
HasMOVBE = true;
|
||||
ToggleFeature(X86::FeatureMOVBE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user