| OLD | NEW |
| 1 //===- subzero/src/IceInstMips32.cpp - Mips32 instruction implementation --===// | 1 //===- subzero/src/IceInstMips32.cpp - Mips32 instruction implementation --===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 /// \file | 10 /// \file |
| 11 /// \brief Implements the InstMips32 and OperandMips32 classes, primarily the | 11 /// \brief Implements the InstMips32 and OperandMips32 classes, primarily the |
| 12 /// constructors and the dump()/emit() methods. | 12 /// constructors and the dump()/emit() methods. |
| 13 /// | 13 /// |
| 14 //===----------------------------------------------------------------------===// | 14 //===----------------------------------------------------------------------===// |
| 15 #include "IceAssemblerMIPS32.h" | 15 #include "IceAssemblerMIPS32.h" |
| 16 #include "IceCfg.h" | 16 #include "IceCfg.h" |
| 17 #include "IceCfgNode.h" | 17 #include "IceCfgNode.h" |
| 18 #include "IceInst.h" | 18 #include "IceInst.h" |
| 19 #include "IceInstMIPS32.h" | 19 #include "IceInstMIPS32.h" |
| 20 #include "IceOperand.h" | 20 #include "IceOperand.h" |
| 21 #include "IceRegistersMIPS32.h" | 21 #include "IceRegistersMIPS32.h" |
| 22 #include "IceTargetLoweringMIPS32.h" | 22 #include "IceTargetLoweringMIPS32.h" |
| 23 #include <limits> | 23 #include <limits> |
| 24 | 24 |
| 25 namespace Ice { | 25 namespace Ice { |
| 26 namespace MIPS32 { |
| 26 | 27 |
| 27 bool OperandMIPS32Mem::canHoldOffset(Type Ty, bool SignExt, int32_t Offset) { | 28 bool OperandMIPS32Mem::canHoldOffset(Type Ty, bool SignExt, int32_t Offset) { |
| 28 (void)SignExt; | 29 (void)SignExt; |
| 29 (void)Ty; | 30 (void)Ty; |
| 30 if ((std::numeric_limits<int16_t>::min() <= Offset) && | 31 if ((std::numeric_limits<int16_t>::min() <= Offset) && |
| 31 (Offset <= std::numeric_limits<int16_t>::max())) | 32 (Offset <= std::numeric_limits<int16_t>::max())) |
| 32 return true; | 33 return true; |
| 33 return false; | 34 return false; |
| 34 } | 35 } |
| 35 | 36 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 } else | 268 } else |
| 268 Str << "move"; | 269 Str << "move"; |
| 269 } | 270 } |
| 270 | 271 |
| 271 Str << "\t"; | 272 Str << "\t"; |
| 272 getDest()->emit(Func); | 273 getDest()->emit(Func); |
| 273 Str << ", "; | 274 Str << ", "; |
| 274 getSrc(0)->emit(Func); | 275 getSrc(0)->emit(Func); |
| 275 } | 276 } |
| 276 | 277 |
| 278 } // end of namespace MIPS32 |
| 277 } // end of namespace Ice | 279 } // end of namespace Ice |
| OLD | NEW |