summaryrefslogtreecommitdiff
path: root/src/arch/x86/isa/insts/simd64
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-08-17 20:04:03 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-08-17 20:04:03 -0700
commitbe6267e895e4657192fc72872a70c0ab6bbc6537 (patch)
treeded7390ec9902509e4527e74e95cb5cebd4171c7 /src/arch/x86/isa/insts/simd64
parente2759fe69c6b450a46624a9f97af74a330b41383 (diff)
downloadgem5-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.py32
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
'''