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