diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 20:04:03 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-08-17 20:04:03 -0700 |
commit | be6267e895e4657192fc72872a70c0ab6bbc6537 (patch) | |
tree | ded7390ec9902509e4527e74e95cb5cebd4171c7 /src/arch/x86/isa/insts/simd64 | |
parent | e2759fe69c6b450a46624a9f97af74a330b41383 (diff) | |
download | gem5-be6267e895e4657192fc72872a70c0ab6bbc6537.tar.xz |
X86: Implement the integer media min instructions.
Diffstat (limited to 'src/arch/x86/isa/insts/simd64')
-rw-r--r-- | src/arch/x86/isa/insts/simd64/integer/compare/compare_and_write_minimum_or_maximum.py | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/src/arch/x86/isa/insts/simd64/integer/compare/compare_and_write_minimum_or_maximum.py b/src/arch/x86/isa/insts/simd64/integer/compare/compare_and_write_minimum_or_maximum.py index 79b1aca4c..34c1799b0 100644 --- a/src/arch/x86/isa/insts/simd64/integer/compare/compare_and_write_minimum_or_maximum.py +++ b/src/arch/x86/isa/insts/simd64/integer/compare/compare_and_write_minimum_or_maximum.py @@ -54,8 +54,36 @@ # Authors: Gabe Black microcode = ''' +def macroop PMINUB_MMX_MMX { + mmini mmx, mmx, mmxm, size=1, ext=0 +}; + +def macroop PMINUB_MMX_M { + ldfp ufp1, seg, sib, disp, dataSize=8 + mmini mmx, mmx, ufp1, size=1, ext=0 +}; + +def macroop PMINUB_MMX_P { + rdip t7 + ldfp ufp1, seg, riprel, disp, dataSize=8 + mmini mmx, mmx, ufp1, size=1, ext=0 +}; + +def macroop PMINSW_MMX_MMX { + mmini mmx, mmx, mmxm, size=2, ext=2 +}; + +def macroop PMINSW_MMX_M { + ldfp ufp1, seg, sib, disp, dataSize=8 + mmini mmx, mmx, ufp1, size=2, ext=2 +}; + +def macroop PMINSW_MMX_P { + rdip t7 + ldfp ufp1, seg, riprel, disp, dataSize=8 + mmini mmx, mmx, ufp1, size=2, ext=2 +}; + # PMAXUB -# PMINUB # PMAXSW -# PMINSW ''' |