1/* 2 * Copyright (c) 2009 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 23 unchanged lines hidden (view full) --- 32#define __ARCH_X86_INSTS_MICROMEDIAOP_HH__ 33 34#include "arch/x86/insts/microop.hh" 35 36namespace X86ISA 37{ 38 enum MediaFlag { 39 MediaMultHiOp = 1, |
40 MediaSignedOp = 64, |
41 MediaScalarOp = 128 42 }; 43 44 class MediaOpBase : public X86MicroopBase 45 { 46 protected: 47 const RegIndex src1; 48 const RegIndex dest; --- 29 unchanged lines hidden (view full) --- 78 return scalarOp() ? 1 : (sizeof(FloatRegBits) / size); 79 } 80 81 bool 82 multHi() const 83 { 84 return ext & MediaMultHiOp; 85 } |
86 87 bool 88 signedOp() const 89 { 90 return ext & MediaSignedOp; 91 } |
92 }; 93 94 class MediaOpReg : public MediaOpBase 95 { 96 protected: 97 const RegIndex src2; 98 99 // Constructor --- 44 unchanged lines hidden --- |