integerop.isa (12104:edd63f9c6184) integerop.isa (12106:7784fac1b159)
1// Copyright (c) 2006-2007 The Regents of The University of Michigan
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions are
6// met: redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer;
8// redistributions in binary form must reproduce the above copyright

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

150}};
151
152output decoder {{
153
154 bool
155 IntOp::printPseudoOps(std::ostream &os, Addr pc,
156 const SymbolTable *symbab) const
157 {
1// Copyright (c) 2006-2007 The Regents of The University of Michigan
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions are
6// met: redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer;
8// redistributions in binary form must reproduce the above copyright

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

150}};
151
152output decoder {{
153
154 bool
155 IntOp::printPseudoOps(std::ostream &os, Addr pc,
156 const SymbolTable *symbab) const
157 {
158 if (!std::strcmp(mnemonic, "or") && _srcRegIdx[0].regIdx == 0) {
158 if (!std::strcmp(mnemonic, "or") && _srcRegIdx[0].index() == 0) {
159 printMnemonic(os, "mov");
160 printSrcReg(os, 1);
161 ccprintf(os, ", ");
162 printDestReg(os, 0);
163 return true;
164 }
165 return false;
166 }
167
168 bool
169 IntOpImm::printPseudoOps(std::ostream &os, Addr pc,
170 const SymbolTable *symbab) const
171 {
172 if (!std::strcmp(mnemonic, "or")) {
159 printMnemonic(os, "mov");
160 printSrcReg(os, 1);
161 ccprintf(os, ", ");
162 printDestReg(os, 0);
163 return true;
164 }
165 return false;
166 }
167
168 bool
169 IntOpImm::printPseudoOps(std::ostream &os, Addr pc,
170 const SymbolTable *symbab) const
171 {
172 if (!std::strcmp(mnemonic, "or")) {
173 if (_numSrcRegs > 0 && _srcRegIdx[0].regIdx == 0) {
173 if (_numSrcRegs > 0 && _srcRegIdx[0].index() == 0) {
174 if (imm == 0) {
175 printMnemonic(os, "clr");
176 } else {
177 printMnemonic(os, "mov");
178 ccprintf(os, " 0x%x, ", imm);
179 }
180 printDestReg(os, 0);
181 return true;

--- 189 unchanged lines hidden ---
174 if (imm == 0) {
175 printMnemonic(os, "clr");
176 } else {
177 printMnemonic(os, "mov");
178 ccprintf(os, " 0x%x, ", imm);
179 }
180 printDestReg(os, 0);
181 return true;

--- 189 unchanged lines hidden ---