diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-12-14 17:26:26 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-12-14 17:26:58 +0900 |
commit | 5315658ad67791f56296c202fe2acefa9b95d3ae (patch) | |
tree | d9c3ad352410049bced8731c72c3668b8551644d /sample/test_util.cpp | |
parent | 835f6d2e6d5309d6b3a34f35c486df25317154b4 (diff) | |
download | xbyak-5315658ad67791f56296c202fe2acefa9b95d3ae.tar.gz xbyak-5315658ad67791f56296c202fe2acefa9b95d3ae.zip |
add detection of avx10/apx_f
Diffstat (limited to 'sample/test_util.cpp')
-rw-r--r-- | sample/test_util.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sample/test_util.cpp b/sample/test_util.cpp index 35c2fa8..66869ee 100644 --- a/sample/test_util.cpp +++ b/sample/test_util.cpp @@ -103,12 +103,17 @@ void putCPUinfo(bool onlyCpuidFeature) { Cpu::tSM3, "sm3" }, { Cpu::tSM4, "sm4" }, { Cpu::tAVX_VNNI_INT16, "avx_vnni_int16" }, + { Cpu::tAPX_F, "apx_f" }, + { Cpu::tAVX10, "avx10" }, }; for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) { if (cpu.has(tbl[i].type)) printf(" %s", tbl[i].str); } printf("\n"); if (onlyCpuidFeature) return; + if (cpu.has(Cpu::tAVX10)) { + printf("AVX10 version %d\n", cpu.getAVX10version()); + } if (cpu.has(Cpu::tPOPCNT)) { const int n = 0x12345678; // bitcount = 13 const int ok = 13; |