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/simd128/integer | |
parent | e2759fe69c6b450a46624a9f97af74a330b41383 (diff) | |
download | gem5-be6267e895e4657192fc72872a70c0ab6bbc6537.tar.xz |
X86: Implement the integer media min instructions.
Diffstat (limited to 'src/arch/x86/isa/insts/simd128/integer')
-rw-r--r-- | src/arch/x86/isa/insts/simd128/integer/compare/compare_and_write_minimum_or_maximum.py | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/src/arch/x86/isa/insts/simd128/integer/compare/compare_and_write_minimum_or_maximum.py b/src/arch/x86/isa/insts/simd128/integer/compare/compare_and_write_minimum_or_maximum.py index 79b1aca4c..d7f191506 100644 --- a/src/arch/x86/isa/insts/simd128/integer/compare/compare_and_write_minimum_or_maximum.py +++ b/src/arch/x86/isa/insts/simd128/integer/compare/compare_and_write_minimum_or_maximum.py @@ -54,8 +54,46 @@ # Authors: Gabe Black microcode = ''' +def macroop PMINUB_XMM_XMM { + mmini xmml, xmml, xmmlm, size=1, ext=0 + mmini xmmh, xmmh, xmmhm, size=1, ext=0 +}; + +def macroop PMINUB_XMM_M { + ldfp ufp1, seg, sib, "DISPLACEMENT", dataSize=8 + ldfp ufp2, seg, sib, "DISPLACEMENT + 8", dataSize=8 + mmini xmml, xmml, ufp1, size=1, ext=0 + mmini xmmh, xmmh, ufp2, size=1, ext=0 +}; + +def macroop PMINUB_XMM_P { + rdip t7 + ldfp ufp1, seg, riprel, "DISPLACEMENT", dataSize=8 + ldfp ufp2, seg, riprel, "DISPLACEMENT + 8", dataSize=8 + mmini xmml, xmml, ufp1, size=1, ext=0 + mmini xmmh, xmmh, ufp2, size=1, ext=0 +}; + +def macroop PMINSW_XMM_XMM { + mmini xmml, xmml, xmmlm, size=2, ext=2 + mmini xmmh, xmmh, xmmhm, size=2, ext=2 +}; + +def macroop PMINSW_XMM_M { + ldfp ufp1, seg, sib, "DISPLACEMENT", dataSize=8 + ldfp ufp2, seg, sib, "DISPLACEMENT + 8", dataSize=8 + mmini xmml, xmml, ufp1, size=2, ext=2 + mmini xmmh, xmmh, ufp2, size=2, ext=2 +}; + +def macroop PMINSW_XMM_P { + rdip t7 + ldfp ufp1, seg, riprel, "DISPLACEMENT", dataSize=8 + ldfp ufp2, seg, riprel, "DISPLACEMENT + 8", dataSize=8 + mmini xmml, xmml, ufp1, size=2, ext=2 + mmini xmmh, xmmh, ufp2, size=2, ext=2 +}; + # PMAXUB -# PMINUB # PMAXSW -# PMINSW ''' |