fma requires osxsave

This commit is contained in:
gnzlbg 2018-06-26 11:30:26 +02:00 committed by gnzlbg
parent ae64d7a468
commit a0a6e784fb

View file

@ -116,7 +116,6 @@ fn detect_features() -> cache::Initializer {
enable(proc_info_ecx, 0, Feature::sse3);
enable(proc_info_ecx, 9, Feature::ssse3);
enable(proc_info_ecx, 12, Feature::fma);
enable(proc_info_ecx, 19, Feature::sse4_1);
enable(proc_info_ecx, 20, Feature::sse4_2);
enable(proc_info_ecx, 23, Feature::popcnt);
@ -189,6 +188,9 @@ fn detect_features() -> cache::Initializer {
enable(proc_extended_state1_eax, 3, Feature::xsaves);
}
// FMA (uses 256-bit wide registers):
enable(proc_info_ecx, 12, Feature::fma);
// And AVX/AVX2:
enable(proc_info_ecx, 28, Feature::avx);
enable(extended_features_ebx, 5, Feature::avx2);