mirror of
https://github.com/herumi/xbyak
synced 2024-11-20 16:06:14 -07:00
add detection of movdir64b
This commit is contained in:
parent
92ddc6dfd3
commit
a6665996b9
2 changed files with 4 additions and 0 deletions
|
@ -87,6 +87,7 @@ void putCPUinfo()
|
|||
{ Cpu::tCLFLUSHOPT, "clflushopt" },
|
||||
{ Cpu::tCLDEMOTE, "cldemote" },
|
||||
{ Cpu::tMOVDIRI, "movidiri" },
|
||||
{ Cpu::tMOVDIR64B, "movidir64b" },
|
||||
};
|
||||
for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) {
|
||||
if (cpu.has(tbl[i].type)) printf(" %s", tbl[i].str);
|
||||
|
|
|
@ -412,6 +412,7 @@ public:
|
|||
static const Type tCLFLUSHOPT;
|
||||
static const Type tCLDEMOTE;
|
||||
static const Type tMOVDIRI;
|
||||
static const Type tMOVDIR64B;
|
||||
|
||||
CpuT()
|
||||
: type_(NONE)
|
||||
|
@ -536,6 +537,7 @@ public:
|
|||
if (ECX & (1U << 5)) type_ |= tWAITPKG;
|
||||
if (ECX & (1U << 25)) type_ |= tCLDEMOTE;
|
||||
if (ECX & (1U << 27)) type_ |= tMOVDIRI;
|
||||
if (ECX & (1U << 28)) type_ |= tMOVDIR64B;
|
||||
if (EDX & (1U << 24)) type_ |= tAMX_TILE;
|
||||
if (EDX & (1U << 25)) type_ |= tAMX_INT8;
|
||||
if (EDX & (1U << 22)) type_ |= tAMX_BF16;
|
||||
|
@ -637,6 +639,7 @@ template<int dummy> const Type CpuT<dummy>::tAVX_VNNI = uint64_t(1) << 62;
|
|||
template<int dummy> const Type CpuT<dummy>::tCLFLUSHOPT = uint64_t(1) << 63;
|
||||
template<int dummy> const Type CpuT<dummy>::tCLDEMOTE = Type(0, 1 << 0);
|
||||
template<int dummy> const Type CpuT<dummy>::tMOVDIRI = Type(0, 1 << 1);
|
||||
template<int dummy> const Type CpuT<dummy>::tMOVDIR64B = Type(0, 1 << 2);
|
||||
|
||||
} // local
|
||||
|
||||
|
|
Loading…
Reference in a new issue