aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2021-09-14 09:12:43 +0900
committerMITSUNARI Shigeo <[email protected]>2021-09-14 09:12:43 +0900
commit17dc697cdcb57c42f5b46507f44d283c312fc3e8 (patch)
treec4ace86b72faac7f958a9c266a768da98a32de30 /test
parent62f022aeae9a899d62745319638145aaa2bce905 (diff)
downloadxbyak-17dc697cdcb57c42f5b46507f44d283c312fc3e8.tar.gz
xbyak-17dc697cdcb57c42f5b46507f44d283c312fc3e8.zip
add vcvttph2w
Diffstat (limited to 'test')
-rw-r--r--test/misc.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/misc.cpp b/test/misc.cpp
index a05dbf3..1497e58 100644
--- a/test/misc.cpp
+++ b/test/misc.cpp
@@ -1253,6 +1253,15 @@ CYBOZU_TEST_AUTO(vaddph)
vcvttph2uw(zmm1|k2|T_z|T_sae, zmm5);
vcvttph2uw(zmm1, ptr [rax+0x40]);
vcvttph2uw(zmm1, ptr_b [rax+0x40]);
+
+ vcvttph2w(xmm1, xmm5);
+ vcvttph2w(xmm1, ptr [rax+0x40]);
+ vcvttph2w(xmm1, ptr_b [rax+0x40]);
+ vcvttph2w(ymm1, ptr [rax+0x40]);
+ vcvttph2w(ymm1, ptr_b [rax+0x40]);
+ vcvttph2w(zmm1|k2|T_z|T_sae, zmm5);
+ vcvttph2w(zmm1, ptr [rax+0x40]);
+ vcvttph2w(zmm1, ptr_b [rax+0x40]);
}
} c;
const uint8_t tbl[] = {
@@ -1701,6 +1710,16 @@ CYBOZU_TEST_AUTO(vaddph)
0x62, 0xf5, 0x7c, 0x9a, 0x7c, 0xcd,
0x62, 0xf5, 0x7c, 0x48, 0x7c, 0x48, 0x01,
0x62, 0xf5, 0x7c, 0x58, 0x7c, 0x48, 0x20,
+
+ // vcvttph2w
+ 0x62, 0xf5, 0x7d, 0x08, 0x7c, 0xcd,
+ 0x62, 0xf5, 0x7d, 0x08, 0x7c, 0x48, 0x04,
+ 0x62, 0xf5, 0x7d, 0x18, 0x7c, 0x48, 0x20,
+ 0x62, 0xf5, 0x7d, 0x28, 0x7c, 0x48, 0x02,
+ 0x62, 0xf5, 0x7d, 0x38, 0x7c, 0x48, 0x20,
+ 0x62, 0xf5, 0x7d, 0x9a, 0x7c, 0xcd,
+ 0x62, 0xf5, 0x7d, 0x48, 0x7c, 0x48, 0x01,
+ 0x62, 0xf5, 0x7d, 0x58, 0x7c, 0x48, 0x20,
};
const size_t n = sizeof(tbl) / sizeof(tbl[0]);
CYBOZU_TEST_EQUAL(c.getSize(), n);