summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/insts/simd128/integer/logical
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-08-17 18:23:04 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-08-17 18:23:04 -0700
commitf9346d25c8e2148a2eea06d8ce7126cc2b487527 (patch)
tree9f47b94565b89081c6752d2f94542d5af99625f8 /src/arch/x86/isa/insts/simd128/integer/logical
parent69f0bf743c9ae62a6e3a39fde8724eecc01568de (diff)
downloadgem5-f9346d25c8e2148a2eea06d8ce7126cc2b487527.tar.xz
X86: Implement PXOR.
Diffstat (limited to 'src/arch/x86/isa/insts/simd128/integer/logical')
-rw-r--r--src/arch/x86/isa/insts/simd128/integer/logical/exclusive_or.py22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/arch/x86/isa/insts/simd128/integer/logical/exclusive_or.py b/src/arch/x86/isa/insts/simd128/integer/logical/exclusive_or.py
index 336796e23..e72deae0d 100644
--- a/src/arch/x86/isa/insts/simd128/integer/logical/exclusive_or.py
+++ b/src/arch/x86/isa/insts/simd128/integer/logical/exclusive_or.py
@@ -54,5 +54,25 @@
# Authors: Gabe Black
microcode = '''
-# PXOR
+def macroop PXOR_XMM_XMM {
+ mxor xmml, xmml, xmmlm
+ mxor xmmh, xmmh, xmmhm
+};
+
+def macroop PXOR_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
+ mxor xmml, xmml, ufp1
+ mxor xmmh, xmmh, ufp2
+};
+
+def macroop PXOR_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
+ mxor xmml, xmml, ufp1
+ mxor xmmh, xmmh, ufp2
+};
'''