0x1: sqrtps_Vo_Wo();
0x2: rqsrtps_Vo_Wo();
0x3: rcpps_Vo_Wo();
- 0x4: andps_Vo_Wo();
+ 0x4: Inst::ANDPS(Vo,Wo);
0x5: andnps_Vo_Wo();
0x6: Inst::ORPS(Vo,Wo);
0x7: Inst::XORPS(Vo,Wo);
0x1: decode OPCODE_OP_BOTTOM3 {
0x0: movmskpd_Gd_VRo();
0x1: sqrtpd_Vo_Wo();
- 0x4: andpd_Vo_Wo();
+ 0x4: Inst::ANDPD(Vo,Wo);
0x5: andnpd_Vo_Wo();
0x6: Inst::ORPD(Vo,Wo);
//This really should be type o, but it works on q sized
0x0: psubusb_Pq_Qq();
0x1: psubusw_Pq_Qq();
0x2: pminub_Pq_Qq();
- 0x3: pand_Pq_Qq();
+ 0x3: Inst::PAND(Pq,Qq);
0x4: paddusb_Pq_Qq();
0x5: paddusw_Pq_Qq();
0x6: pmaxub_Pq_Qq();
0x0: psubusb_Vo_Wo();
0x1: psubusw_Vo_Wo();
0x2: pminub_Vo_Wo();
- 0x3: pand_Vo_Wo();
+ 0x3: Inst::PAND(Vo,Wo);
0x4: paddusb_Vo_Wo();
0x5: paddusw_Vo_Wo();
0x6: pmaxub_Vo_Wo();
# Authors: Gabe Black
microcode = '''
-# ANDPS
-# ANDPD
+def macroop ANDPS_XMM_XMM {
+ mand xmml, xmml, xmmlm
+ mand xmmh, xmmh, xmmhm
+};
+
+def macroop ANDPS_XMM_M {
+ lea t1, seg, sib, disp, dataSize=asz
+ ldfp ufp1, seg, [1, t0, t1], dataSize=8
+ ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
+ mand xmml, xmml, ufp1
+ mand xmmh, xmmh, ufp2
+};
+
+def macroop ANDPS_XMM_P {
+ rdip t7
+ lea t1, seg, riprel, disp, dataSize=asz
+ ldfp ufp1, seg, [1, t0, t1], dataSize=8
+ ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
+ mand xmml, xmml, ufp1
+ mand xmmh, xmmh, ufp2
+};
+
+def macroop ANDPD_XMM_XMM {
+ mand xmml, xmml, xmmlm
+ mand xmmh, xmmh, xmmhm
+};
+
+def macroop ANDPD_XMM_M {
+ lea t1, seg, sib, disp, dataSize=asz
+ ldfp ufp1, seg, [1, t0, t1], dataSize=8
+ ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
+ mand xmml, xmml, ufp1
+ mand xmmh, xmmh, ufp2
+};
+
+def macroop ANDPD_XMM_P {
+ rdip t7
+ lea t1, seg, riprel, disp, dataSize=asz
+ ldfp ufp1, seg, [1, t0, t1], dataSize=8
+ ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
+ mand xmml, xmml, ufp1
+ mand xmmh, xmmh, ufp2
+};
+'''
# ANDNPS
# ANDNPD
-'''
# Authors: Gabe Black
microcode = '''
-# PAND
-# PANDN
+def macroop PAND_XMM_XMM {
+ mand xmml, xmml, xmmlm
+ mand xmmh, xmmh, xmmhm
+};
+
+def macroop PAND_XMM_M {
+ lea t1, seg, sib, disp, dataSize=asz
+ ldfp ufp1, seg, [1, t0, t1], dataSize=8
+ ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
+ mand xmml, xmml, ufp1
+ mand xmmh, xmmh, ufp2
+};
+
+def macroop PAND_XMM_P {
+ rdip t7
+ lea t1, seg, riprel, disp, dataSize=asz
+ ldfp ufp1, seg, [1, t0, t1], dataSize=8
+ ldfp ufp2, seg, [1, t0, t1], 8, dataSize=8
+ mand xmml, xmml, ufp1
+ mand xmmh, xmmh, ufp2
+};
'''
+# PANDN