CPUDetect: add support for MOVBE detection
This commit is contained in:
parent
7563e8c6f3
commit
d2de1ddabc
|
@ -44,6 +44,7 @@ struct CPUInfo
|
||||||
bool bAES;
|
bool bAES;
|
||||||
// FXSAVE/FXRSTOR
|
// FXSAVE/FXRSTOR
|
||||||
bool bFXSR;
|
bool bFXSR;
|
||||||
|
bool bMOVBE;
|
||||||
// This flag indicates that the hardware supports some mode
|
// This flag indicates that the hardware supports some mode
|
||||||
// in which denormal inputs _and_ outputs are automatically set to (signed) zero.
|
// in which denormal inputs _and_ outputs are automatically set to (signed) zero.
|
||||||
// TODO: ARM
|
// TODO: ARM
|
||||||
|
|
|
@ -159,6 +159,7 @@ void CPUInfo::Detect()
|
||||||
if ((cpu_id[2] >> 9) & 1) bSSSE3 = true;
|
if ((cpu_id[2] >> 9) & 1) bSSSE3 = true;
|
||||||
if ((cpu_id[2] >> 19) & 1) bSSE4_1 = true;
|
if ((cpu_id[2] >> 19) & 1) bSSE4_1 = true;
|
||||||
if ((cpu_id[2] >> 20) & 1) bSSE4_2 = true;
|
if ((cpu_id[2] >> 20) & 1) bSSE4_2 = true;
|
||||||
|
if ((cpu_id[2] >> 22) & 1) bMOVBE = true;
|
||||||
if ((cpu_id[2] >> 25) & 1) bAES = true;
|
if ((cpu_id[2] >> 25) & 1) bAES = true;
|
||||||
|
|
||||||
// To check DAZ support, we first need to check FXSAVE support.
|
// To check DAZ support, we first need to check FXSAVE support.
|
||||||
|
@ -263,6 +264,7 @@ std::string CPUInfo::Summarize()
|
||||||
if (bAVX) sum += ", AVX";
|
if (bAVX) sum += ", AVX";
|
||||||
if (bFMA) sum += ", FMA";
|
if (bFMA) sum += ", FMA";
|
||||||
if (bAES) sum += ", AES";
|
if (bAES) sum += ", AES";
|
||||||
|
if (bMOVBE) sum += ", MOVBE";
|
||||||
if (bLongMode) sum += ", 64-bit support";
|
if (bLongMode) sum += ", 64-bit support";
|
||||||
return sum;
|
return sum;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue