diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-02-20 09:13:49 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-02-20 14:07:43 +0900 |
commit | 23b40331a37c96f7b171a738e66e0e8b78da3f95 (patch) | |
tree | ea1229fb1636c68fa9326b96325c58e58c3eee67 | |
parent | 98a0f19240b0ac18fdbcb2d5bea76a2b7e944fdf (diff) | |
download | xbyak-23b40331a37c96f7b171a738e66e0e8b78da3f95.tar.gz xbyak-23b40331a37c96f7b171a738e66e0e8b78da3f95.zip |
add detection of uintr
-rw-r--r-- | sample/test_util.cpp | 1 | ||||
-rw-r--r-- | xbyak/xbyak_util.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sample/test_util.cpp b/sample/test_util.cpp index 15240f1..4a8dbc7 100644 --- a/sample/test_util.cpp +++ b/sample/test_util.cpp @@ -88,6 +88,7 @@ void putCPUinfo(bool onlyCpuidFeature) { Cpu::tCLDEMOTE, "cldemote" }, { Cpu::tMOVDIRI, "movdiri" }, { Cpu::tMOVDIR64B, "movdir64b" }, + { Cpu::tUINTR, "uintr" }, { Cpu::tSERIALIZE, "serialize" }, { Cpu::tCLZERO, "clzero" }, { Cpu::tAMX_FP16, "amx_fp16" }, diff --git a/xbyak/xbyak_util.h b/xbyak/xbyak_util.h index 627af35..c57e8ea 100644 --- a/xbyak/xbyak_util.h +++ b/xbyak/xbyak_util.h @@ -457,6 +457,7 @@ public: XBYAK_DEFINE_TYPE(73, tCMPCCXADD); XBYAK_DEFINE_TYPE(74, tPREFETCHITI); XBYAK_DEFINE_TYPE(75, tSERIALIZE); + XBYAK_DEFINE_TYPE(76, tUINTR); #undef XBYAK_SPLIT_ID #undef XBYAK_DEFINE_TYPE @@ -591,6 +592,7 @@ public: if (ECX & (1U << 25)) type_ |= tCLDEMOTE; if (ECX & (1U << 27)) type_ |= tMOVDIRI; if (ECX & (1U << 28)) type_ |= tMOVDIR64B; + if (EDX & (1U << 5)) type_ |= tUINTR; if (EDX & (1U << 14)) type_ |= tSERIALIZE; if (EDX & (1U << 22)) type_ |= tAMX_BF16; if (EDX & (1U << 24)) type_ |= tAMX_TILE; |