mirror of
https://github.com/herumi/xbyak
synced 2024-11-20 16:06:14 -07:00
add misc tests
This commit is contained in:
parent
6d21c7389a
commit
b063d276f2
1 changed files with 10 additions and 0 deletions
10
test/apx.cpp
10
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);
|
||||
|
|
Loading…
Reference in a new issue