aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/misc.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/misc.cpp b/test/misc.cpp
index 1f920a8..3b10c99 100644
--- a/test/misc.cpp
+++ b/test/misc.cpp
@@ -1321,6 +1321,11 @@ CYBOZU_TEST_AUTO(vaddph)
vcvtsi2sh(xmm1, xmm2, dword [rax+0x40]);
vcvtsi2sh(xmm1|T_rd_sae, xmm2, r9);
vcvtsi2sh(xmm1, xmm2, qword [rax+0x40]);
+
+ vcvtusi2sh(xmm1|T_rd_sae, xmm2, eax);
+ vcvtusi2sh(xmm1, xmm2, dword [rax+0x40]);
+ vcvtusi2sh(xmm1|T_rd_sae, xmm2, r9);
+ vcvtusi2sh(xmm1, xmm2, qword [rax+0x40]);
}
} c;
const uint8_t tbl[] = {
@@ -1846,6 +1851,12 @@ CYBOZU_TEST_AUTO(vaddph)
0x62, 0xf5, 0x6e, 0x08, 0x2a, 0x48, 0x10,
0x62, 0xd5, 0xee, 0x38, 0x2a, 0xc9,
0x62, 0xf5, 0xee, 0x08, 0x2a, 0x48, 0x08,
+
+ // vcvtusi2sh
+ 0x62, 0xf5, 0x6e, 0x38, 0x7b, 0xc8,
+ 0x62, 0xf5, 0x6e, 0x08, 0x7b, 0x48, 0x10,
+ 0x62, 0xd5, 0xee, 0x38, 0x7b, 0xc9,
+ 0x62, 0xf5, 0xee, 0x08, 0x7b, 0x48, 0x08,
};
const size_t n = sizeof(tbl) / sizeof(tbl[0]);
CYBOZU_TEST_EQUAL(c.getSize(), n);