diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-11-20 14:43:11 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-11-20 14:43:11 +0900 |
commit | 389d73347323b557b6c05be8293c4d62e5fb9596 (patch) | |
tree | c7151bd1c30f41dec70b947128994317c7d264fb /test | |
parent | 3636cde22306aa43ca00f69be19a2969456f4c35 (diff) | |
download | xbyak-389d73347323b557b6c05be8293c4d62e5fb9596.tar.gz xbyak-389d73347323b557b6c05be8293c4d62e5fb9596.zip |
movbe supports apx and append test
Diffstat (limited to 'test')
-rw-r--r-- | test/apx.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/apx.cpp b/test/apx.cpp index a95f285..a39c39c 100644 --- a/test/apx.cpp +++ b/test/apx.cpp @@ -1042,6 +1042,14 @@ CYBOZU_TEST_AUTO(mov) { movdir64b(r16, ptr [r20+r21*8+0x4]); movdiri(ptr [r20+r21*8+0x4], r16); + + movbe(ptr [r16], r30w); + movbe(ptr [r16], r30d); + movbe(ptr [r16], r30); + movbe(r30w, ptr [r16]); + movbe(r30d, ptr [r16]); + movbe(r30, ptr [r16]); + } } c; const uint8_t tbl[] = { @@ -1049,6 +1057,10 @@ CYBOZU_TEST_AUTO(mov) 0x62, 0xec, 0x79, 0x08, 0xf8, 0x44, 0xec, 0x04, // movdiri 0x62, 0xec, 0xf8, 0x08, 0xf9, 0x44, 0xec, 0x04, + // movbe + 0x62, 0x6c, 0x7d, 0x08, 0x61, 0x30, 0x62, 0x6c, 0x7c, 0x08, 0x61, 0x30, 0x62, 0x6c, 0xfc, 0x08, + 0x61, 0x30, 0x62, 0x6c, 0x7d, 0x08, 0x60, 0x30, 0x62, 0x6c, 0x7c, 0x08, 0x60, 0x30, 0x62, 0x6c, + 0xfc, 0x08, 0x60, 0x30, }; const size_t n = sizeof(tbl); CYBOZU_TEST_EQUAL(c.getSize(), n); |