| OLD | NEW |
| 1 //===- subzero/src/IceRegistersX8632.h - Register information ---*- C++ -*-===// | 1 //===- subzero/src/IceRegistersX8632.h - Register information ---*- C++ -*-===// |
| 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 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 /// An enum of X87 Stack Registers. The enum value does match the encoding | 74 /// An enum of X87 Stack Registers. The enum value does match the encoding |
| 75 /// used to binary encode register operands in instructions. | 75 /// used to binary encode register operands in instructions. |
| 76 enum X87STRegister { | 76 enum X87STRegister { |
| 77 #define X(val, encode, name) Encoded_##val = encode, | 77 #define X(val, encode, name) Encoded_##val = encode, |
| 78 X87ST_REGX8632_TABLE | 78 X87ST_REGX8632_TABLE |
| 79 #undef X | 79 #undef X |
| 80 Encoded_Not_X87STReg = -1 | 80 Encoded_Not_X87STReg = -1 |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 static inline X87STRegister getEncodedSTReg(int32_t RegNum) { | 83 static inline X87STRegister getEncodedSTReg(uint32_t X87RegNum) { |
| 84 assert(Encoded_X87ST_First <= RegNum); | 84 assert(int(Encoded_X87ST_First) <= int(X87RegNum)); |
| 85 assert(RegNum <= Encoded_X87ST_Last); | 85 assert(X87RegNum <= Encoded_X87ST_Last); |
| 86 return X87STRegister(RegNum); | 86 return X87STRegister(X87RegNum); |
| 87 } | 87 } |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // end of namespace Ice | 90 } // end of namespace Ice |
| 91 | 91 |
| 92 #endif // SUBZERO_SRC_ICEREGISTERSX8632_H | 92 #endif // SUBZERO_SRC_ICEREGISTERSX8632_H |
| OLD | NEW |