add vcvttsh2si

This commit is contained in:
MITSUNARI Shigeo 2021-09-14 10:05:26 +09:00
parent 621e6548c1
commit 05d08e05b3
3 changed files with 13 additions and 0 deletions

View file

@ -1296,6 +1296,11 @@ CYBOZU_TEST_AUTO(vaddph)
vcvtsh2usi(eax, ptr [rax+0x40]);
vcvtsh2usi(r9|T_rd_sae, xmm1);
vcvtsh2usi(r13, ptr [rax+0x40]);
vcvttsh2si(ecx|T_sae, xmm1);
vcvttsh2si(eax, ptr [rax+0x40]);
vcvttsh2si(r9|T_sae, xmm1);
vcvttsh2si(r13, ptr [rax+0x40]);
}
} c;
const uint8_t tbl[] = {
@ -1792,6 +1797,12 @@ CYBOZU_TEST_AUTO(vaddph)
0x62, 0xf5, 0x7e, 0x08, 0x79, 0x40, 0x20,
0x62, 0x75, 0xfe, 0x38, 0x79, 0xc9,
0x62, 0x75, 0xfe, 0x08, 0x79, 0x68, 0x20,
// vcvttsh2si
0x62, 0xf5, 0x7e, 0x18, 0x2c, 0xc9,
0x62, 0xf5, 0x7e, 0x08, 0x2c, 0x40, 0x20,
0x62, 0x75, 0xfe, 0x18, 0x2c, 0xc9,
0x62, 0x75, 0xfe, 0x08, 0x2c, 0x68, 0x20,
};
const size_t n = sizeof(tbl) / sizeof(tbl[0]);
CYBOZU_TEST_EQUAL(c.getSize(), n);