Add support for packed float to signed int conversion

Implements i32x4.trunc_sat_f32x4_s
This commit is contained in:
Johnnie Birch
2020-10-25 11:35:51 -07:00
parent 97392eae3d
commit 8bbe6a25a9
4 changed files with 105 additions and 28 deletions

View File

@@ -3300,6 +3300,12 @@ fn test_x64_emit() {
"cvtdq2ps %xmm1, %xmm8",
));
insns.push((
Inst::xmm_rm_r(SseOpcode::Cvttps2dq, RegMem::reg(xmm9), w_xmm8),
"F3450F5BC1",
"cvttps2dq %xmm9, %xmm8",
));
// XMM_Mov_R_M: float stores
insns.push((
Inst::xmm_mov_r_m(SseOpcode::Movss, xmm15, Amode::imm_reg(128, r12), None),