diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-12-19 16:28:40 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-12-19 16:28:40 +0900 |
commit | fcb3d0dbb8ff30601547539de8fb47620f164f37 (patch) | |
tree | 74bf9b8d6f72314e12adb76b7926c6b91368a21d /test | |
parent | 85709ace75901201f8c8a8bfafe71aab8ff2988f (diff) | |
download | xbyak-fcb3d0dbb8ff30601547539de8fb47620f164f37.tar.gz xbyak-fcb3d0dbb8ff30601547539de8fb47620f164f37.zip |
add aesdec128kl
Diffstat (limited to 'test')
-rw-r--r-- | test/apx.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/test/apx.cpp b/test/apx.cpp index f03b032..89760cb 100644 --- a/test/apx.cpp +++ b/test/apx.cpp @@ -1753,7 +1753,6 @@ CYBOZU_TEST_AUTO(kmov) CYBOZU_TEST_EQUAL(c.getSize(), n); CYBOZU_TEST_EQUAL_ARRAY(c.getCode(), tbl, n); } - CYBOZU_TEST_AUTO(amx) { struct Code : Xbyak::CodeGenerator { @@ -1775,3 +1774,21 @@ CYBOZU_TEST_AUTO(amx) CYBOZU_TEST_EQUAL(c.getSize(), n); CYBOZU_TEST_EQUAL_ARRAY(c.getCode(), tbl, n); } + +CYBOZU_TEST_AUTO(aeskl) +{ + struct Code : Xbyak::CodeGenerator { + Code() + { + aesdec128kl(xmm15, ptr[rax+rcx*4+0x12]); + aesdec128kl(xmm15, ptr[r30+r29*8+0x34]); + } + } c; + const uint8_t tbl[] = { + 0xf3, 0x44, 0x0f, 0x38, 0xdd, 0x7c, 0x88, 0x12, + 0x62, 0x1c, 0x7a, 0x08, 0xdd, 0x7c, 0xee, 0x34, + }; + const size_t n = sizeof(tbl); + CYBOZU_TEST_EQUAL(c.getSize(), n); + CYBOZU_TEST_EQUAL_ARRAY(c.getCode(), tbl, n); +} |