add detection of prefetchiti

This commit is contained in:
MITSUNARI Shigeo 2022-12-07 16:09:18 +09:00
parent 124617ac95
commit f667858761
2 changed files with 3 additions and 0 deletions

View file

@ -95,6 +95,7 @@ void putCPUinfo(bool onlyCpuidFeature)
{ Cpu::tAVX_IFMA, "avx_ifma" },
{ Cpu::tRAO_INT, "rao-int" },
{ Cpu::tCMPCCXADD, "cmpccxadd" },
{ Cpu::tPREFETCHITI, "prefetchiti" },
};
for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) {
if (cpu.has(tbl[i].type)) printf(" %s", tbl[i].str);

View file

@ -416,6 +416,7 @@ public:
XBYAK_DEFINE_TYPE(71, tAVX_IFMA);
XBYAK_DEFINE_TYPE(72, tRAO_INT);
XBYAK_DEFINE_TYPE(73, tCMPCCXADD);
XBYAK_DEFINE_TYPE(74, tPREFETCHITI);
#undef XBYAK_SPLIT_ID
#undef XBYAK_DEFINE_TYPE
@ -565,6 +566,7 @@ public:
if (EAX & (1U << 23)) type_ |= tAVX_IFMA;
if (EDX & (1U << 4)) type_ |= tAVX_VNNI_INT8;
if (EDX & (1U << 5)) type_ |= tAVX_NE_CONVERT;
if (EDX & (1U << 14)) type_ |= tPREFETCHITI;
}
}
setFamily();