Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: src/IceInstMIPS32.def

Issue 1716483003: Subzero: implement 64 bit multiply in mips32 (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 //===- subzero/src/IceInstMIPS32.def - X-Macros for MIPS32 insts --*- C++ -*-=== // 1 //===- subzero/src/IceInstMIPS32.def - X-Macros for MIPS32 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 MIPS32 instructions in the form of x-macros. 10 // This file defines properties of MIPS32 instructions in the form of x-macros.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 X(Reg_K1, = Reg_ZERO + 27, "k1", 0, 0, 0, 0, 0, 0, 0, 0, 0, \ 96 X(Reg_K1, = Reg_ZERO + 27, "k1", 0, 0, 0, 0, 0, 0, 0, 0, 0, \
97 ALIASES1(Reg_K1)) \ 97 ALIASES1(Reg_K1)) \
98 X(Reg_GP, = Reg_ZERO + 28, "gp", 0, 0, 0, 0, 0, 0, 0, 0, 0, \ 98 X(Reg_GP, = Reg_ZERO + 28, "gp", 0, 0, 0, 0, 0, 0, 0, 0, 0, \
99 ALIASES1(Reg_GP)) \ 99 ALIASES1(Reg_GP)) \
100 X(Reg_SP, = Reg_ZERO + 29, "sp", 0, 0, 1, 0, 0, 0, 0, 0, 0, \ 100 X(Reg_SP, = Reg_ZERO + 29, "sp", 0, 0, 1, 0, 0, 0, 0, 0, 0, \
101 ALIASES1(Reg_SP)) \ 101 ALIASES1(Reg_SP)) \
102 X(Reg_FP, = Reg_ZERO + 30, "fp", 0, 0, 0, 1, 0, 0, 0, 0, 0, \ 102 X(Reg_FP, = Reg_ZERO + 30, "fp", 0, 0, 0, 1, 0, 0, 0, 0, 0, \
103 ALIASES1(Reg_FP)) \ 103 ALIASES1(Reg_FP)) \
104 X(Reg_RA, = Reg_ZERO + 31, "ra", 0, 1, 0, 0, 0, 0, 0, 0, 0, \ 104 X(Reg_RA, = Reg_ZERO + 31, "ra", 0, 1, 0, 0, 0, 0, 0, 0, 0, \
105 ALIASES1(Reg_RA)) \ 105 ALIASES1(Reg_RA)) \
106 X(Reg_LO, = Reg_ZERO + 32, "lo", 0, 0, 0, 0, 1, 0, 0, 0, 0, \
Jim Stichnoth 2016/02/19 14:53:09 The "encode" column should probably have some sent
Jim Stichnoth 2016/02/19 14:53:09 You have put 1's in the isInt column. This makes
rkotlerimgtec 2016/02/19 23:53:32 Done.
rkotlerimgtec 2016/02/19 23:53:32 Done.
107 ALIASES2(Reg_LO, Reg_LOHI)) \
108 X(Reg_HI, = Reg_ZERO + 33, "hi", 0, 0, 0, 0, 1, 0, 0, 0, 0, \
109 ALIASES2(Reg_HI, Reg_LOHI))
106 //#define X(val, encode, name, scratch, preserved, stackptr, frameptr, 110 //#define X(val, encode, name, scratch, preserved, stackptr, frameptr,
107 // isInt, isI64Pair, isFP32, isFP64, isVec128, alias_init) 111 // isInt, isI64Pair, isFP32, isFP64, isVec128, alias_init)
108 // TODO(reed kotler): List FP registers etc. 112 // TODO(reed kotler): List FP registers etc.
109 // Be able to grab even registers, and the corresponding odd register 113 // Be able to grab even registers, and the corresponding odd register
110 // for each even register. 114 // for each even register.
111 //#define X(val, encode, name, scratch, preserved, stackptr, frameptr, 115 //#define X(val, encode, name, scratch, preserved, stackptr, frameptr,
112 // isInt, isI64Pair, isFP32, isFP64, isVec128, alias_init) 116 // isInt, isI64Pair, isFP32, isFP64, isVec128, alias_init)
113 // The following defines a table with the available pairs of consecutive i32 117 // The following defines a table with the available pairs of consecutive i32
114 // GPRs starting at an even GPR that is not r14. Those are used to hold i64 118 // GPRs starting at an even GPR that is not r14. Those are used to hold i64
115 // variables for atomic memory operations. If one of the registers in the pair 119 // variables for atomic memory operations. If one of the registers in the pair
(...skipping 19 matching lines...) Expand all
135 X(Reg_S0S1, 16, "s0, s1", 0, 1, 0, 0, 0, 1, 0, 0, 0, \ 139 X(Reg_S0S1, 16, "s0, s1", 0, 1, 0, 0, 0, 1, 0, 0, 0, \
136 ALIASES3(Reg_S0, Reg_S1, Reg_S0S1)) \ 140 ALIASES3(Reg_S0, Reg_S1, Reg_S0S1)) \
137 X(Reg_S2S3, 18, "s2, s3", 0, 1, 0, 0, 0, 1, 0, 0, 0, \ 141 X(Reg_S2S3, 18, "s2, s3", 0, 1, 0, 0, 0, 1, 0, 0, 0, \
138 ALIASES3(Reg_S2, Reg_S3, Reg_S2S3)) \ 142 ALIASES3(Reg_S2, Reg_S3, Reg_S2S3)) \
139 X(Reg_S4S5, 20, "s4, s5", 0, 1, 0, 0, 0, 1, 0, 0, 0, \ 143 X(Reg_S4S5, 20, "s4, s5", 0, 1, 0, 0, 0, 1, 0, 0, 0, \
140 ALIASES3(Reg_S4, Reg_S5, Reg_S4S5)) \ 144 ALIASES3(Reg_S4, Reg_S5, Reg_S4S5)) \
141 X(Reg_S6S7, 22, "s6, s7", 0, 1, 0, 0, 0, 1, 0, 0, 0, \ 145 X(Reg_S6S7, 22, "s6, s7", 0, 1, 0, 0, 0, 1, 0, 0, 0, \
142 ALIASES3(Reg_S6, Reg_S7, Reg_S6S7)) \ 146 ALIASES3(Reg_S6, Reg_S7, Reg_S6S7)) \
143 X(Reg_T8T9, 26, "t8, t9", 1, 0, 0, 0, 0, 1, 0, 0, 0, \ 147 X(Reg_T8T9, 26, "t8, t9", 1, 0, 0, 0, 0, 1, 0, 0, 0, \
144 ALIASES3(Reg_T8, Reg_T9, Reg_T8T9)) \ 148 ALIASES3(Reg_T8, Reg_T9, Reg_T8T9)) \
149 X(Reg_LOHI, 8, "lo, hi", 1, 0, 0, 0, 0, 1, 0, 0, 0, \
Jim Stichnoth 2016/02/19 14:53:09 Same comments as above - 0's in all the bool colum
rkotlerimgtec 2016/02/19 23:53:32 Done.
150 ALIASES3(Reg_LO, Reg_HI, Reg_LOHI)) \
145 //#define X(val, encode, name, scratch, preserved, stackptr, frameptr, 151 //#define X(val, encode, name, scratch, preserved, stackptr, frameptr,
146 // isInt, isI64Pair, isFP32, isFP64, isVec128, alias_init) 152 // isInt, isI64Pair, isFP32, isFP64, isVec128, alias_init)
147 153
148 // We also provide a combined table, so that there is a namespace where 154 // We also provide a combined table, so that there is a namespace where
149 // all of the registers are considered and have distinct numberings. 155 // all of the registers are considered and have distinct numberings.
150 // This is in contrast to the above, where the "encode" is based on how 156 // This is in contrast to the above, where the "encode" is based on how
151 // the register numbers will be encoded in binaries and values can overlap. 157 // the register numbers will be encoded in binaries and values can overlap.
152 #define REGMIPS32_TABLE \ 158 #define REGMIPS32_TABLE \
153 /* val, encode, name, scratch, preserved, stackptr, frameptr, isInt, \ 159 /* val, encode, name, scratch, preserved, stackptr, frameptr, isInt, \
154 isFP32, isFP64, isVec128, alias_init */ \ 160 isFP32, isFP64, isVec128, alias_init */ \
155 REGMIPS32_GPR_TABLE \ 161 REGMIPS32_GPR_TABLE \
156 REGMIPS32_I64PAIR_TABLE 162 REGMIPS32_I64PAIR_TABLE
157 163
158 //#define X(val, encode, name, scratch, preserved, stackptr, frameptr, 164 //#define X(val, encode, name, scratch, preserved, stackptr, frameptr,
159 // isInt, isI64Pair, isFP32, isFP64, isVec128, alias_init) 165 // isInt, isI64Pair, isFP32, isFP64, isVec128, alias_init)
160 #define REGMIPS32_TABLE_BOUNDS \ 166 #define REGMIPS32_TABLE_BOUNDS \
161 /* val, init */ \ 167 /* val, init */ \
162 X(Reg_GPR_First, = Reg_ZERO) \ 168 X(Reg_GPR_First, = Reg_ZERO) \
163 X(Reg_GPR_Last, = Reg_RA) \ 169 X(Reg_GPR_Last, = Reg_HI) \
164 X(Reg_I64PAIR_First, = Reg_V0V1) \ 170 X(Reg_I64PAIR_First, = Reg_V0V1) \
165 X(Reg_I64PAIR_Last, = Reg_T8T9) \ 171 X(Reg_I64PAIR_Last, = Reg_LOHI) \
166 //define X(val, init) 172 //define X(val, init)
167 173
168 // TODO(reed kotler): add condition code tables, etc. 174 // TODO(reed kotler): add condition code tables, etc.
169 175
170 176
171 #endif // SUBZERO_SRC_ICEINSTMIPS32_DEF 177 #endif // SUBZERO_SRC_ICEINSTMIPS32_DEF
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698