add vfpclasssh

This commit is contained in:
MITSUNARI Shigeo 2021-09-10 09:26:25 +09:00
parent 7aed436e64
commit ee920a9912
3 changed files with 10 additions and 0 deletions

View file

@ -1034,6 +1034,10 @@ CYBOZU_TEST_AUTO(vaddph)
vfpclassph(k1, yword_b[rax+0x40], 0x4);
vfpclassph(k1, zword [rax+0x40], 0x5);
vfpclassph(k1, zword_b[rax+0x40], 0x6);
vfpclasssh(k1|k2, xmm3, 0x5);
vfpclasssh(k1|k2, ptr [rax+0x40], 0x5);
}
} c;
const uint8_t tbl[] = {
@ -1233,6 +1237,10 @@ CYBOZU_TEST_AUTO(vaddph)
0x62, 0xf3, 0x7c, 0x38, 0x66, 0x48, 0x20, 0x04,
0x62, 0xf3, 0x7c, 0x48, 0x66, 0x48, 0x01, 0x05,
0x62, 0xf3, 0x7c, 0x58, 0x66, 0x48, 0x20, 0x06,
// vfpclasssh
0x62, 0xf3, 0x7c, 0x0a, 0x67, 0xcb, 0x05,
0x62, 0xf3, 0x7c, 0x0a, 0x67, 0x48, 0x20, 0x05,
};
const size_t n = sizeof(tbl) / sizeof(tbl[0]);
CYBOZU_TEST_EQUAL(c.getSize(), n);