From b063d276f21828484dc58803320dab1f9de2b0ad Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 30 Nov 2023 14:21:17 +0900 Subject: add misc tests --- test/apx.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/apx.cpp b/test/apx.cpp index 3f0365f..4ffec7e 100644 --- a/test/apx.cpp +++ b/test/apx.cpp @@ -1692,12 +1692,22 @@ CYBOZU_TEST_AUTO(evex_misc) vmovaps(xmm31, ptr [r30+r26*8+0x40]); vaddps(zmm30, zmm21, ptr [r20+r30*1]); vcvtsd2si(r30d, ptr [r17+r31*4]); + + test(ptr[r30], r31); + test(byte[r30], 0x12); + call(r20); + call(ptr[r20]); } } c; const uint8_t tbl[] = { 0x62, 0x09, 0x78, 0x08, 0x28, 0x7c, 0xd6, 0x04, 0x62, 0x29, 0x50, 0x40, 0x58, 0x34, 0x34, 0x62, 0x29, 0x7b, 0x08, 0x2d, 0x34, 0xb9, + + 0xd5, 0x5d, 0x85, 0x3e, + 0xd5, 0x11, 0xf6, 0x06, 0x12, + 0xd5, 0x10, 0xff, 0xd4, + 0xd5, 0x10, 0xff, 0x14, 0x24, }; const size_t n = sizeof(tbl); CYBOZU_TEST_EQUAL(c.getSize(), n); -- cgit v1.2.3