[machinst x64]: add punpack[hl]bw instructions

This commit is contained in:
Andrew Brown
2020-11-11 10:05:14 -08:00
parent 8131b15921
commit 8ba92853be
3 changed files with 20 additions and 0 deletions

View File

@@ -3157,6 +3157,18 @@ fn test_x64_emit() {
"packsswb %xmm11, %xmm2",
));
insns.push((
Inst::xmm_rm_r(SseOpcode::Punpckhbw, RegMem::reg(xmm3), w_xmm2),
"660F68D3",
"punpckhbw %xmm3, %xmm2",
));
insns.push((
Inst::xmm_rm_r(SseOpcode::Punpcklbw, RegMem::reg(xmm1), w_xmm8),
"66440F60C1",
"punpcklbw %xmm1, %xmm8",
));
// ========================================================
// XMM_RM_R: Integer Conversion
insns.push((