aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/apx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/apx.cpp')
-rw-r--r--test/apx.cpp12
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);