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 | 5d834c28ebd0fba5f1626486b3cbd2d6a476dead (patch) | |
tree | c6c618d7542ef9a63b41d2fb1f8b0c9926013b38 /src/arch/x86/isa/insts/simd64 | |
parent | c9a954c77a1fb59092f8165b3fe3d3dd75848cd6 (diff) | |
download | gem5-5d834c28ebd0fba5f1626486b3cbd2d6a476dead.tar.xz |
X86: Implement the integer media max 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 | 31 |
1 files changed, 29 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 34c1799b0..8d8247300 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 @@ -84,6 +84,33 @@ def macroop PMINSW_MMX_P { mmini mmx, mmx, ufp1, size=2, ext=2 }; -# PMAXUB -# PMAXSW +def macroop PMAXUB_MMX_MMX { + mmaxi mmx, mmx, mmxm, size=1, ext=0 +}; + +def macroop PMAXUB_MMX_M { + ldfp ufp1, seg, sib, disp, dataSize=8 + mmaxi mmx, mmx, ufp1, size=1, ext=0 +}; + +def macroop PMAXUB_MMX_P { + rdip t7 + ldfp ufp1, seg, riprel, disp, dataSize=8 + mmaxi mmx, mmx, ufp1, size=1, ext=0 +}; + +def macroop PMAXSW_MMX_MMX { + mmaxi mmx, mmx, mmxm, size=2, ext=2 +}; + +def macroop PMAXSW_MMX_M { + ldfp ufp1, seg, sib, disp, dataSize=8 + mmaxi mmx, mmx, ufp1, size=2, ext=2 +}; + +def macroop PMAXSW_MMX_P { + rdip t7 + ldfp ufp1, seg, riprel, disp, dataSize=8 + mmaxi mmx, mmx, ufp1, size=2, ext=2 +}; ''' |