0x3: psllq_Pq_Qq();
0x4: Inst::PMULUDQ(Pq,Qq);
0x5: pmaddwd_Pq_Qq();
- 0x6: psadbw_Pq_Qq();
+ 0x6: Inst::PSADBW(Pq,Qq);
0x7: maskmovq_Pq_PRq();
default: Inst::UD2();
}
0x3: psllq_Vo_Wo();
0x4: Inst::PMULUDQ(Vo,Wo);
0x5: pmaddwd_Vo_Wo();
- 0x6: psadbw_Vo_Wo();
+ 0x6: Inst::PSADBW(Vo,Wo);
0x7: maskmovdqu_Vo_VRo();
default: Inst::UD2();
}
# Authors: Gabe Black
microcode = '''
-# PSADBW
+def macroop PSADBW_XMM_XMM {
+ msad xmml, xmml, xmmlm, srcSize=1, destSize=2
+ msad xmmh, xmmh, xmmhm, srcSize=1, destSize=2
+};
+
+def macroop PSADBW_XMM_M {
+ ldfp ufp1, seg, sib, "DISPLACEMENT", dataSize=8
+ ldfp ufp2, seg, sib, "DISPLACEMENT + 8", dataSize=8
+ msad xmml, xmml, ufp1, srcSize=1, destSize=2
+ msad xmmh, xmmh, ufp2, srcSize=1, destSize=2
+};
+
+def macroop PSADBW_XMM_P {
+ rdip t7
+ ldfp ufp1, seg, riprel, "DISPLACEMENT", dataSize=8
+ ldfp ufp2, seg, riprel, "DISPLACEMENT + 8", dataSize=8
+ msad xmml, xmml, ufp1, srcSize=1, destSize=2
+ msad xmmh, xmmh, ufp2, srcSize=1, destSize=2
+};
'''
# Authors: Gabe Black
microcode = '''
-# PSADBW
+def macroop PSADBW_MMX_MMX {
+ msad mmx, mmx, mmxm, srcSize=1, destSize=2
+};
+
+def macroop PSADBW_MMX_M {
+ ldfp ufp1, seg, sib, disp, dataSize=8
+ msad mmx, mmx, ufp1, srcSize=1, destSize=2
+};
+
+def macroop PSADBW_MMX_P {
+ rdip t7
+ ldfp ufp1, seg, riprel, disp, dataSize=8
+ msad mmx, mmx, ufp1, srcSize=1, destSize=2
+};
'''