aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2022-05-12 10:00:37 +0900
committerMITSUNARI Shigeo <[email protected]>2022-05-12 10:00:37 +0900
commit9cdd40f5ec54c19efb317448ad6bea8223c6a5bb (patch)
treecda2f5155ee7919d78e47cb0764e080f747cc77d
parent379f8bf376bc258d0f407e624e00fa71a6c9e0be (diff)
downloadxbyak-9cdd40f5ec54c19efb317448ad6bea8223c6a5bb.tar.gz
xbyak-9cdd40f5ec54c19efb317448ad6bea8223c6a5bb.zip
add detection of movdiri
-rw-r--r--sample/test_util.cpp1
-rw-r--r--xbyak/xbyak_util.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/sample/test_util.cpp b/sample/test_util.cpp
index 27b1cf0..0b5ce57 100644
--- a/sample/test_util.cpp
+++ b/sample/test_util.cpp
@@ -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);
diff --git a/xbyak/xbyak_util.h b/xbyak/xbyak_util.h
index 68d40f0..546e1a0 100644
--- a/xbyak/xbyak_util.h
+++ b/xbyak/xbyak_util.h
@@ -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