diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2009-12-19 01:48:31 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2009-12-19 01:48:31 -0800 |
commit | c7ca1d3c8a3b785c80ec23bd84666c3c6e08b4e4 (patch) | |
tree | 46c2eddae0dd6ccb43fafd81fce33f2a84208303 /src/arch/x86/insts | |
parent | 25545115336e961a570bafdb8c2934db0015dece (diff) | |
download | gem5-c7ca1d3c8a3b785c80ec23bd84666c3c6e08b4e4.tar.xz |
X86: Add a common named flag for signed media operations.
Diffstat (limited to 'src/arch/x86/insts')
-rw-r--r-- | src/arch/x86/insts/micromediaop.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/x86/insts/micromediaop.hh b/src/arch/x86/insts/micromediaop.hh index 7f8e3a364..854d4de09 100644 --- a/src/arch/x86/insts/micromediaop.hh +++ b/src/arch/x86/insts/micromediaop.hh @@ -37,6 +37,7 @@ namespace X86ISA { enum MediaFlag { MediaMultHiOp = 1, + MediaSignedOp = 64, MediaScalarOp = 128 }; @@ -82,6 +83,12 @@ namespace X86ISA { return ext & MediaMultHiOp; } + + bool + signedOp() const + { + return ext & MediaSignedOp; + } }; class MediaOpReg : public MediaOpBase |