diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 18:22:37 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 18:22:37 -0700 |
commit | 69f0bf743c9ae62a6e3a39fde8724eecc01568de (patch) | |
tree | 6539df05bbaff253b7182f1009f9ae3ec746227c /src/arch/x86/isa/insts/simd128/floating_point | |
parent | 982b3ad1f01e4d8da81f3ec28045c787a1cc3fba (diff) | |
download | gem5-69f0bf743c9ae62a6e3a39fde8724eecc01568de.tar.xz |
X86: (Re)implement XORPS and XORPD.
Diffstat (limited to 'src/arch/x86/isa/insts/simd128/floating_point')
-rw-r--r-- | src/arch/x86/isa/insts/simd128/floating_point/logical/exclusive_or.py | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/src/arch/x86/isa/insts/simd128/floating_point/logical/exclusive_or.py b/src/arch/x86/isa/insts/simd128/floating_point/logical/exclusive_or.py index 40477a8f2..5c20db204 100644 --- a/src/arch/x86/isa/insts/simd128/floating_point/logical/exclusive_or.py +++ b/src/arch/x86/isa/insts/simd128/floating_point/logical/exclusive_or.py @@ -54,25 +54,43 @@ # Authors: Gabe Black microcode = ''' -# XORPS - def macroop XORPD_XMM_XMM { - xorfp xmml, xmml, xmmlm - xorfp xmmh, xmmh, xmmhm + mxor xmml, xmml, xmmlm + mxor xmmh, xmmh, xmmhm }; def macroop XORPD_XMM_M { ldfp ufp1, seg, sib, disp, dataSize=8 ldfp ufp2, seg, sib, "DISPLACEMENT + 8", dataSize=8 - xorfp xmml, xmml, ufp1 - xorfp xmmh, xmmh, ufp2 + mxor xmml, xmml, ufp1 + mxor xmmh, xmmh, ufp2 }; def macroop XORPD_XMM_P { rdip t7 ldfp ufp1, seg, riprel, disp, dataSize=8 ldfp ufp2, seg, riprel, "DISPLACEMENT + 8", dataSize=8 - xorfp xmml, xmml, ufp1 - xorfp xmmh, xmmh, ufp2 + mxor xmml, xmml, ufp1 + mxor xmmh, xmmh, ufp2 +}; + +def macroop XORPS_XMM_XMM { + mxor xmml, xmml, xmmlm + mxor xmmh, xmmh, xmmhm +}; + +def macroop XORPS_XMM_M { + ldfp ufp1, seg, sib, disp, dataSize=8 + ldfp ufp2, seg, sib, "DISPLACEMENT + 8", dataSize=8 + mxor xmml, xmml, ufp1 + mxor xmmh, xmmh, ufp2 +}; + +def macroop XORPS_XMM_P { + rdip t7 + ldfp ufp1, seg, riprel, disp, dataSize=8 + ldfp ufp2, seg, riprel, "DISPLACEMENT + 8", dataSize=8 + mxor xmml, xmml, ufp1 + mxor xmmh, xmmh, ufp2 }; ''' |