| OLD | NEW |
| 1 //===- subzero/src/IceConditionCodesX8664.h - Condition Codes ---*- C++ -*-===// | 1 //===- subzero/src/IceConditionCodesX8664.h - Condition Codes ---*- 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 |
| 11 /// This file declares the condition codes for x86-64. | 11 /// This file declares the condition codes for x86-64. |
| 12 /// | 12 /// |
| 13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
| 14 | 14 |
| 15 #ifndef SUBZERO_SRC_ICECONDITIONCODESX8664_H | 15 #ifndef SUBZERO_SRC_ICECONDITIONCODESX8664_H |
| 16 #define SUBZERO_SRC_ICECONDITIONCODESX8664_H | 16 #define SUBZERO_SRC_ICECONDITIONCODESX8664_H |
| 17 | 17 |
| 18 #include "IceDefs.h" | 18 #include "IceDefs.h" |
| 19 #include "IceInstX8664.def" | 19 #include "IceInstX8664.def" |
| 20 | 20 |
| 21 namespace Ice { | 21 namespace Ice { |
| 22 | 22 |
| 23 class CondX8664 { | 23 class CondX8664 { |
| 24 public: | 24 public: |
| 25 /// An enum of condition codes used for branches and cmov. The enum value | 25 /// An enum of condition codes used for branches and cmov. The enum value |
| 26 /// should match the value used to encode operands in binary instructions. | 26 /// should match the value used to encode operands in binary instructions. |
| 27 enum BrCond { | 27 enum BrCond { |
| 28 #define X(tag, encode, opp, dump, emit) tag encode, | 28 #define X(val, encode, opp, dump, emit) val = encode, |
| 29 ICEINSTX8664BR_TABLE | 29 ICEINSTX8664BR_TABLE |
| 30 #undef X | 30 #undef X |
| 31 Br_None | 31 Br_None |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 /// An enum of condition codes relevant to the CMPPS instruction. The enum | 34 /// An enum of condition codes relevant to the CMPPS instruction. The enum |
| 35 /// value should match the value used to encode operands in binary | 35 /// value should match the value used to encode operands in binary |
| 36 /// instructions. | 36 /// instructions. |
| 37 enum CmppsCond { | 37 enum CmppsCond { |
| 38 #define X(tag, emit) tag, | 38 #define X(val, emit) val, |
| 39 ICEINSTX8664CMPPS_TABLE | 39 ICEINSTX8664CMPPS_TABLE |
| 40 #undef X | 40 #undef X |
| 41 Cmpps_Invalid | 41 Cmpps_Invalid |
| 42 }; | 42 }; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // end of namespace Ice | 45 } // end of namespace Ice |
| 46 | 46 |
| 47 #endif // SUBZERO_SRC_ICECONDITIONCODESX8664_H | 47 #endif // SUBZERO_SRC_ICECONDITIONCODESX8664_H |
| OLD | NEW |