Lines Matching refs:EAX
164 mov eax,value
168 mov dword ptr [esi],eax
202 static void DetectX86FamilyModel(unsigned EAX, unsigned &Family,
204 Family = (EAX >> 8) & 0xf; // Bits 8 - 11
205 Model = (EAX >> 4) & 0xf; // Bits 4 - 7
209 Family += (EAX >> 20) & 0xff; // Bits 20 - 27
211 Model += ((EAX >> 16) & 0xf) << 4; // Bits 16 - 19
216 unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0;
217 if (GetX86CpuIDAndInfo(0x1, &EAX, &EBX, &ECX, &EDX))
221 DetectX86FamilyModel(EAX, Family, Model);
243 bool HasAVX = ((ECX & AVXBits) == AVXBits) && !GetX86XCR0(&EAX, &EDX) &&
244 ((EAX & 0x6) == 0x6);
245 bool HasAVX512Save = HasAVX && ((EAX & 0xe0) == 0xe0);
247 !GetX86CpuIDAndInfoEx(0x7, 0x0, &EAX, &EBX, &ECX, &EDX);
252 GetX86CpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX);
745 unsigned EAX = 0, EBX = 0, ECX = 0, EDX = 0;
756 GetX86CpuIDAndInfo(1, &EAX, &EBX, &ECX, &EDX);
778 !GetX86XCR0(&EAX, &EDX) && ((EAX & 0x6) == 0x6);
787 bool HasAVX512Save = HasAVXSave && ((EAX & 0xe0) == 0xe0);
793 !GetX86CpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX);
802 !GetX86CpuIDAndInfoEx(0x7, 0x0, &EAX, &EBX, &ECX, &EDX);
828 !GetX86CpuIDAndInfoEx(0xd, 0x1, &EAX, &EBX, &ECX, &EDX);
831 Features["xsaveopt"] = HasAVXSave && HasLeafD && ((EAX >> 0) & 1);
832 Features["xsavec"] = HasAVXSave && HasLeafD && ((EAX >> 1) & 1);
833 Features["xsaves"] = HasAVXSave && HasLeafD && ((EAX >> 3) & 1);