add tests of vgetmant{ph,sh}
This commit is contained in:
parent
c11a21cf48
commit
847166cef1
3 changed files with 21 additions and 0 deletions
|
@ -1045,6 +1045,15 @@ CYBOZU_TEST_AUTO(vaddph)
|
|||
vgetexpsh(xmm1, xmm5, ptr [rax+0x40]);
|
||||
vgetexpsh(xmm1|k1|T_z|T_sae, xmm3, xmm5);
|
||||
|
||||
vgetmantph(xmm1, ptr [rax+0x40], 0x1);
|
||||
vgetmantph(ymm1, ptr_b [rax+0x40], 0x2);
|
||||
vgetmantph(zmm1, ptr [rax+0x40], 0x3);
|
||||
vgetmantph(zmm1|k1|T_z|T_sae, zmm5, 0x4);
|
||||
|
||||
vgetmantsh(xmm1, xmm5, ptr [rax+0x40], 0x5);
|
||||
vgetmantsh(xmm1|k1|T_z|T_sae, xmm3, xmm5, 0x6);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1262,6 +1271,16 @@ CYBOZU_TEST_AUTO(vaddph)
|
|||
0x62, 0xf6, 0x55, 0x08, 0x43, 0x48, 0x20,
|
||||
0x62, 0xf6, 0x65, 0x99, 0x43, 0xcd,
|
||||
|
||||
// vgetmantph
|
||||
0x62, 0xf3, 0x7c, 0x08, 0x26, 0x48, 0x04, 0x01,
|
||||
0x62, 0xf3, 0x7c, 0x38, 0x26, 0x48, 0x20, 0x02,
|
||||
0x62, 0xf3, 0x7c, 0x48, 0x26, 0x48, 0x01, 0x03,
|
||||
0x62, 0xf3, 0x7c, 0x99, 0x26, 0xcd, 0x04,
|
||||
|
||||
// vgetmantsh
|
||||
0x62, 0xf3, 0x54, 0x08, 0x27, 0x48, 0x20, 0x05,
|
||||
0x62, 0xf3, 0x64, 0x99, 0x27, 0xcd, 0x06,
|
||||
|
||||
};
|
||||
const size_t n = sizeof(tbl) / sizeof(tbl[0]);
|
||||
CYBOZU_TEST_EQUAL(c.getSize(), n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue