summaryrefslogtreecommitdiff
path: root/src/arch/x86/insts
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-12-19 01:48:07 -0800
committerGabe Black <gblack@eecs.umich.edu>2009-12-19 01:48:07 -0800
commit25545115336e961a570bafdb8c2934db0015dece (patch)
treebb36546361917ce05079a539ba8d4d1397b6ed89 /src/arch/x86/insts
parente474079ddc1941246e000dc699f9acb5c6a8a5e0 (diff)
downloadgem5-25545115336e961a570bafdb8c2934db0015dece.tar.xz
X86: Create a common flag with a name to indicate high multiplies.
Diffstat (limited to 'src/arch/x86/insts')
-rw-r--r--src/arch/x86/insts/micromediaop.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/x86/insts/micromediaop.hh b/src/arch/x86/insts/micromediaop.hh
index f2871f67e..7f8e3a364 100644
--- a/src/arch/x86/insts/micromediaop.hh
+++ b/src/arch/x86/insts/micromediaop.hh
@@ -36,6 +36,7 @@
namespace X86ISA
{
enum MediaFlag {
+ MediaMultHiOp = 1,
MediaScalarOp = 128
};
@@ -75,6 +76,12 @@ namespace X86ISA
{
return scalarOp() ? 1 : (sizeof(FloatRegBits) / size);
}
+
+ bool
+ multHi() const
+ {
+ return ext & MediaMultHiOp;
+ }
};
class MediaOpReg : public MediaOpBase