diff options
author | MITSUNARI Shigeo <[email protected]> | 2024-01-03 17:10:32 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2024-01-03 17:10:32 +0900 |
commit | a7b02ac80dcaf7f0812d3173cb30ef4f6dc1485c (patch) | |
tree | 39a67e5457f0af2390ef7b1e340221f44ead2c4a /test | |
parent | 26840492c31d680d61f95535a20bf989ac494785 (diff) | |
download | xbyak-a7b02ac80dcaf7f0812d3173cb30ef4f6dc1485c.tar.gz xbyak-a7b02ac80dcaf7f0812d3173cb30ef4f6dc1485c.zip |
RAO_INT supports APX
Diffstat (limited to 'test')
-rw-r--r-- | test/apx.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/apx.cpp b/test/apx.cpp index 70b7d02..45fe5ee 100644 --- a/test/apx.cpp +++ b/test/apx.cpp @@ -1936,3 +1936,29 @@ CYBOZU_TEST_AUTO(0x0f_rex2) CYBOZU_TEST_EQUAL_ARRAY(c.getCode(), tbl, n); } +CYBOZU_TEST_AUTO(rao_int) +{ + struct Code : Xbyak::CodeGenerator { + Code() + { + aadd(ptr [r16+r31*1], r17d); + aadd(ptr [r16+r31*1], r17); + aand(ptr [r16+r31*1], r17d); + aand(ptr [r16+r31*1], r17); + aor(ptr [r16+r31*1], r17d); + aor(ptr [r16+r31*1], r17); + axor(ptr [r16+r31*1], r17d); + axor(ptr [r16+r31*1], r17); + } + } c; + const uint8_t tbl[] = { + 0x62, 0xac, 0x78, 0x08, 0xfc, 0x0c, 0x38, 0x62, 0xac, 0xf8, 0x08, 0xfc, 0x0c, 0x38, 0x62, 0xac, + 0x79, 0x08, 0xfc, 0x0c, 0x38, 0x62, 0xac, 0xf9, 0x08, 0xfc, 0x0c, 0x38, 0x62, 0xac, 0x7b, 0x08, + 0xfc, 0x0c, 0x38, 0x62, 0xac, 0xfb, 0x08, 0xfc, 0x0c, 0x38, 0x62, 0xac, 0x7a, 0x08, 0xfc, 0x0c, + 0x38, 0x62, 0xac, 0xfa, 0x08, 0xfc, 0x0c, 0x38, + }; + const size_t n = sizeof(tbl); + CYBOZU_TEST_EQUAL(c.getSize(), n); + CYBOZU_TEST_EQUAL_ARRAY(c.getCode(), tbl, n); +} + |