add detection of movdiri

This commit is contained in:
MITSUNARI Shigeo 2022-05-12 10:00:37 +09:00
parent 379f8bf376
commit 9cdd40f5ec
2 changed files with 4 additions and 0 deletions

View file

@ -86,6 +86,7 @@ void putCPUinfo()
{ Cpu::tWAITPKG, "waitpkg" },
{ Cpu::tCLFLUSHOPT, "clflushopt" },
{ Cpu::tCLDEMOTE, "cldemote" },
{ Cpu::tMOVDIRI, "movidiri" },
};
for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) {
if (cpu.has(tbl[i].type)) printf(" %s", tbl[i].str);

View file

@ -430,6 +430,7 @@ public:
static const Type tAVX_VNNI;
static const Type tCLFLUSHOPT;
static const Type tCLDEMOTE;
static const Type tMOVDIRI;
CpuT()
: type_(NONE)
@ -553,6 +554,7 @@ public:
if (ECX & (1U << 0)) type_ |= tPREFETCHWT1;
if (ECX & (1U << 5)) type_ |= tWAITPKG;
if (ECX & (1U << 25)) type_ |= tCLDEMOTE;
if (ECX & (1U << 27)) type_ |= tMOVDIRI;
if (EDX & (1U << 24)) type_ |= tAMX_TILE;
if (EDX & (1U << 25)) type_ |= tAMX_INT8;
if (EDX & (1U << 22)) type_ |= tAMX_BF16;
@ -653,6 +655,7 @@ template<int dummy> const Type CpuT<dummy>::tAMX_BF16 = uint64_t(1) << 61;
template<int dummy> const Type CpuT<dummy>::tAVX_VNNI = uint64_t(1) << 62;
template<int dummy> const Type CpuT<dummy>::tCLFLUSHOPT = Type(1) << 63;
template<int dummy> const Type CpuT<dummy>::tCLDEMOTE = Type(1) << 64;
template<int dummy> const Type CpuT<dummy>::tMOVDIRI = Type(1) << 65;
} // local