microregop.hh (4713:c208cec7b5b3) | microregop.hh (4804:4a707cb7065b) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 99 unchanged lines hidden (view full) --- 108 */ 109 class RegOpBase : public X86MicroopBase 110 { 111 protected: 112 const RegIndex src1; 113 const RegIndex dest; 114 const uint8_t dataSize; 115 const uint16_t ext; | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 99 unchanged lines hidden (view full) --- 108 */ 109 class RegOpBase : public X86MicroopBase 110 { 111 protected: 112 const RegIndex src1; 113 const RegIndex dest; 114 const uint8_t dataSize; 115 const uint16_t ext; |
116 RegIndex foldOBit; |
|
116 117 // Constructor 118 RegOpBase(ExtMachInst _machInst, 119 const char *mnem, const char *_instMnem, 120 bool isMicro, bool isDelayed, 121 bool isFirst, bool isLast, 122 RegIndex _src1, RegIndex _dest, 123 uint8_t _dataSize, uint16_t _ext, 124 OpClass __opClass) : 125 X86MicroopBase(_machInst, mnem, _instMnem, 126 isMicro, isDelayed, isFirst, isLast, 127 __opClass), 128 src1(_src1), dest(_dest), 129 dataSize(_dataSize), ext(_ext) 130 { | 117 118 // Constructor 119 RegOpBase(ExtMachInst _machInst, 120 const char *mnem, const char *_instMnem, 121 bool isMicro, bool isDelayed, 122 bool isFirst, bool isLast, 123 RegIndex _src1, RegIndex _dest, 124 uint8_t _dataSize, uint16_t _ext, 125 OpClass __opClass) : 126 X86MicroopBase(_machInst, mnem, _instMnem, 127 isMicro, isDelayed, isFirst, isLast, 128 __opClass), 129 src1(_src1), dest(_dest), 130 dataSize(_dataSize), ext(_ext) 131 { |
132 foldOBit = (dataSize == 1 && !_machInst.rex.present) ? 1 << 6 : 0; |
|
131 } 132 133 //Figure out what the condition code flags should be. 134 uint64_t genFlags(uint64_t oldFlags, uint64_t flagMask, 135 uint64_t _dest, uint64_t _src1, uint64_t _src2, 136 bool subtract = false) const; 137 bool checkCondition(uint64_t flags) const; 138 }; --- 53 unchanged lines hidden --- | 133 } 134 135 //Figure out what the condition code flags should be. 136 uint64_t genFlags(uint64_t oldFlags, uint64_t flagMask, 137 uint64_t _dest, uint64_t _src1, uint64_t _src2, 138 bool subtract = false) const; 139 bool checkCondition(uint64_t flags) const; 140 }; --- 53 unchanged lines hidden --- |