diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-08-06 09:57:45 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-08-06 09:57:45 +0900 |
commit | 9b3687a68aa14bd0656f01a2dfb011c43535ea38 (patch) | |
tree | 90d510c863d3f520fc426da535e5a2c5667e5caa /sample | |
parent | ecdd01ee59995d56f47da4796dd8352fa228070a (diff) | |
download | xbyak-9b3687a68aa14bd0656f01a2dfb011c43535ea38.tar.gz xbyak-9b3687a68aa14bd0656f01a2dfb011c43535ea38.zip |
add detection of SHA512, SM3, SM4
Diffstat (limited to 'sample')
-rw-r--r-- | sample/Makefile | 2 | ||||
-rw-r--r-- | sample/cpuid/arl.txt | 2 | ||||
-rw-r--r-- | sample/cpuid/lnl.txt | 2 | ||||
-rw-r--r-- | sample/test_util.cpp | 3 |
4 files changed, 6 insertions, 3 deletions
diff --git a/sample/Makefile b/sample/Makefile index 9166360..62c7dcf 100644 --- a/sample/Makefile +++ b/sample/Makefile @@ -122,7 +122,7 @@ toyvm : toyvm.cpp $(XBYAK_INC) static_buf: static_buf.cpp $(XBYAK_INC) static_buf64: static_buf.cpp $(XBYAK_INC) test_util : test_util.cpp $(XBYAK_INC) ../xbyak/xbyak_util.h -test_util2 : test_util.cpp $(XBYAK_INC) ../xbyak/xbyak_util.h +test_util64 : test_util.cpp $(XBYAK_INC) ../xbyak/xbyak_util.h jmp_table: jmp_table.cpp $(XBYAK_INC) jmp_table64: jmp_table.cpp $(XBYAK_INC) memfd: memfd.cpp $(XBYAK_INC) diff --git a/sample/cpuid/arl.txt b/sample/cpuid/arl.txt index 1df6f97..60abc3b 100644 --- a/sample/cpuid/arl.txt +++ b/sample/cpuid/arl.txt @@ -1,2 +1,2 @@ vendor intel - mmx mmx2 cmov sse sse2 sse3 ssse3 sse41 sse42 popcnt aesni rdtscp xsave(xgetvb) osxsave pclmulqdq avx fma avx2 bmi1 bmi2 lzcnt enh_rep rdrand adx rdseed smap sha f16c movbe gfni vaes vpclmulqdq avx_vnni waitpkg clflushopt cldemote movdiri movdir64b uintr serialize avx_vnni_int8 avx_ne_convert avx_ifma cmpccxadd + mmx mmx2 cmov sse sse2 sse3 ssse3 sse41 sse42 popcnt aesni rdtscp xsave(xgetvb) osxsave pclmulqdq avx fma avx2 bmi1 bmi2 lzcnt enh_rep rdrand adx rdseed smap sha f16c movbe gfni vaes vpclmulqdq avx_vnni waitpkg clflushopt cldemote movdiri movdir64b uintr serialize avx_vnni_int8 avx_ne_convert avx_ifma cmpccxadd sha512 sm3 sm4 diff --git a/sample/cpuid/lnl.txt b/sample/cpuid/lnl.txt index 5e2d107..8bc6180 100644 --- a/sample/cpuid/lnl.txt +++ b/sample/cpuid/lnl.txt @@ -1,2 +1,2 @@ vendor intel - mmx mmx2 cmov sse sse2 sse3 ssse3 sse41 sse42 popcnt aesni rdtscp xsave(xgetvb) osxsave pclmulqdq avx fma avx2 bmi1 bmi2 lzcnt prefetchw enh_rep rdrand adx rdseed smap sha f16c movbe gfni vaes vpclmulqdq avx_vnni waitpkg clflushopt cldemote movdiri movdir64b uintr serialize avx_vnni_int8 avx_ne_convert avx_ifma cmpccxadd + mmx mmx2 cmov sse sse2 sse3 ssse3 sse41 sse42 popcnt aesni rdtscp xsave(xgetvb) osxsave pclmulqdq avx fma avx2 bmi1 bmi2 lzcnt prefetchw enh_rep rdrand adx rdseed smap sha f16c movbe gfni vaes vpclmulqdq avx_vnni waitpkg clflushopt cldemote movdiri movdir64b uintr serialize avx_vnni_int8 avx_ne_convert avx_ifma cmpccxadd sha512 sm3 sm4 diff --git a/sample/test_util.cpp b/sample/test_util.cpp index 3405905..7115b38 100644 --- a/sample/test_util.cpp +++ b/sample/test_util.cpp @@ -99,6 +99,9 @@ void putCPUinfo(bool onlyCpuidFeature) { Cpu::tRAO_INT, "rao-int" }, { Cpu::tCMPCCXADD, "cmpccxadd" }, { Cpu::tPREFETCHITI, "prefetchiti" }, + { Cpu::tSHA512, "sha512" }, + { Cpu::tSM3, "sm3" }, + { Cpu::tSM4, "sm4" }, }; for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) { if (cpu.has(tbl[i].type)) printf(" %s", tbl[i].str); |