diff options
author | MITSUNARI Shigeo <[email protected]> | 2023-12-28 17:59:28 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2023-12-28 17:59:28 +0900 |
commit | 2e7b62d78472f38a9b6c30493255d011728fa46e (patch) | |
tree | 26d21a2e9eee060d60aaff0a9998516909af8c88 /test | |
parent | 2e93baa6a63c34cd7775eae25de32d71ff46e226 (diff) | |
download | xbyak-2e7b62d78472f38a9b6c30493255d011728fa46e.tar.gz xbyak-2e7b62d78472f38a9b6c30493255d011728fa46e.zip |
bswap supports apx
Diffstat (limited to 'test')
-rw-r--r-- | test/apx.cpp | 15 |
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); |