aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/apx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/apx.cpp')
-rw-r--r--test/apx.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/apx.cpp b/test/apx.cpp
index 207389c..42d315b 100644
--- a/test/apx.cpp
+++ b/test/apx.cpp
@@ -1074,6 +1074,13 @@ CYBOZU_TEST_AUTO(mov_misc)
setb(r31b|T_zu);
setb(r15b|T_zu);
setb(ptr [r30]);
+
+ bswap(eax);
+ bswap(r8d);
+ bswap(r16d);
+ bswap(rcx);
+ bswap(r9);
+ bswap(r17);
}
} c;
const uint8_t tbl[] = {
@@ -1101,7 +1108,13 @@ CYBOZU_TEST_AUTO(mov_misc)
0x62, 0xdc, 0x7f, 0x18, 0x42, 0xc7,
0x62, 0xd4, 0x7f, 0x18, 0x42, 0xc7,
0x62, 0xdc, 0x7f, 0x08, 0x42, 0x06,
-
+ // bswap
+ 0x0f, 0xc8,
+ 0x41, 0x0f, 0xc8,
+ 0xd5, 0x90, 0xc8,
+ 0x48, 0x0f, 0xc9,
+ 0x49, 0x0f, 0xc9,
+ 0xd5, 0x98, 0xc9,
};
const size_t n = sizeof(tbl);
CYBOZU_TEST_EQUAL(c.getSize(), n);