| OLD | NEW |
| 1 //===- subzero/src/IceInstX8664.def - X-macros for x86-64 insts -*- C++ -*-===// | 1 //===- subzero/src/IceInstX8664.def - X-macros for x86-64 insts -*- 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 // This file defines properties of lowered x86-64 instructions in the | 10 // This file defines properties of lowered x86-64 instructions in the |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 X(Reg_xmm13, = Reg_xmm0 + 13, "xmm13", "", "", "", 1, 0, 0, 0, 0, 1) \ | 55 X(Reg_xmm13, = Reg_xmm0 + 13, "xmm13", "", "", "", 1, 0, 0, 0, 0, 1) \ |
| 56 X(Reg_xmm14, = Reg_xmm0 + 14, "xmm14", "", "", "", 1, 0, 0, 0, 0, 1) \ | 56 X(Reg_xmm14, = Reg_xmm0 + 14, "xmm14", "", "", "", 1, 0, 0, 0, 0, 1) \ |
| 57 X(Reg_xmm15, = Reg_xmm0 + 15, "xmm15", "", "", "", 1, 0, 0, 0, 0, 1) | 57 X(Reg_xmm15, = Reg_xmm0 + 15, "xmm15", "", "", "", 1, 0, 0, 0, 0, 1) |
| 58 //#define X(val, encode, name, name32, name16, name8, scratch, preserved, | 58 //#define X(val, encode, name, name32, name16, name8, scratch, preserved, |
| 59 // stackptr, frameptr, isI8, isInt, isFP) | 59 // stackptr, frameptr, isI8, isInt, isFP) |
| 60 | 60 |
| 61 // We also provide a combined table, so that there is a namespace where | 61 // We also provide a combined table, so that there is a namespace where |
| 62 // all of the registers are considered and have distinct numberings. | 62 // all of the registers are considered and have distinct numberings. |
| 63 // This is in contrast to the above, where the "encode" is based on how | 63 // This is in contrast to the above, where the "encode" is based on how |
| 64 // the register numbers will be encoded in binaries and values can overlap. | 64 // the register numbers will be encoded in binaries and values can overlap. |
| 65 // We don't want the register allocator choosing Reg_ah, in particular | |
| 66 // for lowering insertelement to pinsrb where internally we use an | |
| 67 // 8-bit operand but externally pinsrb uses a 32-bit register, in | |
| 68 // which Reg_ah doesn't map to eax. | |
| 69 #define REGX8664_TABLE \ | 65 #define REGX8664_TABLE \ |
| 70 /* val, encode, name64, name, name16, name8, scratch, preserved, \ | 66 /* val, encode, name64, name, name16, name8, scratch, preserved, \ |
| 71 stackptr, frameptr, isInt, isFP */ \ | 67 stackptr, frameptr, isInt, isFP */ \ |
| 72 REGX8664_GPR_TABLE \ | 68 REGX8664_GPR_TABLE \ |
| 73 X(Reg_ah, = Reg_rax + 4, "?ah", "?ah", "?ah", "ah", 0, 0, 0, 0, 0, 0) \ | |
| 74 REGX8664_XMM_TABLE | 69 REGX8664_XMM_TABLE |
| 75 //#define X(val, encode, name, name32, name16, name8, scratch, preserved, | 70 //#define X(val, encode, name, name32, name16, name8, scratch, preserved, |
| 76 // stackptr, frameptr, isI8, isInt, isFP) | 71 // stackptr, frameptr, isI8, isInt, isFP) |
| 77 | 72 |
| 78 #define REGX8664_TABLE_BOUNDS \ | 73 #define REGX8664_TABLE_BOUNDS \ |
| 79 /* val , init */ \ | 74 /* val , init */ \ |
| 80 X(Reg_GPR_First, = Reg_rax ) \ | 75 X(Reg_GPR_First, = Reg_rax ) \ |
| 81 X(Reg_GPR_Last , = Reg_r15 ) \ | 76 X(Reg_GPR_Last , = Reg_r15 ) \ |
| 82 X(Reg_XMM_First, = Reg_xmm0 ) \ | 77 X(Reg_XMM_First, = Reg_xmm0 ) \ |
| 83 X(Reg_XMM_Last , = Reg_xmm15) | 78 X(Reg_XMM_Last , = Reg_xmm15) |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 X(IceType_v4i1 , IceType_i32 , "?" , "" , "d" , "" , "" ) \ | 146 X(IceType_v4i1 , IceType_i32 , "?" , "" , "d" , "" , "" ) \ |
| 152 X(IceType_v8i1 , IceType_i16 , "?" , "" , "w" , "" , "" ) \ | 147 X(IceType_v8i1 , IceType_i16 , "?" , "" , "w" , "" , "" ) \ |
| 153 X(IceType_v16i1, IceType_i8 , "?" , "" , "b" , "" , "" ) \ | 148 X(IceType_v16i1, IceType_i8 , "?" , "" , "b" , "" , "" ) \ |
| 154 X(IceType_v16i8, IceType_i8 , "?" , "" , "b" , "" , "" ) \ | 149 X(IceType_v16i8, IceType_i8 , "?" , "" , "b" , "" , "" ) \ |
| 155 X(IceType_v8i16, IceType_i16 , "?" , "" , "w" , "" , "" ) \ | 150 X(IceType_v8i16, IceType_i16 , "?" , "" , "w" , "" , "" ) \ |
| 156 X(IceType_v4i32, IceType_i32 , "dq", "" , "d" , "" , "" ) \ | 151 X(IceType_v4i32, IceType_i32 , "dq", "" , "d" , "" , "" ) \ |
| 157 X(IceType_v4f32, IceType_f32 , "ps", "" , "d" , "" , "" ) | 152 X(IceType_v4f32, IceType_f32 , "ps", "" , "d" , "" , "" ) |
| 158 //#define X(tag, elementty, cvt, sdss, pack, width, fld) | 153 //#define X(tag, elementty, cvt, sdss, pack, width, fld) |
| 159 | 154 |
| 160 #endif // SUBZERO_SRC_ICEINSTX8664_DEF | 155 #endif // SUBZERO_SRC_ICEINSTX8664_DEF |
| OLD | NEW |