Add x86_pmuludq

This instruction multiplies the lower 32 bits of two 64x2 unsigned integers into an i64x2; this is necessary for lowering Wasm's i64x2.mul.
This commit is contained in:
Andrew Brown
2020-05-21 12:21:49 -07:00
parent 40f31375a5
commit df171f01b5
5 changed files with 45 additions and 5 deletions

View File

@@ -99,3 +99,9 @@ block0(v0: f64x2 [%xmm11], v1: f64x2 [%xmm13]):
[-, %xmm11] v8 = sqrt v0 ; bin: 66 45 0f 51 db
return
}
function %pmuludq(i64x2, i64x2) -> i64x2 {
block0(v0: i64x2 [%xmm3], v1: i64x2 [%xmm5]):
[-, %xmm3] v2 = x86_pmuludq v0, v1 ; bin: 66 0f f4 dd
return v2
}