pred.isa (7646:a444dbee8c07) | pred.isa (7848:cc5e64f8423f) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2010 ARM Limited 4// All rights reserved 5// 6// The license below extends only to copyright in the software and shall 7// not be construed as granting a license to any other intellectual 8// property including but not limited to intellectual property relating --- 57 unchanged lines hidden (view full) --- 66 IntRegIndex _dest, 67 IntRegIndex _op1, 68 uint32_t _imm, 69 bool _rotC) 70 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s, 71 _dest, _op1, _imm, _rotC) 72 { 73 %(constructor)s; | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2010 ARM Limited 4// All rights reserved 5// 6// The license below extends only to copyright in the software and shall 7// not be construed as granting a license to any other intellectual 8// property including but not limited to intellectual property relating --- 57 unchanged lines hidden (view full) --- 66 IntRegIndex _dest, 67 IntRegIndex _op1, 68 uint32_t _imm, 69 bool _rotC) 70 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s, 71 _dest, _op1, _imm, _rotC) 72 { 73 %(constructor)s; |
74 if (!(condCode == COND_AL || condCode == COND_UC)) { 75 for (int x = 0; x < _numDestRegs; x++) { 76 _srcRegIdx[_numSrcRegs++] = _destRegIdx[x]; 77 } 78 } |
|
74 } 75}}; 76 77def template DataRegDeclare {{ 78class %(class_name)s : public %(base_class)s 79{ 80 public: 81 // Constructor --- 10 unchanged lines hidden (view full) --- 92 IntRegIndex _op1, 93 IntRegIndex _op2, 94 int32_t _shiftAmt, 95 ArmShiftType _shiftType) 96 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s, 97 _dest, _op1, _op2, _shiftAmt, _shiftType) 98 { 99 %(constructor)s; | 79 } 80}}; 81 82def template DataRegDeclare {{ 83class %(class_name)s : public %(base_class)s 84{ 85 public: 86 // Constructor --- 10 unchanged lines hidden (view full) --- 97 IntRegIndex _op1, 98 IntRegIndex _op2, 99 int32_t _shiftAmt, 100 ArmShiftType _shiftType) 101 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s, 102 _dest, _op1, _op2, _shiftAmt, _shiftType) 103 { 104 %(constructor)s; |
105 if (!(condCode == COND_AL || condCode == COND_UC)) { 106 for (int x = 0; x < _numDestRegs; x++) { 107 _srcRegIdx[_numSrcRegs++] = _destRegIdx[x]; 108 } 109 } |
|
100 } 101}}; 102 103def template DataRegRegDeclare {{ 104class %(class_name)s : public %(base_class)s 105{ 106 public: 107 // Constructor --- 10 unchanged lines hidden (view full) --- 118 IntRegIndex _op1, 119 IntRegIndex _op2, 120 IntRegIndex _shift, 121 ArmShiftType _shiftType) 122 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s, 123 _dest, _op1, _op2, _shift, _shiftType) 124 { 125 %(constructor)s; | 110 } 111}}; 112 113def template DataRegRegDeclare {{ 114class %(class_name)s : public %(base_class)s 115{ 116 public: 117 // Constructor --- 10 unchanged lines hidden (view full) --- 128 IntRegIndex _op1, 129 IntRegIndex _op2, 130 IntRegIndex _shift, 131 ArmShiftType _shiftType) 132 : %(base_class)s("%(mnemonic)s", machInst, %(op_class)s, 133 _dest, _op1, _op2, _shift, _shiftType) 134 { 135 %(constructor)s; |
136 if (!(condCode == COND_AL || condCode == COND_UC)) { 137 for (int x = 0; x < _numDestRegs; x++) { 138 _srcRegIdx[_numSrcRegs++] = _destRegIdx[x]; 139 } 140 } |
|
126 } 127}}; 128 129def template PredOpExecute {{ 130 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const 131 { 132 Fault fault = NoFault; 133 uint64_t resTemp = 0; --- 44 unchanged lines hidden --- | 141 } 142}}; 143 144def template PredOpExecute {{ 145 Fault %(class_name)s::execute(%(CPU_exec_context)s *xc, Trace::InstRecord *traceData) const 146 { 147 Fault fault = NoFault; 148 uint64_t resTemp = 0; --- 44 unchanged lines hidden --- |