diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-11-20 11:35:52 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-11-20 11:35:52 +0900 |
commit | 6703d43447f0d9743859b44b0be08c82aac98485 (patch) | |
tree | 409048e4eb3ff1f95f7aab513e9e7238b9065987 /test/apx.cpp | |
parent | ed5dc351610cefdb79ffe72f8757384380d4d32b (diff) | |
download | xbyak-6703d43447f0d9743859b44b0be08c82aac98485.tar.gz xbyak-6703d43447f0d9743859b44b0be08c82aac98485.zip |
movdir64b supports apx
Diffstat (limited to 'test/apx.cpp')
-rw-r--r-- | test/apx.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/apx.cpp b/test/apx.cpp index fde981f..e17ae1d 100644 --- a/test/apx.cpp +++ b/test/apx.cpp @@ -1009,3 +1009,19 @@ CYBOZU_TEST_AUTO(shld) CYBOZU_TEST_EQUAL(c.getSize(), n); CYBOZU_TEST_EQUAL_ARRAY(c.getCode(), tbl, n); } + +CYBOZU_TEST_AUTO(mov) +{ + struct Code : Xbyak::CodeGenerator { + Code() + { + movdir64b(r16, ptr [r20+r21*8+0x4]); + } + } c; + const uint8_t tbl[] = { + 0x62, 0xec, 0x79, 0x08, 0xf8, 0x44, 0xec, 0x04, + }; + const size_t n = sizeof(tbl); + CYBOZU_TEST_EQUAL(c.getSize(), n); + CYBOZU_TEST_EQUAL_ARRAY(c.getCode(), tbl, n); +} |