micromediaop.hh (6799:36131e4dfb6e) micromediaop.hh (6800:335f8b406bb9)
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;

--- 22 unchanged lines hidden (view full) ---

31#ifndef __ARCH_X86_INSTS_MICROMEDIAOP_HH__
32#define __ARCH_X86_INSTS_MICROMEDIAOP_HH__
33
34#include "arch/x86/insts/microop.hh"
35
36namespace X86ISA
37{
38 enum MediaFlag {
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;

--- 22 unchanged lines hidden (view full) ---

31#ifndef __ARCH_X86_INSTS_MICROMEDIAOP_HH__
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,
39 MediaScalarOp = 128
40 };
41
42 class MediaOpBase : public X86MicroopBase
43 {
44 protected:
45 const RegIndex src1;
46 const RegIndex dest;

--- 23 unchanged lines hidden (view full) ---

70 return ext & MediaScalarOp;
71 }
72
73 int
74 numItems(int size) const
75 {
76 return scalarOp() ? 1 : (sizeof(FloatRegBits) / size);
77 }
40 MediaScalarOp = 128
41 };
42
43 class MediaOpBase : public X86MicroopBase
44 {
45 protected:
46 const RegIndex src1;
47 const RegIndex dest;

--- 23 unchanged lines hidden (view full) ---

71 return ext & MediaScalarOp;
72 }
73
74 int
75 numItems(int size) const
76 {
77 return scalarOp() ? 1 : (sizeof(FloatRegBits) / size);
78 }
79
80 bool
81 multHi() const
82 {
83 return ext & MediaMultHiOp;
84 }
78 };
79
80 class MediaOpReg : public MediaOpBase
81 {
82 protected:
83 const RegIndex src2;
84
85 // Constructor

--- 44 unchanged lines hidden ---
85 };
86
87 class MediaOpReg : public MediaOpBase
88 {
89 protected:
90 const RegIndex src2;
91
92 // Constructor

--- 44 unchanged lines hidden ---