machinst x64: add packed shifts

This commit is contained in:
Andrew Brown
2020-07-24 12:49:36 -07:00
parent 0398033447
commit c74a9d1225
4 changed files with 123 additions and 1 deletions

View File

@@ -3173,6 +3173,24 @@ fn test_x64_emit() {
"cvtsi2sd %rsi, %xmm1",
));
// ========================================================
// XmmRmi
insns.push((
Inst::xmm_rmi_reg(SseOpcode::Psraw, RegMemImm::reg(xmm10), w_xmm1),
"66410FE1CA",
"psraw %xmm10, %xmm1",
));
insns.push((
Inst::xmm_rmi_reg(SseOpcode::Pslld, RegMemImm::imm(31), w_xmm1),
"660F72F11F",
"pslld $31, %xmm1",
));
insns.push((
Inst::xmm_rmi_reg(SseOpcode::Psrlq, RegMemImm::imm(1), w_xmm3),
"660F73D301",
"psrlq $1, %xmm3",
));
// ========================================================
// Misc instructions.