diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 18:27:19 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 18:27:19 -0700 |
commit | 63403bd5628e722aa51045b86176a035ddd9eb75 (patch) | |
tree | fc028237f21f97008fdf9e2007971a4df706bb4c /src/arch/x86/isa/insts/simd128/floating_point/data_reordering | |
parent | 7b18f8a06297b741a60d50ddb7de811bb3afd824 (diff) | |
download | gem5-63403bd5628e722aa51045b86176a035ddd9eb75.tar.xz |
X86: Implement the remaining unpack instructions.
Diffstat (limited to 'src/arch/x86/isa/insts/simd128/floating_point/data_reordering')
-rw-r--r-- | src/arch/x86/isa/insts/simd128/floating_point/data_reordering/unpack_and_interleave.py | 74 |
1 files changed, 70 insertions, 4 deletions
diff --git a/src/arch/x86/isa/insts/simd128/floating_point/data_reordering/unpack_and_interleave.py b/src/arch/x86/isa/insts/simd128/floating_point/data_reordering/unpack_and_interleave.py index 93112f7d6..9244f5e6d 100644 --- a/src/arch/x86/isa/insts/simd128/floating_point/data_reordering/unpack_and_interleave.py +++ b/src/arch/x86/isa/insts/simd128/floating_point/data_reordering/unpack_and_interleave.py @@ -54,8 +54,74 @@ # Authors: Gabe Black microcode = ''' -# UNPCKHPS -# UNPCKHPD -# UNPCKLPS -# UNPCKLPD +def macroop UNPCKLPS_XMM_XMM { + unpack xmmh, xmml, xmmlm, sel=1, size=4 + unpack xmml, xmml, xmmlm, sel=0, size=4 +}; + +def macroop UNPCKLPS_XMM_M { + ldfp ufp1, seg, sib, disp, dataSize=8 + unpack xmmh, xmml, ufp1, sel=1, size=4 + unpack xmml, xmml, ufp1, sel=0, size=4 +}; + +def macroop UNPCKLPS_XMM_P { + rdip t7 + ldfp ufp1, seg, riprel, disp, dataSize=8 + unpack xmmh, xmml, ufp1, sel=1, size=4 + unpack xmml, xmml, ufp1, sel=0, size=4 +}; + +def macroop UNPCKLPD_XMM_XMM { + movfp xmmh, xmmlm +}; + +def macroop UNPCKLPD_XMM_M { + ldfp xmmh, seg, sib, disp, dataSize=8 +}; + +def macroop UNPCKLPD_XMM_P { + rdip t7 + ldfp xmmh, seg, riprel, disp, dataSize=8 +}; + +def macroop UNPCKHPS_XMM_XMM { + unpack xmml, xmmh, xmmhm, sel=0, size=4 + unpack xmmh, xmmh, xmmhm, sel=1, size=4 +}; + +def macroop UNPCKHPS_XMM_M { + lea t1, seg, sib, disp, dataSize=asz + ldfp ufp1, seg, [1, t0, t1], 8, dataSize=8 + unpack xmml, xmmh, ufp1, sel=0, size=4 + unpack xmmh, xmmh, ufp1, sel=1, size=4 +}; + +def macroop UNPCKHPS_XMM_P { + rdip t7 + lea t1, seg, riprel, disp, dataSize=asz + ldfp ufp1, seg, [1, t0, t1], 8, dataSize=8 + unpack xmml, xmmh, ufp1, sel=0, size=4 + unpack xmmh, xmmh, ufp1, sel=1, size=4 +}; + +def macroop UNPCKHPD_XMM_XMM { + movfp xmml, xmmh + movfp xmmh, xmmhm +}; + +def macroop UNPCKHPD_XMM_M { + lea t1, seg, sib, disp, dataSize=asz + ldfp ufp1, seg, [1, t0, t1], 8, dataSize=8 + movfp xmml, xmmh + movfp xmmh, ufp1 +}; + +def macroop UNPCKHPD_XMM_P { + rdip t7 + lea t1, seg, riprel, disp, dataSize=asz + ldfp ufp1, seg, [1, t0, t1], 8, dataSize=8 + movfp xmml, xmmh + movfp xmmh, ufp1 +}; ''' |