summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/insts/simd128/floating_point/logical/andp.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/x86/isa/insts/simd128/floating_point/logical/andp.py')
-rw-r--r--src/arch/x86/isa/insts/simd128/floating_point/logical/andp.py47
1 files changed, 44 insertions, 3 deletions
diff --git a/src/arch/x86/isa/insts/simd128/floating_point/logical/andp.py b/src/arch/x86/isa/insts/simd128/floating_point/logical/andp.py
index 8d7d3ba25..104af8fa3 100644
--- a/src/arch/x86/isa/insts/simd128/floating_point/logical/andp.py
+++ b/src/arch/x86/isa/insts/simd128/floating_point/logical/andp.py
@@ -54,8 +54,49 @@
# 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
-'''