aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2021-09-10 09:35:13 +0900
committerMITSUNARI Shigeo <[email protected]>2021-09-10 09:35:13 +0900
commit55ab361f011b7323449574e67c3821d16ede9c55 (patch)
tree23bb5cdf3ef5420720248499a850a57e7a4a8800
parent8653f4152ac2f3dadec687bc43b7d52c35117c20 (diff)
downloadxbyak-55ab361f011b7323449574e67c3821d16ede9c55.tar.gz
xbyak-55ab361f011b7323449574e67c3821d16ede9c55.zip
add tests of vgetexp{ph,sh}
-rw-r--r--test/misc.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/misc.cpp b/test/misc.cpp
index 25f81de..112c265 100644
--- a/test/misc.cpp
+++ b/test/misc.cpp
@@ -1038,6 +1038,16 @@ CYBOZU_TEST_AUTO(vaddph)
vfpclasssh(k1|k2, xmm3, 0x5);
vfpclasssh(k1|k2, ptr [rax+0x40], 0x5);
+ vgetexpph(xmm1, ptr [rax+0x40]);
+ vgetexpph(ymm1, ptr_b [rax+0x40]);
+ vgetexpph(zmm1, ptr [rax+0x40]);
+ vgetexpph(zmm1|k1|T_z|T_sae, zmm5);
+ vgetexpsh(xmm1, xmm5, ptr [rax+0x40]);
+ vgetexpsh(xmm1|k1|T_z|T_sae, xmm3, xmm5);
+
+
+
+
}
} c;
const uint8_t tbl[] = {
@@ -1241,6 +1251,17 @@ CYBOZU_TEST_AUTO(vaddph)
// vfpclasssh
0x62, 0xf3, 0x7c, 0x0a, 0x67, 0xcb, 0x05,
0x62, 0xf3, 0x7c, 0x0a, 0x67, 0x48, 0x20, 0x05,
+
+ // vgetexpph
+ 0x62, 0xf6, 0x7d, 0x08, 0x42, 0x48, 0x04,
+ 0x62, 0xf6, 0x7d, 0x38, 0x42, 0x48, 0x20,
+ 0x62, 0xf6, 0x7d, 0x48, 0x42, 0x48, 0x01,
+ 0x62, 0xf6, 0x7d, 0x99, 0x42, 0xcd,
+
+ // vgetexpsh
+ 0x62, 0xf6, 0x55, 0x08, 0x43, 0x48, 0x20,
+ 0x62, 0xf6, 0x65, 0x99, 0x43, 0xcd,
+
};
const size_t n = sizeof(tbl) / sizeof(tbl[0]);
CYBOZU_TEST_EQUAL(c.getSize(), n);