[mips][msa] Made the operand register sets optional for the BIT_[BHWD] formats
[oota-llvm.git] / lib / Target / Mips / MipsMSAInstrInfo.td
1 //===- MipsMSAInstrInfo.td - MSA ASE instructions -*- tablegen ------------*-=//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file describes Mips MSA ASE instructions.
11 //
12 //===----------------------------------------------------------------------===//
13
14 def SDT_MipsVecCond : SDTypeProfile<1, 1, [SDTCisInt<0>, SDTCisVec<1>]>;
15
16 def MipsVAllNonZero : SDNode<"MipsISD::VALL_NONZERO", SDT_MipsVecCond>;
17 def MipsVAnyNonZero : SDNode<"MipsISD::VANY_NONZERO", SDT_MipsVecCond>;
18 def MipsVAllZero : SDNode<"MipsISD::VALL_ZERO", SDT_MipsVecCond>;
19 def MipsVAnyZero : SDNode<"MipsISD::VANY_ZERO", SDT_MipsVecCond>;
20
21 def immSExt5 : ImmLeaf<i32, [{return isInt<5>(Imm);}]>;
22 def immSExt10: ImmLeaf<i32, [{return isInt<10>(Imm);}]>;
23
24 def uimm3 : Operand<i32> {
25   let PrintMethod = "printUnsignedImm";
26 }
27
28 def uimm4 : Operand<i32> {
29   let PrintMethod = "printUnsignedImm";
30 }
31
32 def uimm6 : Operand<i32> {
33   let PrintMethod = "printUnsignedImm";
34 }
35
36 def uimm8 : Operand<i32> {
37   let PrintMethod = "printUnsignedImm";
38 }
39
40 def simm5 : Operand<i32>;
41
42 def simm10 : Operand<i32>;
43
44 // Instruction encoding.
45 class ADD_A_B_ENC : MSA_3R_FMT<0b000, 0b00, 0b010000>;
46 class ADD_A_H_ENC : MSA_3R_FMT<0b000, 0b01, 0b010000>;
47 class ADD_A_W_ENC : MSA_3R_FMT<0b000, 0b10, 0b010000>;
48 class ADD_A_D_ENC : MSA_3R_FMT<0b000, 0b11, 0b010000>;
49
50 class ADDS_A_B_ENC : MSA_3R_FMT<0b001, 0b00, 0b010000>;
51 class ADDS_A_H_ENC : MSA_3R_FMT<0b001, 0b01, 0b010000>;
52 class ADDS_A_W_ENC : MSA_3R_FMT<0b001, 0b10, 0b010000>;
53 class ADDS_A_D_ENC : MSA_3R_FMT<0b001, 0b11, 0b010000>;
54
55 class ADDS_S_B_ENC : MSA_3R_FMT<0b010, 0b00, 0b010000>;
56 class ADDS_S_H_ENC : MSA_3R_FMT<0b010, 0b01, 0b010000>;
57 class ADDS_S_W_ENC : MSA_3R_FMT<0b010, 0b10, 0b010000>;
58 class ADDS_S_D_ENC : MSA_3R_FMT<0b010, 0b11, 0b010000>;
59
60 class ADDS_U_B_ENC : MSA_3R_FMT<0b011, 0b00, 0b010000>;
61 class ADDS_U_H_ENC : MSA_3R_FMT<0b011, 0b01, 0b010000>;
62 class ADDS_U_W_ENC : MSA_3R_FMT<0b011, 0b10, 0b010000>;
63 class ADDS_U_D_ENC : MSA_3R_FMT<0b011, 0b11, 0b010000>;
64
65 class ADDV_B_ENC : MSA_3R_FMT<0b000, 0b00, 0b001110>;
66 class ADDV_H_ENC : MSA_3R_FMT<0b000, 0b01, 0b001110>;
67 class ADDV_W_ENC : MSA_3R_FMT<0b000, 0b10, 0b001110>;
68 class ADDV_D_ENC : MSA_3R_FMT<0b000, 0b11, 0b001110>;
69
70 class ADDVI_B_ENC : MSA_I5_FMT<0b000, 0b00, 0b000110>;
71 class ADDVI_H_ENC : MSA_I5_FMT<0b000, 0b01, 0b000110>;
72 class ADDVI_W_ENC : MSA_I5_FMT<0b000, 0b10, 0b000110>;
73 class ADDVI_D_ENC : MSA_I5_FMT<0b000, 0b11, 0b000110>;
74
75 class AND_V_ENC : MSA_VEC_FMT<0b00000, 0b011110>;
76
77 class ANDI_B_ENC : MSA_I8_FMT<0b00, 0b000000>;
78
79 class ASUB_S_B_ENC : MSA_3R_FMT<0b100, 0b00, 0b010001>;
80 class ASUB_S_H_ENC : MSA_3R_FMT<0b100, 0b01, 0b010001>;
81 class ASUB_S_W_ENC : MSA_3R_FMT<0b100, 0b10, 0b010001>;
82 class ASUB_S_D_ENC : MSA_3R_FMT<0b100, 0b11, 0b010001>;
83
84 class ASUB_U_B_ENC : MSA_3R_FMT<0b101, 0b00, 0b010001>;
85 class ASUB_U_H_ENC : MSA_3R_FMT<0b101, 0b01, 0b010001>;
86 class ASUB_U_W_ENC : MSA_3R_FMT<0b101, 0b10, 0b010001>;
87 class ASUB_U_D_ENC : MSA_3R_FMT<0b101, 0b11, 0b010001>;
88
89 class AVE_S_B_ENC : MSA_3R_FMT<0b100, 0b00, 0b010000>;
90 class AVE_S_H_ENC : MSA_3R_FMT<0b100, 0b01, 0b010000>;
91 class AVE_S_W_ENC : MSA_3R_FMT<0b100, 0b10, 0b010000>;
92 class AVE_S_D_ENC : MSA_3R_FMT<0b100, 0b11, 0b010000>;
93
94 class AVE_U_B_ENC : MSA_3R_FMT<0b101, 0b00, 0b010000>;
95 class AVE_U_H_ENC : MSA_3R_FMT<0b101, 0b01, 0b010000>;
96 class AVE_U_W_ENC : MSA_3R_FMT<0b101, 0b10, 0b010000>;
97 class AVE_U_D_ENC : MSA_3R_FMT<0b101, 0b11, 0b010000>;
98
99 class AVER_S_B_ENC : MSA_3R_FMT<0b110, 0b00, 0b010000>;
100 class AVER_S_H_ENC : MSA_3R_FMT<0b110, 0b01, 0b010000>;
101 class AVER_S_W_ENC : MSA_3R_FMT<0b110, 0b10, 0b010000>;
102 class AVER_S_D_ENC : MSA_3R_FMT<0b110, 0b11, 0b010000>;
103
104 class AVER_U_B_ENC : MSA_3R_FMT<0b111, 0b00, 0b010000>;
105 class AVER_U_H_ENC : MSA_3R_FMT<0b111, 0b01, 0b010000>;
106 class AVER_U_W_ENC : MSA_3R_FMT<0b111, 0b10, 0b010000>;
107 class AVER_U_D_ENC : MSA_3R_FMT<0b111, 0b11, 0b010000>;
108
109 class BCLR_B_ENC : MSA_3R_FMT<0b011, 0b00, 0b001101>;
110 class BCLR_H_ENC : MSA_3R_FMT<0b011, 0b01, 0b001101>;
111 class BCLR_W_ENC : MSA_3R_FMT<0b011, 0b10, 0b001101>;
112 class BCLR_D_ENC : MSA_3R_FMT<0b011, 0b11, 0b001101>;
113
114 class BCLRI_B_ENC : MSA_BIT_B_FMT<0b011, 0b001001>;
115 class BCLRI_H_ENC : MSA_BIT_H_FMT<0b011, 0b001001>;
116 class BCLRI_W_ENC : MSA_BIT_W_FMT<0b011, 0b001001>;
117 class BCLRI_D_ENC : MSA_BIT_D_FMT<0b011, 0b001001>;
118
119 class BINSL_B_ENC : MSA_3R_FMT<0b110, 0b00, 0b001101>;
120 class BINSL_H_ENC : MSA_3R_FMT<0b110, 0b01, 0b001101>;
121 class BINSL_W_ENC : MSA_3R_FMT<0b110, 0b10, 0b001101>;
122 class BINSL_D_ENC : MSA_3R_FMT<0b110, 0b11, 0b001101>;
123
124 class BINSLI_B_ENC : MSA_BIT_B_FMT<0b110, 0b001001>;
125 class BINSLI_H_ENC : MSA_BIT_H_FMT<0b110, 0b001001>;
126 class BINSLI_W_ENC : MSA_BIT_W_FMT<0b110, 0b001001>;
127 class BINSLI_D_ENC : MSA_BIT_D_FMT<0b110, 0b001001>;
128
129 class BINSR_B_ENC : MSA_3R_FMT<0b111, 0b00, 0b001101>;
130 class BINSR_H_ENC : MSA_3R_FMT<0b111, 0b01, 0b001101>;
131 class BINSR_W_ENC : MSA_3R_FMT<0b111, 0b10, 0b001101>;
132 class BINSR_D_ENC : MSA_3R_FMT<0b111, 0b11, 0b001101>;
133
134 class BINSRI_B_ENC : MSA_BIT_B_FMT<0b111, 0b001001>;
135 class BINSRI_H_ENC : MSA_BIT_H_FMT<0b111, 0b001001>;
136 class BINSRI_W_ENC : MSA_BIT_W_FMT<0b111, 0b001001>;
137 class BINSRI_D_ENC : MSA_BIT_D_FMT<0b111, 0b001001>;
138
139 class BMNZ_V_ENC : MSA_VEC_FMT<0b00100, 0b011110>;
140
141 class BMNZI_B_ENC : MSA_I8_FMT<0b00, 0b000001>;
142
143 class BMZ_V_ENC : MSA_VEC_FMT<0b00101, 0b011110>;
144
145 class BMZI_B_ENC : MSA_I8_FMT<0b01, 0b000001>;
146
147 class BNEG_B_ENC : MSA_3R_FMT<0b101, 0b00, 0b001101>;
148 class BNEG_H_ENC : MSA_3R_FMT<0b101, 0b01, 0b001101>;
149 class BNEG_W_ENC : MSA_3R_FMT<0b101, 0b10, 0b001101>;
150 class BNEG_D_ENC : MSA_3R_FMT<0b101, 0b11, 0b001101>;
151
152 class BNEGI_B_ENC : MSA_BIT_B_FMT<0b101, 0b001001>;
153 class BNEGI_H_ENC : MSA_BIT_H_FMT<0b101, 0b001001>;
154 class BNEGI_W_ENC : MSA_BIT_W_FMT<0b101, 0b001001>;
155 class BNEGI_D_ENC : MSA_BIT_D_FMT<0b101, 0b001001>;
156
157 class BNZ_B_ENC : MSA_I10_FMT<0b000, 0b00, 0b001100>;
158 class BNZ_H_ENC : MSA_I10_FMT<0b000, 0b01, 0b001100>;
159 class BNZ_W_ENC : MSA_I10_FMT<0b000, 0b10, 0b001100>;
160 class BNZ_D_ENC : MSA_I10_FMT<0b000, 0b11, 0b001100>;
161
162 class BNZ_V_ENC : MSA_VEC_FMT<0b01000, 0b011110>;
163
164 class BSEL_V_ENC : MSA_VECS10_FMT<0b00110, 0b011110>;
165
166 class BSELI_B_ENC : MSA_I8_FMT<0b10, 0b000001>;
167
168 class BSET_B_ENC : MSA_3R_FMT<0b100, 0b00, 0b001101>;
169 class BSET_H_ENC : MSA_3R_FMT<0b100, 0b01, 0b001101>;
170 class BSET_W_ENC : MSA_3R_FMT<0b100, 0b10, 0b001101>;
171 class BSET_D_ENC : MSA_3R_FMT<0b100, 0b11, 0b001101>;
172
173 class BSETI_B_ENC : MSA_BIT_B_FMT<0b100, 0b001001>;
174 class BSETI_H_ENC : MSA_BIT_H_FMT<0b100, 0b001001>;
175 class BSETI_W_ENC : MSA_BIT_W_FMT<0b100, 0b001001>;
176 class BSETI_D_ENC : MSA_BIT_D_FMT<0b100, 0b001001>;
177
178 class BZ_B_ENC : MSA_I10_FMT<0b001, 0b00, 0b001100>;
179 class BZ_H_ENC : MSA_I10_FMT<0b001, 0b01, 0b001100>;
180 class BZ_W_ENC : MSA_I10_FMT<0b001, 0b10, 0b001100>;
181 class BZ_D_ENC : MSA_I10_FMT<0b001, 0b11, 0b001100>;
182
183 class BZ_V_ENC : MSA_VECS10_FMT<0b01001, 0b011110>;
184
185 class CEQ_B_ENC : MSA_3R_FMT<0b000, 0b00, 0b001111>;
186 class CEQ_H_ENC : MSA_3R_FMT<0b000, 0b01, 0b001111>;
187 class CEQ_W_ENC : MSA_3R_FMT<0b000, 0b10, 0b001111>;
188 class CEQ_D_ENC : MSA_3R_FMT<0b000, 0b11, 0b001111>;
189
190 class CEQI_B_ENC : MSA_I5_FMT<0b000, 0b00, 0b000111>;
191 class CEQI_H_ENC : MSA_I5_FMT<0b000, 0b01, 0b000111>;
192 class CEQI_W_ENC : MSA_I5_FMT<0b000, 0b10, 0b000111>;
193 class CEQI_D_ENC : MSA_I5_FMT<0b000, 0b11, 0b000111>;
194
195 class CFCMSA_ENC : MSA_ELM_FMT<0b0001111110, 0b011001>;
196
197 class CLE_S_B_ENC : MSA_3R_FMT<0b100, 0b00, 0b001111>;
198 class CLE_S_H_ENC : MSA_3R_FMT<0b100, 0b01, 0b001111>;
199 class CLE_S_W_ENC : MSA_3R_FMT<0b100, 0b10, 0b001111>;
200 class CLE_S_D_ENC : MSA_3R_FMT<0b100, 0b11, 0b001111>;
201
202 class CLE_U_B_ENC : MSA_3R_FMT<0b101, 0b00, 0b001111>;
203 class CLE_U_H_ENC : MSA_3R_FMT<0b101, 0b01, 0b001111>;
204 class CLE_U_W_ENC : MSA_3R_FMT<0b101, 0b10, 0b001111>;
205 class CLE_U_D_ENC : MSA_3R_FMT<0b101, 0b11, 0b001111>;
206
207 class CLEI_S_B_ENC : MSA_I5_FMT<0b100, 0b00, 0b000111>;
208 class CLEI_S_H_ENC : MSA_I5_FMT<0b100, 0b01, 0b000111>;
209 class CLEI_S_W_ENC : MSA_I5_FMT<0b100, 0b10, 0b000111>;
210 class CLEI_S_D_ENC : MSA_I5_FMT<0b100, 0b11, 0b000111>;
211
212 class CLEI_U_B_ENC : MSA_I5_FMT<0b101, 0b00, 0b000111>;
213 class CLEI_U_H_ENC : MSA_I5_FMT<0b101, 0b01, 0b000111>;
214 class CLEI_U_W_ENC : MSA_I5_FMT<0b101, 0b10, 0b000111>;
215 class CLEI_U_D_ENC : MSA_I5_FMT<0b101, 0b11, 0b000111>;
216
217 class CLT_S_B_ENC : MSA_3R_FMT<0b010, 0b00, 0b001111>;
218 class CLT_S_H_ENC : MSA_3R_FMT<0b010, 0b01, 0b001111>;
219 class CLT_S_W_ENC : MSA_3R_FMT<0b010, 0b10, 0b001111>;
220 class CLT_S_D_ENC : MSA_3R_FMT<0b010, 0b11, 0b001111>;
221
222 class CLT_U_B_ENC : MSA_3R_FMT<0b011, 0b00, 0b001111>;
223 class CLT_U_H_ENC : MSA_3R_FMT<0b011, 0b01, 0b001111>;
224 class CLT_U_W_ENC : MSA_3R_FMT<0b011, 0b10, 0b001111>;
225 class CLT_U_D_ENC : MSA_3R_FMT<0b011, 0b11, 0b001111>;
226
227 class CLTI_S_B_ENC : MSA_I5_FMT<0b010, 0b00, 0b000111>;
228 class CLTI_S_H_ENC : MSA_I5_FMT<0b010, 0b01, 0b000111>;
229 class CLTI_S_W_ENC : MSA_I5_FMT<0b010, 0b10, 0b000111>;
230 class CLTI_S_D_ENC : MSA_I5_FMT<0b010, 0b11, 0b000111>;
231
232 class CLTI_U_B_ENC : MSA_I5_FMT<0b011, 0b00, 0b000111>;
233 class CLTI_U_H_ENC : MSA_I5_FMT<0b011, 0b01, 0b000111>;
234 class CLTI_U_W_ENC : MSA_I5_FMT<0b011, 0b10, 0b000111>;
235 class CLTI_U_D_ENC : MSA_I5_FMT<0b011, 0b11, 0b000111>;
236
237 class COPY_S_B_ENC : MSA_ELM_B_FMT<0b0010, 0b011001>;
238 class COPY_S_H_ENC : MSA_ELM_H_FMT<0b0010, 0b011001>;
239 class COPY_S_W_ENC : MSA_ELM_W_FMT<0b0010, 0b011001>;
240
241 class COPY_U_B_ENC : MSA_ELM_B_FMT<0b0011, 0b011001>;
242 class COPY_U_H_ENC : MSA_ELM_H_FMT<0b0011, 0b011001>;
243 class COPY_U_W_ENC : MSA_ELM_W_FMT<0b0011, 0b011001>;
244
245 class CTCMSA_ENC : MSA_ELM_FMT<0b0000111110, 0b011001>;
246
247 class DIV_S_B_ENC : MSA_3R_FMT<0b100, 0b00, 0b010010>;
248 class DIV_S_H_ENC : MSA_3R_FMT<0b100, 0b01, 0b010010>;
249 class DIV_S_W_ENC : MSA_3R_FMT<0b100, 0b10, 0b010010>;
250 class DIV_S_D_ENC : MSA_3R_FMT<0b100, 0b11, 0b010010>;
251
252 class DIV_U_B_ENC : MSA_3R_FMT<0b101, 0b00, 0b010010>;
253 class DIV_U_H_ENC : MSA_3R_FMT<0b101, 0b01, 0b010010>;
254 class DIV_U_W_ENC : MSA_3R_FMT<0b101, 0b10, 0b010010>;
255 class DIV_U_D_ENC : MSA_3R_FMT<0b101, 0b11, 0b010010>;
256
257 class DOTP_S_B_ENC : MSA_3R_FMT<0b000, 0b00, 0b010011>;
258 class DOTP_S_H_ENC : MSA_3R_FMT<0b000, 0b01, 0b010011>;
259 class DOTP_S_W_ENC : MSA_3R_FMT<0b000, 0b10, 0b010011>;
260 class DOTP_S_D_ENC : MSA_3R_FMT<0b000, 0b11, 0b010011>;
261
262 class DOTP_U_B_ENC : MSA_3R_FMT<0b001, 0b00, 0b010011>;
263 class DOTP_U_H_ENC : MSA_3R_FMT<0b001, 0b01, 0b010011>;
264 class DOTP_U_W_ENC : MSA_3R_FMT<0b001, 0b10, 0b010011>;
265 class DOTP_U_D_ENC : MSA_3R_FMT<0b001, 0b11, 0b010011>;
266
267 class DPADD_S_H_ENC : MSA_3R_FMT<0b010, 0b01, 0b010011>;
268 class DPADD_S_W_ENC : MSA_3R_FMT<0b010, 0b10, 0b010011>;
269 class DPADD_S_D_ENC : MSA_3R_FMT<0b010, 0b11, 0b010011>;
270
271 class DPADD_U_H_ENC : MSA_3R_FMT<0b011, 0b01, 0b010011>;
272 class DPADD_U_W_ENC : MSA_3R_FMT<0b011, 0b10, 0b010011>;
273 class DPADD_U_D_ENC : MSA_3R_FMT<0b011, 0b11, 0b010011>;
274
275 class DPSUB_S_H_ENC : MSA_3R_FMT<0b100, 0b01, 0b010011>;
276 class DPSUB_S_W_ENC : MSA_3R_FMT<0b100, 0b10, 0b010011>;
277 class DPSUB_S_D_ENC : MSA_3R_FMT<0b100, 0b11, 0b010011>;
278
279 class DPSUB_U_H_ENC : MSA_3R_FMT<0b101, 0b01, 0b010011>;
280 class DPSUB_U_W_ENC : MSA_3R_FMT<0b101, 0b10, 0b010011>;
281 class DPSUB_U_D_ENC : MSA_3R_FMT<0b101, 0b11, 0b010011>;
282
283 class FADD_W_ENC : MSA_3RF_FMT<0b0000, 0b0, 0b011011>;
284 class FADD_D_ENC : MSA_3RF_FMT<0b0000, 0b1, 0b011011>;
285
286 class FCAF_W_ENC : MSA_3RF_FMT<0b0000, 0b0, 0b011010>;
287 class FCAF_D_ENC : MSA_3RF_FMT<0b0000, 0b1, 0b011010>;
288
289 class FCEQ_W_ENC : MSA_3RF_FMT<0b0010, 0b0, 0b011010>;
290 class FCEQ_D_ENC : MSA_3RF_FMT<0b0010, 0b1, 0b011010>;
291
292 class FCLASS_W_ENC : MSA_2RF_FMT<0b110010000, 0b0, 0b011110>;
293 class FCLASS_D_ENC : MSA_2RF_FMT<0b110010000, 0b1, 0b011110>;
294
295 class FCLE_W_ENC : MSA_3RF_FMT<0b0110, 0b0, 0b011010>;
296 class FCLE_D_ENC : MSA_3RF_FMT<0b0110, 0b1, 0b011010>;
297
298 class FCLT_W_ENC : MSA_3RF_FMT<0b0100, 0b0, 0b011010>;
299 class FCLT_D_ENC : MSA_3RF_FMT<0b0100, 0b1, 0b011010>;
300
301 class FCNE_W_ENC : MSA_3RF_FMT<0b0011, 0b0, 0b011100>;
302 class FCNE_D_ENC : MSA_3RF_FMT<0b0011, 0b1, 0b011100>;
303
304 class FCOR_W_ENC : MSA_3RF_FMT<0b0001, 0b0, 0b011100>;
305 class FCOR_D_ENC : MSA_3RF_FMT<0b0001, 0b1, 0b011100>;
306
307 class FCUEQ_W_ENC : MSA_3RF_FMT<0b0011, 0b0, 0b011010>;
308 class FCUEQ_D_ENC : MSA_3RF_FMT<0b0011, 0b1, 0b011010>;
309
310 class FCULE_W_ENC : MSA_3RF_FMT<0b0111, 0b0, 0b011010>;
311 class FCULE_D_ENC : MSA_3RF_FMT<0b0111, 0b1, 0b011010>;
312
313 class FCULT_W_ENC : MSA_3RF_FMT<0b0101, 0b0, 0b011010>;
314 class FCULT_D_ENC : MSA_3RF_FMT<0b0101, 0b1, 0b011010>;
315
316 class FCUN_W_ENC : MSA_3RF_FMT<0b0001, 0b0, 0b011010>;
317 class FCUN_D_ENC : MSA_3RF_FMT<0b0001, 0b1, 0b011010>;
318
319 class FCUNE_W_ENC : MSA_3RF_FMT<0b0010, 0b0, 0b011100>;
320 class FCUNE_D_ENC : MSA_3RF_FMT<0b0010, 0b1, 0b011100>;
321
322 class FDIV_W_ENC : MSA_3RF_FMT<0b0011, 0b0, 0b011011>;
323 class FDIV_D_ENC : MSA_3RF_FMT<0b0011, 0b1, 0b011011>;
324
325 class FEXDO_H_ENC : MSA_3RF_FMT<0b1000, 0b0, 0b011011>;
326 class FEXDO_W_ENC : MSA_3RF_FMT<0b1000, 0b1, 0b011011>;
327
328 class FEXP2_W_ENC : MSA_3RF_FMT<0b0111, 0b0, 0b011011>;
329 class FEXP2_D_ENC : MSA_3RF_FMT<0b0111, 0b1, 0b011011>;
330
331 class FEXUPL_W_ENC : MSA_2RF_FMT<0b110011000, 0b0, 0b011110>;
332 class FEXUPL_D_ENC : MSA_2RF_FMT<0b110011000, 0b1, 0b011110>;
333
334 class FEXUPR_W_ENC : MSA_2RF_FMT<0b110011001, 0b0, 0b011110>;
335 class FEXUPR_D_ENC : MSA_2RF_FMT<0b110011001, 0b1, 0b011110>;
336
337 class FFINT_S_W_ENC : MSA_2RF_FMT<0b110011110, 0b0, 0b011110>;
338 class FFINT_S_D_ENC : MSA_2RF_FMT<0b110011110, 0b1, 0b011110>;
339
340 class FFINT_U_W_ENC : MSA_2RF_FMT<0b110011111, 0b0, 0b011110>;
341 class FFINT_U_D_ENC : MSA_2RF_FMT<0b110011111, 0b1, 0b011110>;
342
343 class FFQL_W_ENC : MSA_2RF_FMT<0b110011010, 0b0, 0b011110>;
344 class FFQL_D_ENC : MSA_2RF_FMT<0b110011010, 0b1, 0b011110>;
345
346 class FFQR_W_ENC : MSA_2RF_FMT<0b110011011, 0b0, 0b011110>;
347 class FFQR_D_ENC : MSA_2RF_FMT<0b110011011, 0b1, 0b011110>;
348
349 class FILL_B_ENC : MSA_2R_FMT<0b11000000, 0b00, 0b011110>;
350 class FILL_H_ENC : MSA_2R_FMT<0b11000000, 0b01, 0b011110>;
351 class FILL_W_ENC : MSA_2R_FMT<0b11000000, 0b10, 0b011110>;
352
353 class FLOG2_W_ENC : MSA_2RF_FMT<0b110010111, 0b0, 0b011110>;
354 class FLOG2_D_ENC : MSA_2RF_FMT<0b110010111, 0b1, 0b011110>;
355
356 class FMADD_W_ENC : MSA_3RF_FMT<0b0100, 0b0, 0b011011>;
357 class FMADD_D_ENC : MSA_3RF_FMT<0b0100, 0b1, 0b011011>;
358
359 class FMAX_W_ENC : MSA_3RF_FMT<0b1110, 0b0, 0b011011>;
360 class FMAX_D_ENC : MSA_3RF_FMT<0b1110, 0b1, 0b011011>;
361
362 class FMAX_A_W_ENC : MSA_3RF_FMT<0b1111, 0b0, 0b011011>;
363 class FMAX_A_D_ENC : MSA_3RF_FMT<0b1111, 0b1, 0b011011>;
364
365 class FMIN_W_ENC : MSA_3RF_FMT<0b1100, 0b0, 0b011011>;
366 class FMIN_D_ENC : MSA_3RF_FMT<0b1100, 0b1, 0b011011>;
367
368 class FMIN_A_W_ENC : MSA_3RF_FMT<0b1101, 0b0, 0b011011>;
369 class FMIN_A_D_ENC : MSA_3RF_FMT<0b1101, 0b1, 0b011011>;
370
371 class FMSUB_W_ENC : MSA_3RF_FMT<0b0101, 0b0, 0b011011>;
372 class FMSUB_D_ENC : MSA_3RF_FMT<0b0101, 0b1, 0b011011>;
373
374 class FMUL_W_ENC : MSA_3RF_FMT<0b0010, 0b0, 0b011011>;
375 class FMUL_D_ENC : MSA_3RF_FMT<0b0010, 0b1, 0b011011>;
376
377 class FRINT_W_ENC : MSA_2RF_FMT<0b110010110, 0b0, 0b011110>;
378 class FRINT_D_ENC : MSA_2RF_FMT<0b110010110, 0b1, 0b011110>;
379
380 class FRCP_W_ENC : MSA_2RF_FMT<0b110010101, 0b0, 0b011110>;
381 class FRCP_D_ENC : MSA_2RF_FMT<0b110010101, 0b1, 0b011110>;
382
383 class FRSQRT_W_ENC : MSA_2RF_FMT<0b110010100, 0b0, 0b011110>;
384 class FRSQRT_D_ENC : MSA_2RF_FMT<0b110010100, 0b1, 0b011110>;
385
386 class FSAF_W_ENC : MSA_3RF_FMT<0b1000, 0b0, 0b011010>;
387 class FSAF_D_ENC : MSA_3RF_FMT<0b1000, 0b1, 0b011010>;
388
389 class FSEQ_W_ENC : MSA_3RF_FMT<0b1010, 0b0, 0b011010>;
390 class FSEQ_D_ENC : MSA_3RF_FMT<0b1010, 0b1, 0b011010>;
391
392 class FSLE_W_ENC : MSA_3RF_FMT<0b1110, 0b0, 0b011010>;
393 class FSLE_D_ENC : MSA_3RF_FMT<0b1110, 0b1, 0b011010>;
394
395 class FSLT_W_ENC : MSA_3RF_FMT<0b1100, 0b0, 0b011010>;
396 class FSLT_D_ENC : MSA_3RF_FMT<0b1100, 0b1, 0b011010>;
397
398 class FSNE_W_ENC : MSA_3RF_FMT<0b1011, 0b0, 0b011100>;
399 class FSNE_D_ENC : MSA_3RF_FMT<0b1011, 0b1, 0b011100>;
400
401 class FSOR_W_ENC : MSA_3RF_FMT<0b1001, 0b0, 0b011100>;
402 class FSOR_D_ENC : MSA_3RF_FMT<0b1001, 0b1, 0b011100>;
403
404 class FSQRT_W_ENC : MSA_2RF_FMT<0b110010011, 0b0, 0b011110>;
405 class FSQRT_D_ENC : MSA_2RF_FMT<0b110010011, 0b1, 0b011110>;
406
407 class FSUB_W_ENC : MSA_3RF_FMT<0b0001, 0b0, 0b011011>;
408 class FSUB_D_ENC : MSA_3RF_FMT<0b0001, 0b1, 0b011011>;
409
410 class FSUEQ_W_ENC : MSA_3RF_FMT<0b1011, 0b0, 0b011010>;
411 class FSUEQ_D_ENC : MSA_3RF_FMT<0b1011, 0b1, 0b011010>;
412
413 class FSULE_W_ENC : MSA_3RF_FMT<0b1111, 0b0, 0b011010>;
414 class FSULE_D_ENC : MSA_3RF_FMT<0b1111, 0b1, 0b011010>;
415
416 class FSULT_W_ENC : MSA_3RF_FMT<0b1101, 0b0, 0b011010>;
417 class FSULT_D_ENC : MSA_3RF_FMT<0b1101, 0b1, 0b011010>;
418
419 class FSUN_W_ENC : MSA_3RF_FMT<0b1001, 0b0, 0b011010>;
420 class FSUN_D_ENC : MSA_3RF_FMT<0b1001, 0b1, 0b011010>;
421
422 class FSUNE_W_ENC : MSA_3RF_FMT<0b1010, 0b0, 0b011100>;
423 class FSUNE_D_ENC : MSA_3RF_FMT<0b1010, 0b1, 0b011100>;
424
425 class FTRUNC_S_W_ENC : MSA_2RF_FMT<0b110100000, 0b0, 0b011110>;
426 class FTRUNC_S_D_ENC : MSA_2RF_FMT<0b110100000, 0b1, 0b011110>;
427
428 class FTRUNC_U_W_ENC : MSA_2RF_FMT<0b110100001, 0b0, 0b011110>;
429 class FTRUNC_U_D_ENC : MSA_2RF_FMT<0b110100001, 0b1, 0b011110>;
430
431 class FTINT_S_W_ENC : MSA_2RF_FMT<0b110011100, 0b0, 0b011110>;
432 class FTINT_S_D_ENC : MSA_2RF_FMT<0b110011100, 0b1, 0b011110>;
433
434 class FTINT_U_W_ENC : MSA_2RF_FMT<0b110011101, 0b0, 0b011110>;
435 class FTINT_U_D_ENC : MSA_2RF_FMT<0b110011101, 0b1, 0b011110>;
436
437 class FTQ_H_ENC : MSA_3RF_FMT<0b1010, 0b0, 0b011011>;
438 class FTQ_W_ENC : MSA_3RF_FMT<0b1010, 0b1, 0b011011>;
439
440 class HADD_S_H_ENC : MSA_3R_FMT<0b100, 0b01, 0b010101>;
441 class HADD_S_W_ENC : MSA_3R_FMT<0b100, 0b10, 0b010101>;
442 class HADD_S_D_ENC : MSA_3R_FMT<0b100, 0b11, 0b010101>;
443
444 class HADD_U_H_ENC : MSA_3R_FMT<0b101, 0b01, 0b010101>;
445 class HADD_U_W_ENC : MSA_3R_FMT<0b101, 0b10, 0b010101>;
446 class HADD_U_D_ENC : MSA_3R_FMT<0b101, 0b11, 0b010101>;
447
448 class HSUB_S_H_ENC : MSA_3R_FMT<0b110, 0b01, 0b010101>;
449 class HSUB_S_W_ENC : MSA_3R_FMT<0b110, 0b10, 0b010101>;
450 class HSUB_S_D_ENC : MSA_3R_FMT<0b110, 0b11, 0b010101>;
451
452 class HSUB_U_H_ENC : MSA_3R_FMT<0b111, 0b01, 0b010101>;
453 class HSUB_U_W_ENC : MSA_3R_FMT<0b111, 0b10, 0b010101>;
454 class HSUB_U_D_ENC : MSA_3R_FMT<0b111, 0b11, 0b010101>;
455
456 class ILVEV_B_ENC : MSA_3R_FMT<0b110, 0b00, 0b010100>;
457 class ILVEV_H_ENC : MSA_3R_FMT<0b110, 0b01, 0b010100>;
458 class ILVEV_W_ENC : MSA_3R_FMT<0b110, 0b10, 0b010100>;
459 class ILVEV_D_ENC : MSA_3R_FMT<0b110, 0b11, 0b010100>;
460
461 class ILVL_B_ENC : MSA_3R_FMT<0b100, 0b00, 0b010100>;
462 class ILVL_H_ENC : MSA_3R_FMT<0b100, 0b01, 0b010100>;
463 class ILVL_W_ENC : MSA_3R_FMT<0b100, 0b10, 0b010100>;
464 class ILVL_D_ENC : MSA_3R_FMT<0b100, 0b11, 0b010100>;
465
466 class ILVOD_B_ENC : MSA_3R_FMT<0b111, 0b00, 0b010100>;
467 class ILVOD_H_ENC : MSA_3R_FMT<0b111, 0b01, 0b010100>;
468 class ILVOD_W_ENC : MSA_3R_FMT<0b111, 0b10, 0b010100>;
469 class ILVOD_D_ENC : MSA_3R_FMT<0b111, 0b11, 0b010100>;
470
471 class ILVR_B_ENC : MSA_3R_FMT<0b101, 0b00, 0b010100>;
472 class ILVR_H_ENC : MSA_3R_FMT<0b101, 0b01, 0b010100>;
473 class ILVR_W_ENC : MSA_3R_FMT<0b101, 0b10, 0b010100>;
474 class ILVR_D_ENC : MSA_3R_FMT<0b101, 0b11, 0b010100>;
475
476 class INSERT_B_ENC : MSA_ELM_B_FMT<0b0100, 0b011001>;
477 class INSERT_H_ENC : MSA_ELM_H_FMT<0b0100, 0b011001>;
478 class INSERT_W_ENC : MSA_ELM_W_FMT<0b0100, 0b011001>;
479
480 class INSVE_B_ENC : MSA_ELM_B_FMT<0b0101, 0b011001>;
481 class INSVE_H_ENC : MSA_ELM_H_FMT<0b0101, 0b011001>;
482 class INSVE_W_ENC : MSA_ELM_W_FMT<0b0101, 0b011001>;
483 class INSVE_D_ENC : MSA_ELM_D_FMT<0b0101, 0b011001>;
484
485 class LD_B_ENC   : MSA_I5_FMT<0b110, 0b00, 0b000111>;
486 class LD_H_ENC   : MSA_I5_FMT<0b110, 0b01, 0b000111>;
487 class LD_W_ENC   : MSA_I5_FMT<0b110, 0b10, 0b000111>;
488 class LD_D_ENC   : MSA_I5_FMT<0b110, 0b11, 0b000111>;
489
490 class LDI_B_ENC  : MSA_I10_FMT<0b010, 0b00, 0b001100>;
491 class LDI_H_ENC  : MSA_I10_FMT<0b010, 0b01, 0b001100>;
492 class LDI_W_ENC  : MSA_I10_FMT<0b010, 0b10, 0b001100>;
493 class LDI_D_ENC  : MSA_I10_FMT<0b010, 0b11, 0b001100>;
494
495 class LDX_B_ENC  : MSA_3R_FMT<0b110, 0b00, 0b001111>;
496 class LDX_H_ENC  : MSA_3R_FMT<0b110, 0b01, 0b001111>;
497 class LDX_W_ENC  : MSA_3R_FMT<0b110, 0b10, 0b001111>;
498 class LDX_D_ENC  : MSA_3R_FMT<0b110, 0b11, 0b001111>;
499
500 class MADD_Q_H_ENC : MSA_3RF_FMT<0b0101, 0b0, 0b011100>;
501 class MADD_Q_W_ENC : MSA_3RF_FMT<0b0101, 0b1, 0b011100>;
502
503 class MADDR_Q_H_ENC : MSA_3RF_FMT<0b1101, 0b0, 0b011100>;
504 class MADDR_Q_W_ENC : MSA_3RF_FMT<0b1101, 0b1, 0b011100>;
505
506 class MADDV_B_ENC : MSA_3R_FMT<0b001, 0b00, 0b010010>;
507 class MADDV_H_ENC : MSA_3R_FMT<0b001, 0b01, 0b010010>;
508 class MADDV_W_ENC : MSA_3R_FMT<0b001, 0b10, 0b010010>;
509 class MADDV_D_ENC : MSA_3R_FMT<0b001, 0b11, 0b010010>;
510
511 class MAX_A_B_ENC : MSA_3R_FMT<0b110, 0b00, 0b001110>;
512 class MAX_A_H_ENC : MSA_3R_FMT<0b110, 0b01, 0b001110>;
513 class MAX_A_W_ENC : MSA_3R_FMT<0b110, 0b10, 0b001110>;
514 class MAX_A_D_ENC : MSA_3R_FMT<0b110, 0b11, 0b001110>;
515
516 class MAX_S_B_ENC : MSA_3R_FMT<0b010, 0b00, 0b001110>;
517 class MAX_S_H_ENC : MSA_3R_FMT<0b010, 0b01, 0b001110>;
518 class MAX_S_W_ENC : MSA_3R_FMT<0b010, 0b10, 0b001110>;
519 class MAX_S_D_ENC : MSA_3R_FMT<0b010, 0b11, 0b001110>;
520
521 class MAX_U_B_ENC : MSA_3R_FMT<0b011, 0b00, 0b001110>;
522 class MAX_U_H_ENC : MSA_3R_FMT<0b011, 0b01, 0b001110>;
523 class MAX_U_W_ENC : MSA_3R_FMT<0b011, 0b10, 0b001110>;
524 class MAX_U_D_ENC : MSA_3R_FMT<0b011, 0b11, 0b001110>;
525
526 class MAXI_S_B_ENC : MSA_I5_FMT<0b010, 0b00, 0b000110>;
527 class MAXI_S_H_ENC : MSA_I5_FMT<0b010, 0b01, 0b000110>;
528 class MAXI_S_W_ENC : MSA_I5_FMT<0b010, 0b10, 0b000110>;
529 class MAXI_S_D_ENC : MSA_I5_FMT<0b010, 0b11, 0b000110>;
530
531 class MAXI_U_B_ENC : MSA_I5_FMT<0b011, 0b00, 0b000110>;
532 class MAXI_U_H_ENC : MSA_I5_FMT<0b011, 0b01, 0b000110>;
533 class MAXI_U_W_ENC : MSA_I5_FMT<0b011, 0b10, 0b000110>;
534 class MAXI_U_D_ENC : MSA_I5_FMT<0b011, 0b11, 0b000110>;
535
536 class MIN_A_B_ENC : MSA_3R_FMT<0b111, 0b00, 0b001110>;
537 class MIN_A_H_ENC : MSA_3R_FMT<0b111, 0b01, 0b001110>;
538 class MIN_A_W_ENC : MSA_3R_FMT<0b111, 0b10, 0b001110>;
539 class MIN_A_D_ENC : MSA_3R_FMT<0b111, 0b11, 0b001110>;
540
541 class MIN_S_B_ENC : MSA_3R_FMT<0b100, 0b00, 0b001110>;
542 class MIN_S_H_ENC : MSA_3R_FMT<0b100, 0b01, 0b001110>;
543 class MIN_S_W_ENC : MSA_3R_FMT<0b100, 0b10, 0b001110>;
544 class MIN_S_D_ENC : MSA_3R_FMT<0b100, 0b11, 0b001110>;
545
546 class MIN_U_B_ENC : MSA_3R_FMT<0b101, 0b00, 0b001110>;
547 class MIN_U_H_ENC : MSA_3R_FMT<0b101, 0b01, 0b001110>;
548 class MIN_U_W_ENC : MSA_3R_FMT<0b101, 0b10, 0b001110>;
549 class MIN_U_D_ENC : MSA_3R_FMT<0b101, 0b11, 0b001110>;
550
551 class MINI_S_B_ENC : MSA_I5_FMT<0b100, 0b00, 0b000110>;
552 class MINI_S_H_ENC : MSA_I5_FMT<0b100, 0b01, 0b000110>;
553 class MINI_S_W_ENC : MSA_I5_FMT<0b100, 0b10, 0b000110>;
554 class MINI_S_D_ENC : MSA_I5_FMT<0b100, 0b11, 0b000110>;
555
556 class MINI_U_B_ENC : MSA_I5_FMT<0b101, 0b00, 0b000110>;
557 class MINI_U_H_ENC : MSA_I5_FMT<0b101, 0b01, 0b000110>;
558 class MINI_U_W_ENC : MSA_I5_FMT<0b101, 0b10, 0b000110>;
559 class MINI_U_D_ENC : MSA_I5_FMT<0b101, 0b11, 0b000110>;
560
561 class MOD_S_B_ENC : MSA_3R_FMT<0b110, 0b00, 0b010010>;
562 class MOD_S_H_ENC : MSA_3R_FMT<0b110, 0b01, 0b010010>;
563 class MOD_S_W_ENC : MSA_3R_FMT<0b110, 0b10, 0b010010>;
564 class MOD_S_D_ENC : MSA_3R_FMT<0b110, 0b11, 0b010010>;
565
566 class MOD_U_B_ENC : MSA_3R_FMT<0b111, 0b00, 0b010010>;
567 class MOD_U_H_ENC : MSA_3R_FMT<0b111, 0b01, 0b010010>;
568 class MOD_U_W_ENC : MSA_3R_FMT<0b111, 0b10, 0b010010>;
569 class MOD_U_D_ENC : MSA_3R_FMT<0b111, 0b11, 0b010010>;
570
571 class MOVE_V_ENC : MSA_ELM_FMT<0b0010111110, 0b011001>;
572
573 class MSUB_Q_H_ENC : MSA_3RF_FMT<0b0110, 0b0, 0b011100>;
574 class MSUB_Q_W_ENC : MSA_3RF_FMT<0b0110, 0b1, 0b011100>;
575
576 class MSUBR_Q_H_ENC : MSA_3RF_FMT<0b1110, 0b0, 0b011100>;
577 class MSUBR_Q_W_ENC : MSA_3RF_FMT<0b1110, 0b1, 0b011100>;
578
579 class MSUBV_B_ENC : MSA_3R_FMT<0b010, 0b00, 0b010010>;
580 class MSUBV_H_ENC : MSA_3R_FMT<0b010, 0b01, 0b010010>;
581 class MSUBV_W_ENC : MSA_3R_FMT<0b010, 0b10, 0b010010>;
582 class MSUBV_D_ENC : MSA_3R_FMT<0b010, 0b11, 0b010010>;
583
584 class MUL_Q_H_ENC : MSA_3RF_FMT<0b0000, 0b0, 0b011100>;
585 class MUL_Q_W_ENC : MSA_3RF_FMT<0b0000, 0b1, 0b011100>;
586
587 class MULR_Q_H_ENC : MSA_3RF_FMT<0b1100, 0b0, 0b011100>;
588 class MULR_Q_W_ENC : MSA_3RF_FMT<0b1100, 0b1, 0b011100>;
589
590 class MULV_B_ENC : MSA_3R_FMT<0b000, 0b00, 0b010010>;
591 class MULV_H_ENC : MSA_3R_FMT<0b000, 0b01, 0b010010>;
592 class MULV_W_ENC : MSA_3R_FMT<0b000, 0b10, 0b010010>;
593 class MULV_D_ENC : MSA_3R_FMT<0b000, 0b11, 0b010010>;
594
595 class NLOC_B_ENC : MSA_2R_FMT<0b11000010, 0b00, 0b011110>;
596 class NLOC_H_ENC : MSA_2R_FMT<0b11000010, 0b01, 0b011110>;
597 class NLOC_W_ENC : MSA_2R_FMT<0b11000010, 0b10, 0b011110>;
598 class NLOC_D_ENC : MSA_2R_FMT<0b11000010, 0b11, 0b011110>;
599
600 class NLZC_B_ENC : MSA_2R_FMT<0b11000011, 0b00, 0b011110>;
601 class NLZC_H_ENC : MSA_2R_FMT<0b11000011, 0b01, 0b011110>;
602 class NLZC_W_ENC : MSA_2R_FMT<0b11000011, 0b10, 0b011110>;
603 class NLZC_D_ENC : MSA_2R_FMT<0b11000011, 0b11, 0b011110>;
604
605 class NOR_V_ENC : MSA_VEC_FMT<0b00010, 0b011110>;
606
607 class NORI_B_ENC : MSA_I8_FMT<0b10, 0b000000>;
608
609 class OR_V_ENC : MSA_VEC_FMT<0b00001, 0b011110>;
610
611 class ORI_B_ENC  : MSA_I8_FMT<0b01, 0b000000>;
612
613 class PCKEV_B_ENC : MSA_3R_FMT<0b010, 0b00, 0b010100>;
614 class PCKEV_H_ENC : MSA_3R_FMT<0b010, 0b01, 0b010100>;
615 class PCKEV_W_ENC : MSA_3R_FMT<0b010, 0b10, 0b010100>;
616 class PCKEV_D_ENC : MSA_3R_FMT<0b010, 0b11, 0b010100>;
617
618 class PCKOD_B_ENC : MSA_3R_FMT<0b011, 0b00, 0b010100>;
619 class PCKOD_H_ENC : MSA_3R_FMT<0b011, 0b01, 0b010100>;
620 class PCKOD_W_ENC : MSA_3R_FMT<0b011, 0b10, 0b010100>;
621 class PCKOD_D_ENC : MSA_3R_FMT<0b011, 0b11, 0b010100>;
622
623 class PCNT_B_ENC : MSA_2R_FMT<0b11000001, 0b00, 0b011110>;
624 class PCNT_H_ENC : MSA_2R_FMT<0b11000001, 0b01, 0b011110>;
625 class PCNT_W_ENC : MSA_2R_FMT<0b11000001, 0b10, 0b011110>;
626 class PCNT_D_ENC : MSA_2R_FMT<0b11000001, 0b11, 0b011110>;
627
628 class SAT_S_B_ENC : MSA_BIT_B_FMT<0b000, 0b001010>;
629 class SAT_S_H_ENC : MSA_BIT_H_FMT<0b000, 0b001010>;
630 class SAT_S_W_ENC : MSA_BIT_W_FMT<0b000, 0b001010>;
631 class SAT_S_D_ENC : MSA_BIT_D_FMT<0b000, 0b001010>;
632
633 class SAT_U_B_ENC : MSA_BIT_B_FMT<0b001, 0b001010>;
634 class SAT_U_H_ENC : MSA_BIT_H_FMT<0b001, 0b001010>;
635 class SAT_U_W_ENC : MSA_BIT_W_FMT<0b001, 0b001010>;
636 class SAT_U_D_ENC : MSA_BIT_D_FMT<0b001, 0b001010>;
637
638 class SHF_B_ENC  : MSA_I8_FMT<0b00, 0b000010>;
639 class SHF_H_ENC  : MSA_I8_FMT<0b01, 0b000010>;
640 class SHF_W_ENC  : MSA_I8_FMT<0b10, 0b000010>;
641
642 class SLD_B_ENC : MSA_3R_FMT<0b000, 0b00, 0b010100>;
643 class SLD_H_ENC : MSA_3R_FMT<0b000, 0b01, 0b010100>;
644 class SLD_W_ENC : MSA_3R_FMT<0b000, 0b10, 0b010100>;
645 class SLD_D_ENC : MSA_3R_FMT<0b000, 0b11, 0b010100>;
646
647 class SLDI_B_ENC : MSA_ELM_B_FMT<0b0000, 0b011001>;
648 class SLDI_H_ENC : MSA_ELM_H_FMT<0b0000, 0b011001>;
649 class SLDI_W_ENC : MSA_ELM_W_FMT<0b0000, 0b011001>;
650 class SLDI_D_ENC : MSA_ELM_D_FMT<0b0000, 0b011001>;
651
652 class SLL_B_ENC : MSA_3R_FMT<0b000, 0b00, 0b001101>;
653 class SLL_H_ENC : MSA_3R_FMT<0b000, 0b01, 0b001101>;
654 class SLL_W_ENC : MSA_3R_FMT<0b000, 0b10, 0b001101>;
655 class SLL_D_ENC : MSA_3R_FMT<0b000, 0b11, 0b001101>;
656
657 class SLLI_B_ENC : MSA_BIT_B_FMT<0b000, 0b001001>;
658 class SLLI_H_ENC : MSA_BIT_H_FMT<0b000, 0b001001>;
659 class SLLI_W_ENC : MSA_BIT_W_FMT<0b000, 0b001001>;
660 class SLLI_D_ENC : MSA_BIT_D_FMT<0b000, 0b001001>;
661
662 class SPLAT_B_ENC : MSA_3R_FMT<0b001, 0b00, 0b010100>;
663 class SPLAT_H_ENC : MSA_3R_FMT<0b001, 0b01, 0b010100>;
664 class SPLAT_W_ENC : MSA_3R_FMT<0b001, 0b10, 0b010100>;
665 class SPLAT_D_ENC : MSA_3R_FMT<0b001, 0b11, 0b010100>;
666
667 class SPLATI_B_ENC : MSA_ELM_B_FMT<0b0001, 0b011001>;
668 class SPLATI_H_ENC : MSA_ELM_H_FMT<0b0001, 0b011001>;
669 class SPLATI_W_ENC : MSA_ELM_W_FMT<0b0001, 0b011001>;
670 class SPLATI_D_ENC : MSA_ELM_D_FMT<0b0001, 0b011001>;
671
672 class SRA_B_ENC : MSA_3R_FMT<0b001, 0b00, 0b001101>;
673 class SRA_H_ENC : MSA_3R_FMT<0b001, 0b01, 0b001101>;
674 class SRA_W_ENC : MSA_3R_FMT<0b001, 0b10, 0b001101>;
675 class SRA_D_ENC : MSA_3R_FMT<0b001, 0b11, 0b001101>;
676
677 class SRAI_B_ENC : MSA_BIT_B_FMT<0b001, 0b001001>;
678 class SRAI_H_ENC : MSA_BIT_H_FMT<0b001, 0b001001>;
679 class SRAI_W_ENC : MSA_BIT_W_FMT<0b001, 0b001001>;
680 class SRAI_D_ENC : MSA_BIT_D_FMT<0b001, 0b001001>;
681
682 class SRAR_B_ENC : MSA_3R_FMT<0b001, 0b00, 0b010101>;
683 class SRAR_H_ENC : MSA_3R_FMT<0b001, 0b01, 0b010101>;
684 class SRAR_W_ENC : MSA_3R_FMT<0b001, 0b10, 0b010101>;
685 class SRAR_D_ENC : MSA_3R_FMT<0b001, 0b11, 0b010101>;
686
687 class SRARI_B_ENC : MSA_BIT_B_FMT<0b010, 0b001010>;
688 class SRARI_H_ENC : MSA_BIT_H_FMT<0b010, 0b001010>;
689 class SRARI_W_ENC : MSA_BIT_W_FMT<0b010, 0b001010>;
690 class SRARI_D_ENC : MSA_BIT_D_FMT<0b010, 0b001010>;
691
692 class SRL_B_ENC : MSA_3R_FMT<0b010, 0b00, 0b001101>;
693 class SRL_H_ENC : MSA_3R_FMT<0b010, 0b01, 0b001101>;
694 class SRL_W_ENC : MSA_3R_FMT<0b010, 0b10, 0b001101>;
695 class SRL_D_ENC : MSA_3R_FMT<0b010, 0b11, 0b001101>;
696
697 class SRLI_B_ENC : MSA_BIT_B_FMT<0b010, 0b001001>;
698 class SRLI_H_ENC : MSA_BIT_H_FMT<0b010, 0b001001>;
699 class SRLI_W_ENC : MSA_BIT_W_FMT<0b010, 0b001001>;
700 class SRLI_D_ENC : MSA_BIT_D_FMT<0b010, 0b001001>;
701
702 class SRLR_B_ENC : MSA_3R_FMT<0b010, 0b00, 0b010101>;
703 class SRLR_H_ENC : MSA_3R_FMT<0b010, 0b01, 0b010101>;
704 class SRLR_W_ENC : MSA_3R_FMT<0b010, 0b10, 0b010101>;
705 class SRLR_D_ENC : MSA_3R_FMT<0b010, 0b11, 0b010101>;
706
707 class SRLRI_B_ENC : MSA_BIT_B_FMT<0b011, 0b001010>;
708 class SRLRI_H_ENC : MSA_BIT_H_FMT<0b011, 0b001010>;
709 class SRLRI_W_ENC : MSA_BIT_W_FMT<0b011, 0b001010>;
710 class SRLRI_D_ENC : MSA_BIT_D_FMT<0b011, 0b001010>;
711
712 class ST_B_ENC   : MSA_I5_FMT<0b111, 0b00, 0b000111>;
713 class ST_H_ENC   : MSA_I5_FMT<0b111, 0b01, 0b000111>;
714 class ST_W_ENC   : MSA_I5_FMT<0b111, 0b10, 0b000111>;
715 class ST_D_ENC   : MSA_I5_FMT<0b111, 0b11, 0b000111>;
716
717 class STX_B_ENC  : MSA_3R_FMT<0b111, 0b00, 0b001111>;
718 class STX_H_ENC  : MSA_3R_FMT<0b111, 0b01, 0b001111>;
719 class STX_W_ENC  : MSA_3R_FMT<0b111, 0b10, 0b001111>;
720 class STX_D_ENC  : MSA_3R_FMT<0b111, 0b11, 0b001111>;
721
722 class SUBS_S_B_ENC : MSA_3R_FMT<0b000, 0b00, 0b010001>;
723 class SUBS_S_H_ENC : MSA_3R_FMT<0b000, 0b01, 0b010001>;
724 class SUBS_S_W_ENC : MSA_3R_FMT<0b000, 0b10, 0b010001>;
725 class SUBS_S_D_ENC : MSA_3R_FMT<0b000, 0b11, 0b010001>;
726
727 class SUBS_U_B_ENC : MSA_3R_FMT<0b001, 0b00, 0b010001>;
728 class SUBS_U_H_ENC : MSA_3R_FMT<0b001, 0b01, 0b010001>;
729 class SUBS_U_W_ENC : MSA_3R_FMT<0b001, 0b10, 0b010001>;
730 class SUBS_U_D_ENC : MSA_3R_FMT<0b001, 0b11, 0b010001>;
731
732 class SUBSUS_U_B_ENC : MSA_3R_FMT<0b011, 0b00, 0b010001>;
733 class SUBSUS_U_H_ENC : MSA_3R_FMT<0b011, 0b01, 0b010001>;
734 class SUBSUS_U_W_ENC : MSA_3R_FMT<0b011, 0b10, 0b010001>;
735 class SUBSUS_U_D_ENC : MSA_3R_FMT<0b011, 0b11, 0b010001>;
736
737 class SUBSUU_S_B_ENC : MSA_3R_FMT<0b010, 0b00, 0b010001>;
738 class SUBSUU_S_H_ENC : MSA_3R_FMT<0b010, 0b01, 0b010001>;
739 class SUBSUU_S_W_ENC : MSA_3R_FMT<0b010, 0b10, 0b010001>;
740 class SUBSUU_S_D_ENC : MSA_3R_FMT<0b010, 0b11, 0b010001>;
741
742 class SUBV_B_ENC : MSA_3R_FMT<0b001, 0b00, 0b001110>;
743 class SUBV_H_ENC : MSA_3R_FMT<0b001, 0b01, 0b001110>;
744 class SUBV_W_ENC : MSA_3R_FMT<0b001, 0b10, 0b001110>;
745 class SUBV_D_ENC : MSA_3R_FMT<0b001, 0b11, 0b001110>;
746
747 class SUBVI_B_ENC : MSA_I5_FMT<0b001, 0b00, 0b000110>;
748 class SUBVI_H_ENC : MSA_I5_FMT<0b001, 0b01, 0b000110>;
749 class SUBVI_W_ENC : MSA_I5_FMT<0b001, 0b10, 0b000110>;
750 class SUBVI_D_ENC : MSA_I5_FMT<0b001, 0b11, 0b000110>;
751
752 class VSHF_B_ENC : MSA_3R_FMT<0b000, 0b00, 0b010101>;
753 class VSHF_H_ENC : MSA_3R_FMT<0b000, 0b01, 0b010101>;
754 class VSHF_W_ENC : MSA_3R_FMT<0b000, 0b10, 0b010101>;
755 class VSHF_D_ENC : MSA_3R_FMT<0b000, 0b11, 0b010101>;
756
757 class XOR_V_ENC : MSA_VEC_FMT<0b00011, 0b011110>;
758
759 class XORI_B_ENC : MSA_I8_FMT<0b11, 0b000000>;
760
761 // Instruction desc.
762 class MSA_BIT_B_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
763                           RegisterClass RCWD, RegisterClass RCWS = RCWD,
764                           InstrItinClass itin = NoItinerary> {
765   dag OutOperandList = (outs RCWD:$wd);
766   dag InOperandList = (ins RCWS:$ws, uimm3:$u3);
767   string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $u3");
768   list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, immZExt3:$u3))];
769   InstrItinClass Itinerary = itin;
770 }
771
772 class MSA_BIT_H_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
773                           RegisterClass RCWD, RegisterClass RCWS = RCWD,
774                           InstrItinClass itin = NoItinerary> {
775   dag OutOperandList = (outs RCWD:$wd);
776   dag InOperandList = (ins RCWS:$ws, uimm4:$u4);
777   string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $u4");
778   list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, immZExt4:$u4))];
779   InstrItinClass Itinerary = itin;
780 }
781
782 class MSA_BIT_W_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
783                           RegisterClass RCWD, RegisterClass RCWS = RCWD,
784                           InstrItinClass itin = NoItinerary> {
785   dag OutOperandList = (outs RCWD:$wd);
786   dag InOperandList = (ins RCWS:$ws, uimm5:$u5);
787   string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $u5");
788   list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, immZExt5:$u5))];
789   InstrItinClass Itinerary = itin;
790 }
791
792 class MSA_BIT_D_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
793                           RegisterClass RCWD, RegisterClass RCWS = RCWD,
794                           InstrItinClass itin = NoItinerary> {
795   dag OutOperandList = (outs RCWD:$wd);
796   dag InOperandList = (ins RCWS:$ws, uimm6:$u6);
797   string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $u6");
798   list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, immZExt6:$u6))];
799   InstrItinClass Itinerary = itin;
800 }
801
802 class MSA_COPY_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
803                          RegisterClass RCD, RegisterClass RCWS,
804                          InstrItinClass itin = NoItinerary> {
805   dag OutOperandList = (outs RCD:$rd);
806   dag InOperandList = (ins RCWS:$ws, uimm6:$n);
807   string AsmString = !strconcat(instr_asm, "\t$rd, $ws[$n]");
808   list<dag> Pattern = [(set RCD:$rd, (OpNode RCWS:$ws, immZExt6:$n))];
809   InstrItinClass Itinerary = itin;
810 }
811
812 class MSA_I5_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
813                        RegisterClass RCWD, RegisterClass RCWS,
814                        InstrItinClass itin = NoItinerary> {
815   dag OutOperandList = (outs RCWD:$wd);
816   dag InOperandList = (ins RCWS:$ws, uimm5:$u5);
817   string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $u5");
818   list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, immZExt5:$u5))];
819   InstrItinClass Itinerary = itin;
820 }
821
822 class MSA_SI5_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
823                        RegisterClass RCWD, RegisterClass RCWS,
824                        InstrItinClass itin = NoItinerary> {
825   dag OutOperandList = (outs RCWD:$wd);
826   dag InOperandList = (ins RCWS:$ws, simm5:$s5);
827   string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $s5");
828   list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, immSExt5:$s5))];
829   InstrItinClass Itinerary = itin;
830 }
831
832 class MSA_I8_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
833                        RegisterClass RCWD, RegisterClass RCWS,
834                        InstrItinClass itin = NoItinerary> {
835   dag OutOperandList = (outs RCWD:$wd);
836   dag InOperandList = (ins RCWS:$ws, uimm8:$u8);
837   string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $u8");
838   list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, immZExt8:$u8))];
839   InstrItinClass Itinerary = itin;
840 }
841
842 class MSA_I10_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
843                         RegisterClass RCWD,
844                         InstrItinClass itin = NoItinerary> {
845   dag OutOperandList = (outs RCWD:$wd);
846   dag InOperandList = (ins simm10:$i10);
847   string AsmString = !strconcat(instr_asm, "\t$wd, $i10");
848   list<dag> Pattern = [(set RCWD:$wd, (OpNode immSExt10:$i10))];
849   InstrItinClass Itinerary = itin;
850 }
851
852 class MSA_2R_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
853                        RegisterClass RCWD, RegisterClass RCWS,
854                        InstrItinClass itin = NoItinerary> {
855   dag OutOperandList = (outs RCWD:$wd);
856   dag InOperandList = (ins RCWS:$ws);
857   string AsmString = !strconcat(instr_asm, "\t$wd, $ws");
858   list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws))];
859   InstrItinClass Itinerary = itin;
860 }
861
862 class MSA_2RF_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
863                         RegisterClass RCWD, RegisterClass RCWS,
864                         InstrItinClass itin = NoItinerary> :
865   MSA_2R_DESC_BASE<instr_asm, OpNode, RCWD, RCWS, itin>;
866
867
868 class MSA_3R_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
869                        RegisterClass RCWD, RegisterClass RCWS = RCWD,
870                        RegisterClass RCWT = RCWD,
871                        InstrItinClass itin = NoItinerary> {
872   dag OutOperandList = (outs RCWD:$wd);
873   dag InOperandList = (ins RCWS:$ws, RCWT:$wt);
874   string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $wt");
875   list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, RCWT:$wt))];
876   InstrItinClass Itinerary = itin;
877 }
878
879 class MSA_3R_4R_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
880                           RegisterClass RCWD, RegisterClass RCWS,
881                           RegisterClass RCWT = RCWS,
882                           InstrItinClass itin = NoItinerary> {
883   dag OutOperandList = (outs RCWD:$wd);
884   dag InOperandList = (ins RCWD:$wd_in, RCWS:$ws, RCWT:$wt);
885   string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $wt");
886   list<dag> Pattern = [(set RCWD:$wd,
887                        (OpNode RCWD:$wd_in, RCWS:$ws, RCWT:$wt))];
888   InstrItinClass Itinerary = itin;
889   string Constraints = "$wd = $wd_in";
890 }
891
892 class MSA_3RF_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
893                         RegisterClass RCWD, RegisterClass RCWS,
894                         RegisterClass RCWT = RCWS,
895                         InstrItinClass itin = NoItinerary> :
896   MSA_3R_DESC_BASE<instr_asm, OpNode, RCWD, RCWS, RCWT, itin>;
897
898 class MSA_3RF_4RF_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
899                             RegisterClass RCWD, RegisterClass RCWS,
900                             RegisterClass RCWT = RCWS,
901                             InstrItinClass itin = NoItinerary> :
902   MSA_3R_4R_DESC_BASE<instr_asm, OpNode, RCWD, RCWS, RCWT, itin>;
903
904 class MSA_CBRANCH_DESC_BASE<string instr_asm, RegisterClass RCWD> {
905   dag OutOperandList = (outs);
906   dag InOperandList = (ins RCWD:$wd, brtarget:$offset);
907   string AsmString = !strconcat(instr_asm, "\t$wd, $offset");
908   list<dag> Pattern = [];
909   InstrItinClass Itinerary = IIBranch;
910   bit isBranch = 1;
911   bit isTerminator = 1;
912   bit hasDelaySlot = 1;
913   list<Register> Defs = [AT];
914 }
915
916 class MSA_INSERT_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
917                            RegisterClass RCD, RegisterClass RCWS,
918                            InstrItinClass itin = NoItinerary> {
919   dag OutOperandList = (outs RCD:$wd);
920   dag InOperandList = (ins RCD:$wd_in, uimm6:$n, RCWS:$rs);
921   string AsmString = !strconcat(instr_asm, "\t$wd[$n], $rs");
922   list<dag> Pattern = [(set RCD:$wd, (OpNode RCD:$wd_in,
923                                              immZExt6:$n,
924                                              RCWS:$rs))];
925   InstrItinClass Itinerary = itin;
926   string Constraints = "$wd = $wd_in";
927 }
928
929 class MSA_INSVE_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
930                           RegisterClass RCD, RegisterClass RCWS,
931                           InstrItinClass itin = NoItinerary> {
932   dag OutOperandList = (outs RCD:$wd);
933   dag InOperandList = (ins RCD:$wd_in, uimm6:$n, RCWS:$ws);
934   string AsmString = !strconcat(instr_asm, "\t$wd[$n], $ws[0]");
935   list<dag> Pattern = [(set RCD:$wd, (OpNode RCD:$wd_in,
936                                              immZExt6:$n,
937                                              RCWS:$ws))];
938   InstrItinClass Itinerary = itin;
939   string Constraints = "$wd = $wd_in";
940 }
941
942 class MSA_VEC_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
943                         RegisterClass RCWD, RegisterClass RCWS,
944                         RegisterClass RCWT = RCWS,
945                         InstrItinClass itin = NoItinerary> {
946   dag OutOperandList = (outs RCWD:$wd);
947   dag InOperandList = (ins RCWS:$ws, RCWT:$wt);
948   string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $wt");
949   list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, RCWT:$wt))];
950   InstrItinClass Itinerary = itin;
951 }
952
953 class ADD_A_B_DESC : MSA_3R_DESC_BASE<"add_a.b", int_mips_add_a_b, MSA128B>,
954                      IsCommutable;
955 class ADD_A_H_DESC : MSA_3R_DESC_BASE<"add_a.h", int_mips_add_a_h, MSA128H>,
956                      IsCommutable;
957 class ADD_A_W_DESC : MSA_3R_DESC_BASE<"add_a.w", int_mips_add_a_w, MSA128W>,
958                      IsCommutable;
959 class ADD_A_D_DESC : MSA_3R_DESC_BASE<"add_a.d", int_mips_add_a_d, MSA128D>,
960                      IsCommutable;
961
962 class ADDS_A_B_DESC : MSA_3R_DESC_BASE<"adds_a.b", int_mips_adds_a_b, MSA128B>,
963                       IsCommutable;
964 class ADDS_A_H_DESC : MSA_3R_DESC_BASE<"adds_a.h", int_mips_adds_a_h, MSA128H>,
965                       IsCommutable;
966 class ADDS_A_W_DESC : MSA_3R_DESC_BASE<"adds_a.w", int_mips_adds_a_w, MSA128W>,
967                       IsCommutable;
968 class ADDS_A_D_DESC : MSA_3R_DESC_BASE<"adds_a.d", int_mips_adds_a_d, MSA128D>,
969                       IsCommutable;
970
971 class ADDS_S_B_DESC : MSA_3R_DESC_BASE<"adds_s.b", int_mips_adds_s_b, MSA128B>,
972                       IsCommutable;
973 class ADDS_S_H_DESC : MSA_3R_DESC_BASE<"adds_s.h", int_mips_adds_s_h, MSA128H>,
974                       IsCommutable;
975 class ADDS_S_W_DESC : MSA_3R_DESC_BASE<"adds_s.w", int_mips_adds_s_w, MSA128W>,
976                       IsCommutable;
977 class ADDS_S_D_DESC : MSA_3R_DESC_BASE<"adds_s.d", int_mips_adds_s_d, MSA128D>,
978                       IsCommutable;
979
980 class ADDS_U_B_DESC : MSA_3R_DESC_BASE<"adds_u.b", int_mips_adds_u_b, MSA128B>,
981                       IsCommutable;
982 class ADDS_U_H_DESC : MSA_3R_DESC_BASE<"adds_u.h", int_mips_adds_u_h, MSA128H>,
983                       IsCommutable;
984 class ADDS_U_W_DESC : MSA_3R_DESC_BASE<"adds_u.w", int_mips_adds_u_w, MSA128W>,
985                       IsCommutable;
986 class ADDS_U_D_DESC : MSA_3R_DESC_BASE<"adds_u.d", int_mips_adds_u_d, MSA128D>,
987                       IsCommutable;
988
989 class ADDV_B_DESC : MSA_3R_DESC_BASE<"addv.b", int_mips_addv_b, MSA128B>,
990                                      IsCommutable;
991 class ADDV_H_DESC : MSA_3R_DESC_BASE<"addv.h", int_mips_addv_h, MSA128H>,
992                                      IsCommutable;
993 class ADDV_W_DESC : MSA_3R_DESC_BASE<"addv.w", int_mips_addv_w, MSA128W>,
994                                      IsCommutable;
995 class ADDV_D_DESC : MSA_3R_DESC_BASE<"addv.d", int_mips_addv_d, MSA128D>,
996                                      IsCommutable;
997
998 class ADDVI_B_DESC : MSA_I5_DESC_BASE<"addvi.b", int_mips_addvi_b, MSA128B,
999                                       MSA128B>;
1000 class ADDVI_H_DESC : MSA_I5_DESC_BASE<"addvi.h", int_mips_addvi_h, MSA128H,
1001                                       MSA128H>;
1002 class ADDVI_W_DESC : MSA_I5_DESC_BASE<"addvi.w", int_mips_addvi_w, MSA128W,
1003                                       MSA128W>;
1004 class ADDVI_D_DESC : MSA_I5_DESC_BASE<"addvi.d", int_mips_addvi_d, MSA128D,
1005                                       MSA128D>;
1006
1007 class AND_V_DESC : MSA_VEC_DESC_BASE<"and.v", int_mips_and_v,
1008                                      MSA128B, MSA128B>;
1009
1010 class ANDI_B_DESC : MSA_I8_DESC_BASE<"andi.b", int_mips_andi_b,
1011                                      MSA128B, MSA128B>;
1012
1013 class ASUB_S_B_DESC : MSA_3R_DESC_BASE<"asub_s.b", int_mips_asub_s_b, MSA128B>;
1014 class ASUB_S_H_DESC : MSA_3R_DESC_BASE<"asub_s.h", int_mips_asub_s_h, MSA128H>;
1015 class ASUB_S_W_DESC : MSA_3R_DESC_BASE<"asub_s.w", int_mips_asub_s_w, MSA128W>;
1016 class ASUB_S_D_DESC : MSA_3R_DESC_BASE<"asub_s.d", int_mips_asub_s_d, MSA128D>;
1017
1018 class ASUB_U_B_DESC : MSA_3R_DESC_BASE<"asub_u.b", int_mips_asub_u_b, MSA128B>;
1019 class ASUB_U_H_DESC : MSA_3R_DESC_BASE<"asub_u.h", int_mips_asub_u_h, MSA128H>;
1020 class ASUB_U_W_DESC : MSA_3R_DESC_BASE<"asub_u.w", int_mips_asub_u_w, MSA128W>;
1021 class ASUB_U_D_DESC : MSA_3R_DESC_BASE<"asub_u.d", int_mips_asub_u_d, MSA128D>;
1022
1023 class AVE_S_B_DESC : MSA_3R_DESC_BASE<"ave_s.b", int_mips_ave_s_b, MSA128B>,
1024                      IsCommutable;
1025 class AVE_S_H_DESC : MSA_3R_DESC_BASE<"ave_s.h", int_mips_ave_s_h, MSA128H>,
1026                      IsCommutable;
1027 class AVE_S_W_DESC : MSA_3R_DESC_BASE<"ave_s.w", int_mips_ave_s_w, MSA128W>,
1028                      IsCommutable;
1029 class AVE_S_D_DESC : MSA_3R_DESC_BASE<"ave_s.d", int_mips_ave_s_d, MSA128D>,
1030                      IsCommutable;
1031
1032 class AVE_U_B_DESC : MSA_3R_DESC_BASE<"ave_u.b", int_mips_ave_u_b, MSA128B>,
1033                      IsCommutable;
1034 class AVE_U_H_DESC : MSA_3R_DESC_BASE<"ave_u.h", int_mips_ave_u_h, MSA128H>,
1035                      IsCommutable;
1036 class AVE_U_W_DESC : MSA_3R_DESC_BASE<"ave_u.w", int_mips_ave_u_w, MSA128W>,
1037                      IsCommutable;
1038 class AVE_U_D_DESC : MSA_3R_DESC_BASE<"ave_u.d", int_mips_ave_u_d, MSA128D>,
1039                      IsCommutable;
1040
1041 class AVER_S_B_DESC : MSA_3R_DESC_BASE<"aver_s.b", int_mips_aver_s_b, MSA128B>,
1042                       IsCommutable;
1043 class AVER_S_H_DESC : MSA_3R_DESC_BASE<"aver_s.h", int_mips_aver_s_h, MSA128H>,
1044                       IsCommutable;
1045 class AVER_S_W_DESC : MSA_3R_DESC_BASE<"aver_s.w", int_mips_aver_s_w, MSA128W>,
1046                       IsCommutable;
1047 class AVER_S_D_DESC : MSA_3R_DESC_BASE<"aver_s.d", int_mips_aver_s_d, MSA128D>,
1048                       IsCommutable;
1049
1050 class AVER_U_B_DESC : MSA_3R_DESC_BASE<"aver_u.b", int_mips_aver_u_b, MSA128B>,
1051                       IsCommutable;
1052 class AVER_U_H_DESC : MSA_3R_DESC_BASE<"aver_u.h", int_mips_aver_u_h, MSA128H>,
1053                       IsCommutable;
1054 class AVER_U_W_DESC : MSA_3R_DESC_BASE<"aver_u.w", int_mips_aver_u_w, MSA128W>,
1055                       IsCommutable;
1056 class AVER_U_D_DESC : MSA_3R_DESC_BASE<"aver_u.d", int_mips_aver_u_d, MSA128D>,
1057                       IsCommutable;
1058
1059 class BCLR_B_DESC : MSA_3R_DESC_BASE<"bclr.b", int_mips_bclr_b, MSA128B>;
1060 class BCLR_H_DESC : MSA_3R_DESC_BASE<"bclr.h", int_mips_bclr_h, MSA128H>;
1061 class BCLR_W_DESC : MSA_3R_DESC_BASE<"bclr.w", int_mips_bclr_w, MSA128W>;
1062 class BCLR_D_DESC : MSA_3R_DESC_BASE<"bclr.d", int_mips_bclr_d, MSA128D>;
1063
1064 class BCLRI_B_DESC : MSA_BIT_B_DESC_BASE<"bclri.b", int_mips_bclri_b, MSA128B>;
1065 class BCLRI_H_DESC : MSA_BIT_H_DESC_BASE<"bclri.h", int_mips_bclri_h, MSA128H>;
1066 class BCLRI_W_DESC : MSA_BIT_W_DESC_BASE<"bclri.w", int_mips_bclri_w, MSA128W>;
1067 class BCLRI_D_DESC : MSA_BIT_D_DESC_BASE<"bclri.d", int_mips_bclri_d, MSA128D>;
1068
1069 class BINSL_B_DESC : MSA_3R_DESC_BASE<"binsl.b", int_mips_binsl_b, MSA128B>;
1070 class BINSL_H_DESC : MSA_3R_DESC_BASE<"binsl.h", int_mips_binsl_h, MSA128H>;
1071 class BINSL_W_DESC : MSA_3R_DESC_BASE<"binsl.w", int_mips_binsl_w, MSA128W>;
1072 class BINSL_D_DESC : MSA_3R_DESC_BASE<"binsl.d", int_mips_binsl_d, MSA128D>;
1073
1074 class BINSLI_B_DESC : MSA_BIT_B_DESC_BASE<"binsli.b", int_mips_binsli_b,
1075                                           MSA128B>;
1076 class BINSLI_H_DESC : MSA_BIT_H_DESC_BASE<"binsli.h", int_mips_binsli_h,
1077                                           MSA128H>;
1078 class BINSLI_W_DESC : MSA_BIT_W_DESC_BASE<"binsli.w", int_mips_binsli_w,
1079                                           MSA128W>;
1080 class BINSLI_D_DESC : MSA_BIT_D_DESC_BASE<"binsli.d", int_mips_binsli_d,
1081                                           MSA128D>;
1082
1083 class BINSR_B_DESC : MSA_3R_DESC_BASE<"binsr.b", int_mips_binsr_b, MSA128B>;
1084 class BINSR_H_DESC : MSA_3R_DESC_BASE<"binsr.h", int_mips_binsr_h, MSA128H>;
1085 class BINSR_W_DESC : MSA_3R_DESC_BASE<"binsr.w", int_mips_binsr_w, MSA128W>;
1086 class BINSR_D_DESC : MSA_3R_DESC_BASE<"binsr.d", int_mips_binsr_d, MSA128D>;
1087
1088 class BINSRI_B_DESC : MSA_BIT_B_DESC_BASE<"binsri.b", int_mips_binsri_b,
1089                                           MSA128B>;
1090 class BINSRI_H_DESC : MSA_BIT_H_DESC_BASE<"binsri.h", int_mips_binsri_h,
1091                                           MSA128H>;
1092 class BINSRI_W_DESC : MSA_BIT_W_DESC_BASE<"binsri.w", int_mips_binsri_w,
1093                                           MSA128W>;
1094 class BINSRI_D_DESC : MSA_BIT_D_DESC_BASE<"binsri.d", int_mips_binsri_d,
1095                                           MSA128D>;
1096
1097 class BMNZ_V_DESC : MSA_VEC_DESC_BASE<"bmnz.v", int_mips_bmnz_v,
1098                                       MSA128B, MSA128B>;
1099
1100 class BMNZI_B_DESC : MSA_I8_DESC_BASE<"bmnzi.b", int_mips_bmnzi_b,
1101                                       MSA128B, MSA128B>;
1102
1103 class BMZ_V_DESC : MSA_VEC_DESC_BASE<"bmz.v", int_mips_bmz_v,
1104                                      MSA128B, MSA128B>;
1105
1106 class BMZI_B_DESC : MSA_I8_DESC_BASE<"bmzi.b", int_mips_bmzi_b,
1107                                      MSA128B, MSA128B>;
1108
1109 class BNEG_B_DESC : MSA_3R_DESC_BASE<"bneg.b", int_mips_bneg_b, MSA128B>;
1110 class BNEG_H_DESC : MSA_3R_DESC_BASE<"bneg.h", int_mips_bneg_h, MSA128H>;
1111 class BNEG_W_DESC : MSA_3R_DESC_BASE<"bneg.w", int_mips_bneg_w, MSA128W>;
1112 class BNEG_D_DESC : MSA_3R_DESC_BASE<"bneg.d", int_mips_bneg_d, MSA128D>;
1113
1114 class BNEGI_B_DESC : MSA_BIT_B_DESC_BASE<"bnegi.b", int_mips_bnegi_b, MSA128B>;
1115 class BNEGI_H_DESC : MSA_BIT_H_DESC_BASE<"bnegi.h", int_mips_bnegi_h, MSA128H>;
1116 class BNEGI_W_DESC : MSA_BIT_W_DESC_BASE<"bnegi.w", int_mips_bnegi_w, MSA128W>;
1117 class BNEGI_D_DESC : MSA_BIT_D_DESC_BASE<"bnegi.d", int_mips_bnegi_d, MSA128D>;
1118
1119 class BNZ_B_DESC : MSA_CBRANCH_DESC_BASE<"bnz.b", MSA128B>;
1120 class BNZ_H_DESC : MSA_CBRANCH_DESC_BASE<"bnz.h", MSA128H>;
1121 class BNZ_W_DESC : MSA_CBRANCH_DESC_BASE<"bnz.w", MSA128W>;
1122 class BNZ_D_DESC : MSA_CBRANCH_DESC_BASE<"bnz.d", MSA128D>;
1123
1124 class BNZ_V_DESC : MSA_CBRANCH_DESC_BASE<"bnz.v", MSA128B>;
1125
1126 class BSEL_V_DESC : MSA_VEC_DESC_BASE<"bsel.v", int_mips_bsel_v,
1127                                       MSA128B, MSA128B>;
1128
1129 class BSELI_B_DESC : MSA_I8_DESC_BASE<"bseli.b", int_mips_bseli_b,
1130                                       MSA128B, MSA128B>;
1131
1132 class BSET_B_DESC : MSA_3R_DESC_BASE<"bset.b", int_mips_bset_b, MSA128B>;
1133 class BSET_H_DESC : MSA_3R_DESC_BASE<"bset.h", int_mips_bset_h, MSA128H>;
1134 class BSET_W_DESC : MSA_3R_DESC_BASE<"bset.w", int_mips_bset_w, MSA128W>;
1135 class BSET_D_DESC : MSA_3R_DESC_BASE<"bset.d", int_mips_bset_d, MSA128D>;
1136
1137 class BSETI_B_DESC : MSA_BIT_B_DESC_BASE<"bseti.b", int_mips_bseti_b, MSA128B>;
1138 class BSETI_H_DESC : MSA_BIT_H_DESC_BASE<"bseti.h", int_mips_bseti_h, MSA128H>;
1139 class BSETI_W_DESC : MSA_BIT_W_DESC_BASE<"bseti.w", int_mips_bseti_w, MSA128W>;
1140 class BSETI_D_DESC : MSA_BIT_D_DESC_BASE<"bseti.d", int_mips_bseti_d, MSA128D>;
1141
1142 class BZ_B_DESC : MSA_CBRANCH_DESC_BASE<"bz.b", MSA128B>;
1143 class BZ_H_DESC : MSA_CBRANCH_DESC_BASE<"bz.h", MSA128H>;
1144 class BZ_W_DESC : MSA_CBRANCH_DESC_BASE<"bz.w", MSA128W>;
1145 class BZ_D_DESC : MSA_CBRANCH_DESC_BASE<"bz.d", MSA128D>;
1146
1147 class BZ_V_DESC : MSA_CBRANCH_DESC_BASE<"bz.v", MSA128B>;
1148
1149 class CEQ_B_DESC : MSA_3R_DESC_BASE<"ceq.b", int_mips_ceq_b, MSA128B>,
1150                                     IsCommutable;
1151 class CEQ_H_DESC : MSA_3R_DESC_BASE<"ceq.h", int_mips_ceq_h, MSA128H>,
1152                                     IsCommutable;
1153 class CEQ_W_DESC : MSA_3R_DESC_BASE<"ceq.w", int_mips_ceq_w, MSA128W>,
1154                                     IsCommutable;
1155 class CEQ_D_DESC : MSA_3R_DESC_BASE<"ceq.d", int_mips_ceq_d, MSA128D>,
1156                                     IsCommutable;
1157
1158 class CEQI_B_DESC : MSA_SI5_DESC_BASE<"ceqi.b", int_mips_ceqi_b,
1159                                       MSA128B, MSA128B>;
1160 class CEQI_H_DESC : MSA_SI5_DESC_BASE<"ceqi.h", int_mips_ceqi_h,
1161                                       MSA128H, MSA128H>;
1162 class CEQI_W_DESC : MSA_SI5_DESC_BASE<"ceqi.w", int_mips_ceqi_w,
1163                                       MSA128W, MSA128W>;
1164 class CEQI_D_DESC : MSA_SI5_DESC_BASE<"ceqi.d", int_mips_ceqi_d,
1165                                       MSA128D, MSA128D>;
1166
1167 class CFCMSA_DESC {
1168   dag OutOperandList = (outs GPR32:$rd);
1169   dag InOperandList = (ins MSACtrl:$cs);
1170   string AsmString = "cfcmsa\t$rd, $cs";
1171   InstrItinClass Itinerary = NoItinerary;
1172   bit hasSideEffects = 1;
1173 }
1174
1175 class CLE_S_B_DESC : MSA_3R_DESC_BASE<"cle_s.b", int_mips_cle_s_b, MSA128B>;
1176 class CLE_S_H_DESC : MSA_3R_DESC_BASE<"cle_s.h", int_mips_cle_s_h, MSA128H>;
1177 class CLE_S_W_DESC : MSA_3R_DESC_BASE<"cle_s.w", int_mips_cle_s_w, MSA128W>;
1178 class CLE_S_D_DESC : MSA_3R_DESC_BASE<"cle_s.d", int_mips_cle_s_d, MSA128D>;
1179
1180 class CLE_U_B_DESC : MSA_3R_DESC_BASE<"cle_u.b", int_mips_cle_u_b, MSA128B>;
1181 class CLE_U_H_DESC : MSA_3R_DESC_BASE<"cle_u.h", int_mips_cle_u_h, MSA128H>;
1182 class CLE_U_W_DESC : MSA_3R_DESC_BASE<"cle_u.w", int_mips_cle_u_w, MSA128W>;
1183 class CLE_U_D_DESC : MSA_3R_DESC_BASE<"cle_u.d", int_mips_cle_u_d, MSA128D>;
1184
1185 class CLEI_S_B_DESC : MSA_SI5_DESC_BASE<"clei_s.b", int_mips_clei_s_b,
1186                                         MSA128B, MSA128B>;
1187 class CLEI_S_H_DESC : MSA_SI5_DESC_BASE<"clei_s.h", int_mips_clei_s_h,
1188                                         MSA128H, MSA128H>;
1189 class CLEI_S_W_DESC : MSA_SI5_DESC_BASE<"clei_s.w", int_mips_clei_s_w,
1190                                         MSA128W, MSA128W>;
1191 class CLEI_S_D_DESC : MSA_SI5_DESC_BASE<"clei_s.d", int_mips_clei_s_d,
1192                                         MSA128D, MSA128D>;
1193
1194 class CLEI_U_B_DESC : MSA_SI5_DESC_BASE<"clei_u.b", int_mips_clei_u_b,
1195                                         MSA128B, MSA128B>;
1196 class CLEI_U_H_DESC : MSA_SI5_DESC_BASE<"clei_u.h", int_mips_clei_u_h,
1197                                         MSA128H, MSA128H>;
1198 class CLEI_U_W_DESC : MSA_SI5_DESC_BASE<"clei_u.w", int_mips_clei_u_w,
1199                                         MSA128W, MSA128W>;
1200 class CLEI_U_D_DESC : MSA_SI5_DESC_BASE<"clei_u.d", int_mips_clei_u_d,
1201                                         MSA128D, MSA128D>;
1202
1203 class CLT_S_B_DESC : MSA_3R_DESC_BASE<"clt_s.b", int_mips_clt_s_b, MSA128B>;
1204 class CLT_S_H_DESC : MSA_3R_DESC_BASE<"clt_s.h", int_mips_clt_s_h, MSA128H>;
1205 class CLT_S_W_DESC : MSA_3R_DESC_BASE<"clt_s.w", int_mips_clt_s_w, MSA128W>;
1206 class CLT_S_D_DESC : MSA_3R_DESC_BASE<"clt_s.d", int_mips_clt_s_d, MSA128D>;
1207
1208 class CLT_U_B_DESC : MSA_3R_DESC_BASE<"clt_u.b", int_mips_clt_u_b, MSA128B>;
1209 class CLT_U_H_DESC : MSA_3R_DESC_BASE<"clt_u.h", int_mips_clt_u_h, MSA128H>;
1210 class CLT_U_W_DESC : MSA_3R_DESC_BASE<"clt_u.w", int_mips_clt_u_w, MSA128W>;
1211 class CLT_U_D_DESC : MSA_3R_DESC_BASE<"clt_u.d", int_mips_clt_u_d, MSA128D>;
1212
1213 class CLTI_S_B_DESC : MSA_SI5_DESC_BASE<"clti_s.b", int_mips_clti_s_b,
1214                                         MSA128B, MSA128B>;
1215 class CLTI_S_H_DESC : MSA_SI5_DESC_BASE<"clti_s.h", int_mips_clti_s_h,
1216                                         MSA128H, MSA128H>;
1217 class CLTI_S_W_DESC : MSA_SI5_DESC_BASE<"clti_s.w", int_mips_clti_s_w,
1218                                         MSA128W, MSA128W>;
1219 class CLTI_S_D_DESC : MSA_SI5_DESC_BASE<"clti_s.d", int_mips_clti_s_d,
1220                                         MSA128D, MSA128D>;
1221
1222 class CLTI_U_B_DESC : MSA_SI5_DESC_BASE<"clti_u.b", int_mips_clti_u_b,
1223                                         MSA128B, MSA128B>;
1224 class CLTI_U_H_DESC : MSA_SI5_DESC_BASE<"clti_u.h", int_mips_clti_u_h,
1225                                         MSA128H, MSA128H>;
1226 class CLTI_U_W_DESC : MSA_SI5_DESC_BASE<"clti_u.w", int_mips_clti_u_w,
1227                                         MSA128W, MSA128W>;
1228 class CLTI_U_D_DESC : MSA_SI5_DESC_BASE<"clti_u.d", int_mips_clti_u_d,
1229                                         MSA128D, MSA128D>;
1230
1231 class COPY_S_B_DESC : MSA_COPY_DESC_BASE<"copy_s.b", int_mips_copy_s_b,
1232                                          GPR32, MSA128B>;
1233 class COPY_S_H_DESC : MSA_COPY_DESC_BASE<"copy_s.h", int_mips_copy_s_h,
1234                                          GPR32, MSA128H>;
1235 class COPY_S_W_DESC : MSA_COPY_DESC_BASE<"copy_s.w", int_mips_copy_s_w,
1236                                          GPR32, MSA128W>;
1237
1238 class COPY_U_B_DESC : MSA_COPY_DESC_BASE<"copy_u.b", int_mips_copy_u_b,
1239                                          GPR32, MSA128B>;
1240 class COPY_U_H_DESC : MSA_COPY_DESC_BASE<"copy_u.h", int_mips_copy_u_h,
1241                                          GPR32, MSA128H>;
1242 class COPY_U_W_DESC : MSA_COPY_DESC_BASE<"copy_u.w", int_mips_copy_u_w,
1243                                          GPR32, MSA128W>;
1244
1245 class CTCMSA_DESC {
1246   dag OutOperandList = (outs);
1247   dag InOperandList = (ins MSACtrl:$cd, GPR32:$rs);
1248   string AsmString = "ctcmsa\t$cd, $rs";
1249   InstrItinClass Itinerary = NoItinerary;
1250   bit hasSideEffects = 1;
1251 }
1252
1253 class DIV_S_B_DESC : MSA_3R_DESC_BASE<"div_s.b", int_mips_div_s_b, MSA128B>;
1254 class DIV_S_H_DESC : MSA_3R_DESC_BASE<"div_s.h", int_mips_div_s_h, MSA128H>;
1255 class DIV_S_W_DESC : MSA_3R_DESC_BASE<"div_s.w", int_mips_div_s_w, MSA128W>;
1256 class DIV_S_D_DESC : MSA_3R_DESC_BASE<"div_s.d", int_mips_div_s_d, MSA128D>;
1257
1258 class DIV_U_B_DESC : MSA_3R_DESC_BASE<"div_u.b", int_mips_div_u_b, MSA128B>;
1259 class DIV_U_H_DESC : MSA_3R_DESC_BASE<"div_u.h", int_mips_div_u_h, MSA128H>;
1260 class DIV_U_W_DESC : MSA_3R_DESC_BASE<"div_u.w", int_mips_div_u_w, MSA128W>;
1261 class DIV_U_D_DESC : MSA_3R_DESC_BASE<"div_u.d", int_mips_div_u_d, MSA128D>;
1262
1263 class DOTP_S_B_DESC : MSA_3R_DESC_BASE<"dotp_s.b", int_mips_dotp_s_b, MSA128B>,
1264                                        IsCommutable;
1265 class DOTP_S_H_DESC : MSA_3R_DESC_BASE<"dotp_s.h", int_mips_dotp_s_h, MSA128H>,
1266                       IsCommutable;
1267 class DOTP_S_W_DESC : MSA_3R_DESC_BASE<"dotp_s.w", int_mips_dotp_s_w, MSA128W>,
1268                       IsCommutable;
1269 class DOTP_S_D_DESC : MSA_3R_DESC_BASE<"dotp_s.d", int_mips_dotp_s_d, MSA128D>,
1270                       IsCommutable;
1271
1272 class DOTP_U_B_DESC : MSA_3R_DESC_BASE<"dotp_u.b", int_mips_dotp_u_b, MSA128B>,
1273                                        IsCommutable;
1274 class DOTP_U_H_DESC : MSA_3R_DESC_BASE<"dotp_u.h", int_mips_dotp_u_h, MSA128H>,
1275                       IsCommutable;
1276 class DOTP_U_W_DESC : MSA_3R_DESC_BASE<"dotp_u.w", int_mips_dotp_u_w, MSA128W>,
1277                       IsCommutable;
1278 class DOTP_U_D_DESC : MSA_3R_DESC_BASE<"dotp_u.d", int_mips_dotp_u_d, MSA128D>,
1279                       IsCommutable;
1280
1281 class DPADD_S_H_DESC : MSA_3R_4R_DESC_BASE<"dpadd_s.h", int_mips_dpadd_s_h,
1282                                            MSA128H, MSA128B>,
1283                                            IsCommutable;
1284 class DPADD_S_W_DESC : MSA_3R_4R_DESC_BASE<"dpadd_s.w", int_mips_dpadd_s_w,
1285                                            MSA128W, MSA128H>,
1286                                            IsCommutable;
1287 class DPADD_S_D_DESC : MSA_3R_4R_DESC_BASE<"dpadd_s.d", int_mips_dpadd_s_d,
1288                                            MSA128D, MSA128W>,
1289                                            IsCommutable;
1290
1291 class DPADD_U_H_DESC : MSA_3R_4R_DESC_BASE<"dpadd_u.h", int_mips_dpadd_u_h,
1292                                            MSA128H, MSA128B>,
1293                                            IsCommutable;
1294 class DPADD_U_W_DESC : MSA_3R_4R_DESC_BASE<"dpadd_u.w", int_mips_dpadd_u_w,
1295                                            MSA128W, MSA128H>,
1296                                            IsCommutable;
1297 class DPADD_U_D_DESC : MSA_3R_4R_DESC_BASE<"dpadd_u.d", int_mips_dpadd_u_d,
1298                                            MSA128D, MSA128W>,
1299                                            IsCommutable;
1300
1301 class DPSUB_S_H_DESC : MSA_3R_4R_DESC_BASE<"dpsub_s.h", int_mips_dpsub_s_h,
1302                                            MSA128H, MSA128B>;
1303 class DPSUB_S_W_DESC : MSA_3R_4R_DESC_BASE<"dpsub_s.w", int_mips_dpsub_s_w,
1304                                            MSA128W, MSA128H>;
1305 class DPSUB_S_D_DESC : MSA_3R_4R_DESC_BASE<"dpsub_s.d", int_mips_dpsub_s_d,
1306                                            MSA128D, MSA128W>;
1307
1308 class DPSUB_U_H_DESC : MSA_3R_4R_DESC_BASE<"dpsub_u.h", int_mips_dpsub_u_h,
1309                                            MSA128H, MSA128B>;
1310 class DPSUB_U_W_DESC : MSA_3R_4R_DESC_BASE<"dpsub_u.w", int_mips_dpsub_u_w,
1311                                            MSA128W, MSA128H>;
1312 class DPSUB_U_D_DESC : MSA_3R_4R_DESC_BASE<"dpsub_u.d", int_mips_dpsub_u_d,
1313                                            MSA128D, MSA128W>;
1314
1315 class FADD_W_DESC : MSA_3RF_DESC_BASE<"fadd.w", int_mips_fadd_w,
1316                                       MSA128W, MSA128W>,
1317                                       IsCommutable;
1318 class FADD_D_DESC : MSA_3RF_DESC_BASE<"fadd.d", int_mips_fadd_d,
1319                                       MSA128D, MSA128D>,
1320                                       IsCommutable;
1321
1322 class FCAF_W_DESC : MSA_3RF_DESC_BASE<"fcaf.w", int_mips_fcaf_w,
1323                                       MSA128W, MSA128W>,
1324                                       IsCommutable;
1325 class FCAF_D_DESC : MSA_3RF_DESC_BASE<"fcaf.d", int_mips_fcaf_d,
1326                                       MSA128D, MSA128D>,
1327                                       IsCommutable;
1328
1329 class FCEQ_W_DESC : MSA_3RF_DESC_BASE<"fceq.w", int_mips_fceq_w,
1330                                       MSA128W, MSA128W>,
1331                                       IsCommutable;
1332 class FCEQ_D_DESC : MSA_3RF_DESC_BASE<"fceq.d", int_mips_fceq_d,
1333                                       MSA128D, MSA128D>,
1334                                       IsCommutable;
1335
1336 class FCLASS_W_DESC : MSA_2RF_DESC_BASE<"fclass.w", int_mips_fclass_w,
1337                                         MSA128W, MSA128W>;
1338 class FCLASS_D_DESC : MSA_2RF_DESC_BASE<"fclass.d", int_mips_fclass_d,
1339                                         MSA128D, MSA128D>;
1340
1341 class FCLE_W_DESC : MSA_3RF_DESC_BASE<"fcle.w", int_mips_fcle_w,
1342                                       MSA128W, MSA128W>;
1343 class FCLE_D_DESC : MSA_3RF_DESC_BASE<"fcle.d", int_mips_fcle_d,
1344                                       MSA128D, MSA128D>;
1345
1346 class FCLT_W_DESC : MSA_3RF_DESC_BASE<"fclt.w", int_mips_fclt_w,
1347                                       MSA128W, MSA128W>;
1348 class FCLT_D_DESC : MSA_3RF_DESC_BASE<"fclt.d", int_mips_fclt_d,
1349                                       MSA128D, MSA128D>;
1350
1351 class FCNE_W_DESC : MSA_3RF_DESC_BASE<"fcne.w", int_mips_fcne_w,
1352                                       MSA128W, MSA128W>,
1353                                       IsCommutable;
1354 class FCNE_D_DESC : MSA_3RF_DESC_BASE<"fcne.d", int_mips_fcne_d,
1355                                       MSA128D, MSA128D>,
1356                                       IsCommutable;
1357
1358 class FCOR_W_DESC : MSA_3RF_DESC_BASE<"fcor.w", int_mips_fcor_w,
1359                                       MSA128W, MSA128W>,
1360                                       IsCommutable;
1361 class FCOR_D_DESC : MSA_3RF_DESC_BASE<"fcor.d", int_mips_fcor_d,
1362                                       MSA128D, MSA128D>,
1363                                       IsCommutable;
1364
1365 class FCUEQ_W_DESC : MSA_3RF_DESC_BASE<"fcueq.w", int_mips_fcueq_w,
1366                                        MSA128W, MSA128W>,
1367                                        IsCommutable;
1368 class FCUEQ_D_DESC : MSA_3RF_DESC_BASE<"fcueq.d", int_mips_fcueq_d,
1369                                        MSA128D, MSA128D>,
1370                                        IsCommutable;
1371
1372 class FCULE_W_DESC : MSA_3RF_DESC_BASE<"fcule.w", int_mips_fcule_w,
1373                                        MSA128W, MSA128W>,
1374                                        IsCommutable;
1375 class FCULE_D_DESC : MSA_3RF_DESC_BASE<"fcule.d", int_mips_fcule_d,
1376                                        MSA128D, MSA128D>,
1377                                        IsCommutable;
1378
1379 class FCULT_W_DESC : MSA_3RF_DESC_BASE<"fcult.w", int_mips_fcult_w,
1380                                        MSA128W, MSA128W>,
1381                                        IsCommutable;
1382 class FCULT_D_DESC : MSA_3RF_DESC_BASE<"fcult.d", int_mips_fcult_d,
1383                                        MSA128D, MSA128D>,
1384                                        IsCommutable;
1385
1386 class FCUN_W_DESC : MSA_3RF_DESC_BASE<"fcun.w", int_mips_fcun_w,
1387                                       MSA128W, MSA128W>,
1388                                       IsCommutable;
1389 class FCUN_D_DESC : MSA_3RF_DESC_BASE<"fcun.d", int_mips_fcun_d,
1390                                       MSA128D, MSA128D>,
1391                                       IsCommutable;
1392
1393 class FCUNE_W_DESC : MSA_3RF_DESC_BASE<"fcune.w", int_mips_fcune_w,
1394                                        MSA128W, MSA128W>,
1395                                        IsCommutable;
1396 class FCUNE_D_DESC : MSA_3RF_DESC_BASE<"fcune.d", int_mips_fcune_d,
1397                                        MSA128D, MSA128D>,
1398                                        IsCommutable;
1399
1400 class FDIV_W_DESC : MSA_3RF_DESC_BASE<"fdiv.w", int_mips_fdiv_w,
1401                                       MSA128W, MSA128W>;
1402 class FDIV_D_DESC : MSA_3RF_DESC_BASE<"fdiv.d", int_mips_fdiv_d,
1403                                       MSA128D, MSA128D>;
1404
1405 class FEXDO_H_DESC : MSA_3RF_DESC_BASE<"fexdo.h", int_mips_fexdo_h,
1406                                        MSA128H, MSA128W>;
1407 class FEXDO_W_DESC : MSA_3RF_DESC_BASE<"fexdo.w", int_mips_fexdo_w,
1408                                        MSA128W, MSA128D>;
1409
1410 class FEXP2_W_DESC : MSA_3RF_DESC_BASE<"fexp2.w", int_mips_fexp2_w,
1411                                        MSA128W, MSA128W>;
1412 class FEXP2_D_DESC : MSA_3RF_DESC_BASE<"fexp2.d", int_mips_fexp2_d,
1413                                        MSA128D, MSA128D>;
1414
1415 class FEXUPL_W_DESC : MSA_2RF_DESC_BASE<"fexupl.w", int_mips_fexupl_w,
1416                                         MSA128W, MSA128H>;
1417 class FEXUPL_D_DESC : MSA_2RF_DESC_BASE<"fexupl.d", int_mips_fexupl_d,
1418                                         MSA128D, MSA128W>;
1419
1420 class FEXUPR_W_DESC : MSA_2RF_DESC_BASE<"fexupr.w", int_mips_fexupr_w,
1421                                         MSA128W, MSA128H>;
1422 class FEXUPR_D_DESC : MSA_2RF_DESC_BASE<"fexupr.d", int_mips_fexupr_d,
1423                                         MSA128D, MSA128W>;
1424
1425 class FFINT_S_W_DESC : MSA_2RF_DESC_BASE<"ffint_s.w", int_mips_ffint_s_w,
1426                                          MSA128W, MSA128W>;
1427 class FFINT_S_D_DESC : MSA_2RF_DESC_BASE<"ffint_s.d", int_mips_ffint_s_d,
1428                                          MSA128D, MSA128D>;
1429
1430 class FFINT_U_W_DESC : MSA_2RF_DESC_BASE<"ffint_u.w", int_mips_ffint_u_w,
1431                                          MSA128W, MSA128W>;
1432 class FFINT_U_D_DESC : MSA_2RF_DESC_BASE<"ffint_u.d", int_mips_ffint_u_d,
1433                                          MSA128D, MSA128D>;
1434
1435 class FFQL_W_DESC : MSA_2RF_DESC_BASE<"ffql.w", int_mips_ffql_w,
1436                                       MSA128W, MSA128H>;
1437 class FFQL_D_DESC : MSA_2RF_DESC_BASE<"ffql.d", int_mips_ffql_d,
1438                                       MSA128D, MSA128W>;
1439
1440 class FFQR_W_DESC : MSA_2RF_DESC_BASE<"ffqr.w", int_mips_ffqr_w,
1441                                       MSA128W, MSA128H>;
1442 class FFQR_D_DESC : MSA_2RF_DESC_BASE<"ffqr.d", int_mips_ffqr_d,
1443                                       MSA128D, MSA128W>;
1444
1445 class FILL_B_DESC : MSA_2R_DESC_BASE<"fill.b", int_mips_fill_b,
1446                                      MSA128B, GPR32>;
1447 class FILL_H_DESC : MSA_2R_DESC_BASE<"fill.h", int_mips_fill_h,
1448                                      MSA128H, GPR32>;
1449 class FILL_W_DESC : MSA_2R_DESC_BASE<"fill.w", int_mips_fill_w,
1450                                      MSA128W, GPR32>;
1451
1452 class FLOG2_W_DESC : MSA_2RF_DESC_BASE<"flog2.w", int_mips_flog2_w,
1453                                        MSA128W, MSA128W>;
1454 class FLOG2_D_DESC : MSA_2RF_DESC_BASE<"flog2.d", int_mips_flog2_d,
1455                                        MSA128D, MSA128D>;
1456
1457 class FMADD_W_DESC : MSA_3RF_4RF_DESC_BASE<"fmadd.w", int_mips_fmadd_w,
1458                                            MSA128W, MSA128W>;
1459 class FMADD_D_DESC : MSA_3RF_4RF_DESC_BASE<"fmadd.d", int_mips_fmadd_d,
1460                                            MSA128D, MSA128D>;
1461
1462 class FMAX_W_DESC : MSA_3RF_DESC_BASE<"fmax.w", int_mips_fmax_w,
1463                                       MSA128W, MSA128W>;
1464 class FMAX_D_DESC : MSA_3RF_DESC_BASE<"fmax.d", int_mips_fmax_d,
1465                                       MSA128D, MSA128D>;
1466
1467 class FMAX_A_W_DESC : MSA_3RF_DESC_BASE<"fmax_a.w", int_mips_fmax_a_w,
1468                                         MSA128W, MSA128W>;
1469 class FMAX_A_D_DESC : MSA_3RF_DESC_BASE<"fmax_a.d", int_mips_fmax_a_d,
1470                                         MSA128D, MSA128D>;
1471
1472 class FMIN_W_DESC : MSA_3RF_DESC_BASE<"fmin.w", int_mips_fmin_w,
1473                                       MSA128W, MSA128W>;
1474 class FMIN_D_DESC : MSA_3RF_DESC_BASE<"fmin.d", int_mips_fmin_d,
1475                                       MSA128D, MSA128D>;
1476
1477 class FMIN_A_W_DESC : MSA_3RF_DESC_BASE<"fmin_a.w", int_mips_fmin_a_w,
1478                                         MSA128W, MSA128W>;
1479 class FMIN_A_D_DESC : MSA_3RF_DESC_BASE<"fmin_a.d", int_mips_fmin_a_d,
1480                                         MSA128D, MSA128D>;
1481
1482 class FMSUB_W_DESC : MSA_3RF_4RF_DESC_BASE<"fmsub.w", int_mips_fmsub_w,
1483                                            MSA128W, MSA128W>;
1484 class FMSUB_D_DESC : MSA_3RF_4RF_DESC_BASE<"fmsub.d", int_mips_fmsub_d,
1485                                            MSA128D, MSA128D>;
1486
1487 class FMUL_W_DESC : MSA_3RF_DESC_BASE<"fmul.w", int_mips_fmul_w,
1488                                       MSA128W, MSA128W>;
1489 class FMUL_D_DESC : MSA_3RF_DESC_BASE<"fmul.d", int_mips_fmul_d,
1490                                       MSA128D, MSA128D>;
1491
1492 class FRINT_W_DESC : MSA_2RF_DESC_BASE<"frint.w", int_mips_frint_w,
1493                                        MSA128W, MSA128W>;
1494 class FRINT_D_DESC : MSA_2RF_DESC_BASE<"frint.d", int_mips_frint_d,
1495                                        MSA128D, MSA128D>;
1496
1497 class FRCP_W_DESC : MSA_2RF_DESC_BASE<"frcp.w", int_mips_frcp_w,
1498                                        MSA128W, MSA128W>;
1499 class FRCP_D_DESC : MSA_2RF_DESC_BASE<"frcp.d", int_mips_frcp_d,
1500                                        MSA128D, MSA128D>;
1501
1502 class FRSQRT_W_DESC : MSA_2RF_DESC_BASE<"frsqrt.w", int_mips_frsqrt_w,
1503                                         MSA128W, MSA128W>;
1504 class FRSQRT_D_DESC : MSA_2RF_DESC_BASE<"frsqrt.d", int_mips_frsqrt_d,
1505                                         MSA128D, MSA128D>;
1506
1507 class FSAF_W_DESC : MSA_3RF_DESC_BASE<"fsaf.w", int_mips_fsaf_w,
1508                                       MSA128W, MSA128W>;
1509 class FSAF_D_DESC : MSA_3RF_DESC_BASE<"fsaf.d", int_mips_fsaf_d,
1510                                       MSA128D, MSA128D>;
1511
1512 class FSEQ_W_DESC : MSA_3RF_DESC_BASE<"fseq.w", int_mips_fseq_w,
1513                                       MSA128W, MSA128W>;
1514 class FSEQ_D_DESC : MSA_3RF_DESC_BASE<"fseq.d", int_mips_fseq_d,
1515                                       MSA128D, MSA128D>;
1516
1517 class FSLE_W_DESC : MSA_3RF_DESC_BASE<"fsle.w", int_mips_fsle_w,
1518                                       MSA128W, MSA128W>;
1519 class FSLE_D_DESC : MSA_3RF_DESC_BASE<"fsle.d", int_mips_fsle_d,
1520                                       MSA128D, MSA128D>;
1521
1522 class FSLT_W_DESC : MSA_3RF_DESC_BASE<"fslt.w", int_mips_fslt_w,
1523                                       MSA128W, MSA128W>;
1524 class FSLT_D_DESC : MSA_3RF_DESC_BASE<"fslt.d", int_mips_fslt_d,
1525                                       MSA128D, MSA128D>;
1526
1527 class FSNE_W_DESC : MSA_3RF_DESC_BASE<"fsne.w", int_mips_fsne_w,
1528                                       MSA128W, MSA128W>;
1529 class FSNE_D_DESC : MSA_3RF_DESC_BASE<"fsne.d", int_mips_fsne_d,
1530                                       MSA128D, MSA128D>;
1531
1532 class FSOR_W_DESC : MSA_3RF_DESC_BASE<"fsor.w", int_mips_fsor_w,
1533                                       MSA128W, MSA128W>;
1534 class FSOR_D_DESC : MSA_3RF_DESC_BASE<"fsor.d", int_mips_fsor_d,
1535                                       MSA128D, MSA128D>;
1536
1537 class FSQRT_W_DESC : MSA_2RF_DESC_BASE<"fsqrt.w", int_mips_fsqrt_w,
1538                                        MSA128W, MSA128W>;
1539 class FSQRT_D_DESC : MSA_2RF_DESC_BASE<"fsqrt.d", int_mips_fsqrt_d,
1540                                        MSA128D, MSA128D>;
1541
1542 class FSUB_W_DESC : MSA_3RF_DESC_BASE<"fsub.w", int_mips_fsub_w,
1543                                       MSA128W, MSA128W>;
1544 class FSUB_D_DESC : MSA_3RF_DESC_BASE<"fsub.d", int_mips_fsub_d,
1545                                       MSA128D, MSA128D>;
1546
1547 class FSUEQ_W_DESC : MSA_3RF_DESC_BASE<"fsueq.w", int_mips_fsueq_w,
1548                                        MSA128W, MSA128W>;
1549 class FSUEQ_D_DESC : MSA_3RF_DESC_BASE<"fsueq.d", int_mips_fsueq_d,
1550                                        MSA128D, MSA128D>;
1551
1552 class FSULE_W_DESC : MSA_3RF_DESC_BASE<"fsule.w", int_mips_fsule_w,
1553                                        MSA128W, MSA128W>;
1554 class FSULE_D_DESC : MSA_3RF_DESC_BASE<"fsule.d", int_mips_fsule_d,
1555                                        MSA128D, MSA128D>;
1556
1557 class FSULT_W_DESC : MSA_3RF_DESC_BASE<"fsult.w", int_mips_fsult_w,
1558                                        MSA128W, MSA128W>;
1559 class FSULT_D_DESC : MSA_3RF_DESC_BASE<"fsult.d", int_mips_fsult_d,
1560                                        MSA128D, MSA128D>;
1561
1562 class FSUN_W_DESC : MSA_3RF_DESC_BASE<"fsun.w", int_mips_fsun_w,
1563                                       MSA128W, MSA128W>;
1564 class FSUN_D_DESC : MSA_3RF_DESC_BASE<"fsun.d", int_mips_fsun_d,
1565                                       MSA128D, MSA128D>;
1566
1567 class FSUNE_W_DESC : MSA_3RF_DESC_BASE<"fsune.w", int_mips_fsune_w,
1568                                        MSA128W, MSA128W>;
1569 class FSUNE_D_DESC : MSA_3RF_DESC_BASE<"fsune.d", int_mips_fsune_d,
1570                                        MSA128D, MSA128D>;
1571
1572 class FTRUNC_S_W_DESC : MSA_2RF_DESC_BASE<"ftrunc_s.w", int_mips_ftrunc_s_w,
1573                                           MSA128W, MSA128W>;
1574 class FTRUNC_S_D_DESC : MSA_2RF_DESC_BASE<"ftrunc_s.d", int_mips_ftrunc_s_d,
1575                                           MSA128D, MSA128D>;
1576
1577 class FTRUNC_U_W_DESC : MSA_2RF_DESC_BASE<"ftrunc_u.w", int_mips_ftrunc_u_w,
1578                                           MSA128W, MSA128W>;
1579 class FTRUNC_U_D_DESC : MSA_2RF_DESC_BASE<"ftrunc_u.d", int_mips_ftrunc_u_d,
1580                                           MSA128D, MSA128D>;
1581
1582 class FTINT_S_W_DESC : MSA_2RF_DESC_BASE<"ftint_s.w", int_mips_ftint_s_w,
1583                                          MSA128W, MSA128W>;
1584 class FTINT_S_D_DESC : MSA_2RF_DESC_BASE<"ftint_s.d", int_mips_ftint_s_d,
1585                                          MSA128D, MSA128D>;
1586
1587 class FTINT_U_W_DESC : MSA_2RF_DESC_BASE<"ftint_u.w", int_mips_ftint_u_w,
1588                                          MSA128W, MSA128W>;
1589 class FTINT_U_D_DESC : MSA_2RF_DESC_BASE<"ftint_u.d", int_mips_ftint_u_d,
1590                                          MSA128D, MSA128D>;
1591
1592 class FTQ_H_DESC : MSA_3RF_DESC_BASE<"ftq.h", int_mips_ftq_h,
1593                                      MSA128H, MSA128W>;
1594 class FTQ_W_DESC : MSA_3RF_DESC_BASE<"ftq.w", int_mips_ftq_w,
1595                                      MSA128W, MSA128D>;
1596
1597 class HADD_S_H_DESC : MSA_3R_DESC_BASE<"hadd_s.h", int_mips_hadd_s_h, MSA128H,
1598                                        MSA128B, MSA128B>;
1599 class HADD_S_W_DESC : MSA_3R_DESC_BASE<"hadd_s.w", int_mips_hadd_s_w, MSA128W,
1600                                        MSA128H, MSA128H>;
1601 class HADD_S_D_DESC : MSA_3R_DESC_BASE<"hadd_s.d", int_mips_hadd_s_d, MSA128D,
1602                                        MSA128W, MSA128W>;
1603
1604 class HADD_U_H_DESC : MSA_3R_DESC_BASE<"hadd_u.h", int_mips_hadd_u_h, MSA128H,
1605                                        MSA128B, MSA128B>;
1606 class HADD_U_W_DESC : MSA_3R_DESC_BASE<"hadd_u.w", int_mips_hadd_u_w, MSA128W,
1607                                        MSA128H, MSA128H>;
1608 class HADD_U_D_DESC : MSA_3R_DESC_BASE<"hadd_u.d", int_mips_hadd_u_d, MSA128D,
1609                                        MSA128W, MSA128W>;
1610
1611 class HSUB_S_H_DESC : MSA_3R_DESC_BASE<"hsub_s.h", int_mips_hsub_s_h, MSA128H,
1612                                        MSA128B, MSA128B>;
1613 class HSUB_S_W_DESC : MSA_3R_DESC_BASE<"hsub_s.w", int_mips_hsub_s_w, MSA128W,
1614                                        MSA128H, MSA128H>;
1615 class HSUB_S_D_DESC : MSA_3R_DESC_BASE<"hsub_s.d", int_mips_hsub_s_d, MSA128D,
1616                                        MSA128W, MSA128W>;
1617
1618 class HSUB_U_H_DESC : MSA_3R_DESC_BASE<"hsub_u.h", int_mips_hsub_u_h, MSA128H,
1619                                        MSA128B, MSA128B>;
1620 class HSUB_U_W_DESC : MSA_3R_DESC_BASE<"hsub_u.w", int_mips_hsub_u_w, MSA128W,
1621                                        MSA128H, MSA128H>;
1622 class HSUB_U_D_DESC : MSA_3R_DESC_BASE<"hsub_u.d", int_mips_hsub_u_d, MSA128D,
1623                                        MSA128W, MSA128W>;
1624
1625 class ILVEV_B_DESC : MSA_3R_DESC_BASE<"ilvev.b", int_mips_ilvev_b, MSA128B>;
1626 class ILVEV_H_DESC : MSA_3R_DESC_BASE<"ilvev.h", int_mips_ilvev_h, MSA128H>;
1627 class ILVEV_W_DESC : MSA_3R_DESC_BASE<"ilvev.w", int_mips_ilvev_w, MSA128W>;
1628 class ILVEV_D_DESC : MSA_3R_DESC_BASE<"ilvev.d", int_mips_ilvev_d, MSA128D>;
1629
1630 class ILVL_B_DESC : MSA_3R_DESC_BASE<"ilvl.b", int_mips_ilvl_b, MSA128B>;
1631 class ILVL_H_DESC : MSA_3R_DESC_BASE<"ilvl.h", int_mips_ilvl_h, MSA128H>;
1632 class ILVL_W_DESC : MSA_3R_DESC_BASE<"ilvl.w", int_mips_ilvl_w, MSA128W>;
1633 class ILVL_D_DESC : MSA_3R_DESC_BASE<"ilvl.d", int_mips_ilvl_d, MSA128D>;
1634
1635 class ILVOD_B_DESC : MSA_3R_DESC_BASE<"ilvod.b", int_mips_ilvod_b, MSA128B>;
1636 class ILVOD_H_DESC : MSA_3R_DESC_BASE<"ilvod.h", int_mips_ilvod_h, MSA128H>;
1637 class ILVOD_W_DESC : MSA_3R_DESC_BASE<"ilvod.w", int_mips_ilvod_w, MSA128W>;
1638 class ILVOD_D_DESC : MSA_3R_DESC_BASE<"ilvod.d", int_mips_ilvod_d, MSA128D>;
1639
1640 class ILVR_B_DESC : MSA_3R_DESC_BASE<"ilvr.b", int_mips_ilvr_b, MSA128B>;
1641 class ILVR_H_DESC : MSA_3R_DESC_BASE<"ilvr.h", int_mips_ilvr_h, MSA128H>;
1642 class ILVR_W_DESC : MSA_3R_DESC_BASE<"ilvr.w", int_mips_ilvr_w, MSA128W>;
1643 class ILVR_D_DESC : MSA_3R_DESC_BASE<"ilvr.d", int_mips_ilvr_d, MSA128D>;
1644
1645 class INSERT_B_DESC : MSA_INSERT_DESC_BASE<"insert.b", int_mips_insert_b,
1646                                            MSA128B, GPR32>;
1647 class INSERT_H_DESC : MSA_INSERT_DESC_BASE<"insert.h", int_mips_insert_h,
1648                                            MSA128H, GPR32>;
1649 class INSERT_W_DESC : MSA_INSERT_DESC_BASE<"insert.w", int_mips_insert_w,
1650                                            MSA128W, GPR32>;
1651
1652 class INSVE_B_DESC : MSA_INSVE_DESC_BASE<"insve.b", int_mips_insve_b,
1653                                          MSA128B, MSA128B>;
1654 class INSVE_H_DESC : MSA_INSVE_DESC_BASE<"insve.h", int_mips_insve_h,
1655                                          MSA128H, MSA128H>;
1656 class INSVE_W_DESC : MSA_INSVE_DESC_BASE<"insve.w", int_mips_insve_w,
1657                                          MSA128W, MSA128W>;
1658 class INSVE_D_DESC : MSA_INSVE_DESC_BASE<"insve.d", int_mips_insve_d,
1659                                          MSA128D, MSA128D>;
1660
1661 class LD_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
1662                    ValueType TyNode, RegisterClass RCWD,
1663                    Operand MemOpnd = mem, ComplexPattern Addr = addrRegImm,
1664                    InstrItinClass itin = NoItinerary> {
1665   dag OutOperandList = (outs RCWD:$wd);
1666   dag InOperandList = (ins MemOpnd:$addr);
1667   string AsmString = !strconcat(instr_asm, "\t$wd, $addr");
1668   list<dag> Pattern = [(set RCWD:$wd, (TyNode (OpNode Addr:$addr)))];
1669   InstrItinClass Itinerary = itin;
1670 }
1671
1672 class LD_B_DESC : LD_DESC_BASE<"ld.b", load, v16i8, MSA128B>;
1673 class LD_H_DESC : LD_DESC_BASE<"ld.h", load, v8i16, MSA128H>;
1674 class LD_W_DESC : LD_DESC_BASE<"ld.w", load, v4i32, MSA128W>;
1675 class LD_D_DESC : LD_DESC_BASE<"ld.d", load, v2i64, MSA128D>;
1676
1677 class LDI_B_DESC : MSA_I10_DESC_BASE<"ldi.b", int_mips_ldi_b, MSA128B>;
1678 class LDI_H_DESC : MSA_I10_DESC_BASE<"ldi.h", int_mips_ldi_h, MSA128H>;
1679 class LDI_W_DESC : MSA_I10_DESC_BASE<"ldi.w", int_mips_ldi_w, MSA128W>;
1680 class LDI_D_DESC : MSA_I10_DESC_BASE<"ldi.d", int_mips_ldi_d, MSA128D>;
1681
1682 class LDX_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
1683                     ValueType TyNode, RegisterClass RCWD,
1684                     Operand MemOpnd = mem, ComplexPattern Addr = addrRegReg,
1685                     InstrItinClass itin = NoItinerary> {
1686   dag OutOperandList = (outs RCWD:$wd);
1687   dag InOperandList = (ins MemOpnd:$addr);
1688   string AsmString = !strconcat(instr_asm, "\t$wd, $addr");
1689   list<dag> Pattern = [(set RCWD:$wd, (TyNode (OpNode Addr:$addr)))];
1690   InstrItinClass Itinerary = itin;
1691 }
1692
1693 class LDX_B_DESC : LDX_DESC_BASE<"ldx.b", load, v16i8, MSA128B>;
1694 class LDX_H_DESC : LDX_DESC_BASE<"ldx.h", load, v8i16, MSA128H>;
1695 class LDX_W_DESC : LDX_DESC_BASE<"ldx.w", load, v4i32, MSA128W>;
1696 class LDX_D_DESC : LDX_DESC_BASE<"ldx.d", load, v2i64, MSA128D>;
1697
1698 class MADD_Q_H_DESC : MSA_3RF_4RF_DESC_BASE<"madd_q.h", int_mips_madd_q_h,
1699                                             MSA128H, MSA128H>;
1700 class MADD_Q_W_DESC : MSA_3RF_4RF_DESC_BASE<"madd_q.w", int_mips_madd_q_w,
1701                                             MSA128W, MSA128W>;
1702
1703 class MADDR_Q_H_DESC : MSA_3RF_4RF_DESC_BASE<"maddr_q.h", int_mips_maddr_q_h,
1704                                              MSA128H, MSA128H>;
1705 class MADDR_Q_W_DESC : MSA_3RF_4RF_DESC_BASE<"maddr_q.w", int_mips_maddr_q_w,
1706                                              MSA128W, MSA128W>;
1707
1708 class MADDV_B_DESC : MSA_3R_4R_DESC_BASE<"maddv.b", int_mips_maddv_b,
1709                                          MSA128B, MSA128B>;
1710 class MADDV_H_DESC : MSA_3R_4R_DESC_BASE<"maddv.h", int_mips_maddv_h,
1711                                          MSA128H, MSA128H>;
1712 class MADDV_W_DESC : MSA_3R_4R_DESC_BASE<"maddv.w", int_mips_maddv_w,
1713                                          MSA128W, MSA128W>;
1714 class MADDV_D_DESC : MSA_3R_4R_DESC_BASE<"maddv.d", int_mips_maddv_d,
1715                                          MSA128D, MSA128D>;
1716
1717 class MAX_A_B_DESC : MSA_3R_DESC_BASE<"max_a.b", int_mips_max_a_b, MSA128B>;
1718 class MAX_A_H_DESC : MSA_3R_DESC_BASE<"max_a.h", int_mips_max_a_h, MSA128H>;
1719 class MAX_A_W_DESC : MSA_3R_DESC_BASE<"max_a.w", int_mips_max_a_w, MSA128W>;
1720 class MAX_A_D_DESC : MSA_3R_DESC_BASE<"max_a.d", int_mips_max_a_d, MSA128D>;
1721
1722 class MAX_S_B_DESC : MSA_3R_DESC_BASE<"max_s.b", int_mips_max_s_b, MSA128B>;
1723 class MAX_S_H_DESC : MSA_3R_DESC_BASE<"max_s.h", int_mips_max_s_h, MSA128H>;
1724 class MAX_S_W_DESC : MSA_3R_DESC_BASE<"max_s.w", int_mips_max_s_w, MSA128W>;
1725 class MAX_S_D_DESC : MSA_3R_DESC_BASE<"max_s.d", int_mips_max_s_d, MSA128D>;
1726
1727 class MAX_U_B_DESC : MSA_3R_DESC_BASE<"max_u.b", int_mips_max_u_b, MSA128B>;
1728 class MAX_U_H_DESC : MSA_3R_DESC_BASE<"max_u.h", int_mips_max_u_h, MSA128H>;
1729 class MAX_U_W_DESC : MSA_3R_DESC_BASE<"max_u.w", int_mips_max_u_w, MSA128W>;
1730 class MAX_U_D_DESC : MSA_3R_DESC_BASE<"max_u.d", int_mips_max_u_d, MSA128D>;
1731
1732 class MAXI_S_B_DESC : MSA_I5_DESC_BASE<"maxi_s.b", int_mips_maxi_s_b,
1733                                        MSA128B, MSA128B>;
1734 class MAXI_S_H_DESC : MSA_I5_DESC_BASE<"maxi_s.h", int_mips_maxi_s_h,
1735                                        MSA128H, MSA128H>;
1736 class MAXI_S_W_DESC : MSA_I5_DESC_BASE<"maxi_s.w", int_mips_maxi_s_w,
1737                                        MSA128W, MSA128W>;
1738 class MAXI_S_D_DESC : MSA_I5_DESC_BASE<"maxi_s.d", int_mips_maxi_s_d,
1739                                        MSA128D, MSA128D>;
1740
1741 class MAXI_U_B_DESC : MSA_I5_DESC_BASE<"maxi_u.b", int_mips_maxi_u_b,
1742                                        MSA128B, MSA128B>;
1743 class MAXI_U_H_DESC : MSA_I5_DESC_BASE<"maxi_u.h", int_mips_maxi_u_h,
1744                                        MSA128H, MSA128H>;
1745 class MAXI_U_W_DESC : MSA_I5_DESC_BASE<"maxi_u.w", int_mips_maxi_u_w,
1746                                        MSA128W, MSA128W>;
1747 class MAXI_U_D_DESC : MSA_I5_DESC_BASE<"maxi_u.d", int_mips_maxi_u_d,
1748                                        MSA128D, MSA128D>;
1749
1750 class MIN_A_B_DESC : MSA_3R_DESC_BASE<"min_a.b", int_mips_min_a_b, MSA128B>;
1751 class MIN_A_H_DESC : MSA_3R_DESC_BASE<"min_a.h", int_mips_min_a_h, MSA128H>;
1752 class MIN_A_W_DESC : MSA_3R_DESC_BASE<"min_a.w", int_mips_min_a_w, MSA128W>;
1753 class MIN_A_D_DESC : MSA_3R_DESC_BASE<"min_a.d", int_mips_min_a_d, MSA128D>;
1754
1755 class MIN_S_B_DESC : MSA_3R_DESC_BASE<"min_s.b", int_mips_min_s_b, MSA128B>;
1756 class MIN_S_H_DESC : MSA_3R_DESC_BASE<"min_s.h", int_mips_min_s_h, MSA128H>;
1757 class MIN_S_W_DESC : MSA_3R_DESC_BASE<"min_s.w", int_mips_min_s_w, MSA128W>;
1758 class MIN_S_D_DESC : MSA_3R_DESC_BASE<"min_s.d", int_mips_min_s_d, MSA128D>;
1759
1760 class MIN_U_B_DESC : MSA_3R_DESC_BASE<"min_u.b", int_mips_min_u_b, MSA128B>;
1761 class MIN_U_H_DESC : MSA_3R_DESC_BASE<"min_u.h", int_mips_min_u_h, MSA128H>;
1762 class MIN_U_W_DESC : MSA_3R_DESC_BASE<"min_u.w", int_mips_min_u_w, MSA128W>;
1763 class MIN_U_D_DESC : MSA_3R_DESC_BASE<"min_u.d", int_mips_min_u_d, MSA128D>;
1764
1765 class MINI_S_B_DESC : MSA_I5_DESC_BASE<"mini_s.b", int_mips_mini_s_b,
1766                                        MSA128B, MSA128B>;
1767 class MINI_S_H_DESC : MSA_I5_DESC_BASE<"mini_s.h", int_mips_mini_s_h,
1768                                        MSA128H, MSA128H>;
1769 class MINI_S_W_DESC : MSA_I5_DESC_BASE<"mini_s.w", int_mips_mini_s_w,
1770                                        MSA128W, MSA128W>;
1771 class MINI_S_D_DESC : MSA_I5_DESC_BASE<"mini_s.d", int_mips_mini_s_d,
1772                                        MSA128D, MSA128D>;
1773
1774 class MINI_U_B_DESC : MSA_I5_DESC_BASE<"mini_u.b", int_mips_mini_u_b,
1775                                        MSA128B, MSA128B>;
1776 class MINI_U_H_DESC : MSA_I5_DESC_BASE<"mini_u.h", int_mips_mini_u_h,
1777                                        MSA128H, MSA128H>;
1778 class MINI_U_W_DESC : MSA_I5_DESC_BASE<"mini_u.w", int_mips_mini_u_w,
1779                                        MSA128W, MSA128W>;
1780 class MINI_U_D_DESC : MSA_I5_DESC_BASE<"mini_u.d", int_mips_mini_u_d,
1781                                        MSA128D, MSA128D>;
1782
1783 class MOD_S_B_DESC : MSA_3R_DESC_BASE<"mod_s.b", int_mips_mod_s_b, MSA128B>;
1784 class MOD_S_H_DESC : MSA_3R_DESC_BASE<"mod_s.h", int_mips_mod_s_h, MSA128H>;
1785 class MOD_S_W_DESC : MSA_3R_DESC_BASE<"mod_s.w", int_mips_mod_s_w, MSA128W>;
1786 class MOD_S_D_DESC : MSA_3R_DESC_BASE<"mod_s.d", int_mips_mod_s_d, MSA128D>;
1787
1788 class MOD_U_B_DESC : MSA_3R_DESC_BASE<"mod_u.b", int_mips_mod_u_b, MSA128B>;
1789 class MOD_U_H_DESC : MSA_3R_DESC_BASE<"mod_u.h", int_mips_mod_u_h, MSA128H>;
1790 class MOD_U_W_DESC : MSA_3R_DESC_BASE<"mod_u.w", int_mips_mod_u_w, MSA128W>;
1791 class MOD_U_D_DESC : MSA_3R_DESC_BASE<"mod_u.d", int_mips_mod_u_d, MSA128D>;
1792
1793 class MOVE_V_DESC {
1794   dag OutOperandList = (outs MSA128B:$wd);
1795   dag InOperandList = (ins MSA128B:$ws);
1796   string AsmString = "move.v\t$wd, $ws";
1797   list<dag> Pattern = [];
1798   InstrItinClass Itinerary = NoItinerary;
1799 }
1800
1801 class MSUB_Q_H_DESC : MSA_3RF_4RF_DESC_BASE<"msub_q.h", int_mips_msub_q_h,
1802                                             MSA128H, MSA128H>;
1803 class MSUB_Q_W_DESC : MSA_3RF_4RF_DESC_BASE<"msub_q.w", int_mips_msub_q_w,
1804                                             MSA128W, MSA128W>;
1805
1806 class MSUBR_Q_H_DESC : MSA_3RF_4RF_DESC_BASE<"msubr_q.h", int_mips_msubr_q_h,
1807                                              MSA128H, MSA128H>;
1808 class MSUBR_Q_W_DESC : MSA_3RF_4RF_DESC_BASE<"msubr_q.w", int_mips_msubr_q_w,
1809                                              MSA128W, MSA128W>;
1810
1811 class MSUBV_B_DESC : MSA_3R_4R_DESC_BASE<"msubv.b", int_mips_msubv_b,
1812                                          MSA128B, MSA128B>;
1813 class MSUBV_H_DESC : MSA_3R_4R_DESC_BASE<"msubv.h", int_mips_msubv_h,
1814                                          MSA128H, MSA128H>;
1815 class MSUBV_W_DESC : MSA_3R_4R_DESC_BASE<"msubv.w", int_mips_msubv_w,
1816                                          MSA128W, MSA128W>;
1817 class MSUBV_D_DESC : MSA_3R_4R_DESC_BASE<"msubv.d", int_mips_msubv_d,
1818                                          MSA128D, MSA128D>;
1819
1820 class MUL_Q_H_DESC : MSA_3RF_DESC_BASE<"mul_q.h", int_mips_mul_q_h,
1821                                        MSA128H, MSA128H>;
1822 class MUL_Q_W_DESC : MSA_3RF_DESC_BASE<"mul_q.w", int_mips_mul_q_w,
1823                                        MSA128W, MSA128W>;
1824
1825 class MULR_Q_H_DESC : MSA_3RF_DESC_BASE<"mulr_q.h", int_mips_mulr_q_h,
1826                                         MSA128H, MSA128H>;
1827 class MULR_Q_W_DESC : MSA_3RF_DESC_BASE<"mulr_q.w", int_mips_mulr_q_w,
1828                                         MSA128W, MSA128W>;
1829
1830 class MULV_B_DESC : MSA_3R_DESC_BASE<"mulv.b", int_mips_mulv_b, MSA128B>;
1831 class MULV_H_DESC : MSA_3R_DESC_BASE<"mulv.h", int_mips_mulv_h, MSA128H>;
1832 class MULV_W_DESC : MSA_3R_DESC_BASE<"mulv.w", int_mips_mulv_w, MSA128W>;
1833 class MULV_D_DESC : MSA_3R_DESC_BASE<"mulv.d", int_mips_mulv_d, MSA128D>;
1834
1835 class NLOC_B_DESC : MSA_2R_DESC_BASE<"nloc.b", int_mips_nloc_b,
1836                                      MSA128B, MSA128B>;
1837 class NLOC_H_DESC : MSA_2R_DESC_BASE<"nloc.h", int_mips_nloc_h,
1838                                      MSA128H, MSA128H>;
1839 class NLOC_W_DESC : MSA_2R_DESC_BASE<"nloc.w", int_mips_nloc_w,
1840                                      MSA128W, MSA128W>;
1841 class NLOC_D_DESC : MSA_2R_DESC_BASE<"nloc.d", int_mips_nloc_d,
1842                                      MSA128D, MSA128D>;
1843
1844 class NLZC_B_DESC : MSA_2R_DESC_BASE<"nlzc.b", int_mips_nlzc_b,
1845                                      MSA128B, MSA128B>;
1846 class NLZC_H_DESC : MSA_2R_DESC_BASE<"nlzc.h", int_mips_nlzc_h,
1847                                      MSA128H, MSA128H>;
1848 class NLZC_W_DESC : MSA_2R_DESC_BASE<"nlzc.w", int_mips_nlzc_w,
1849                                      MSA128W, MSA128W>;
1850 class NLZC_D_DESC : MSA_2R_DESC_BASE<"nlzc.d", int_mips_nlzc_d,
1851                                      MSA128D, MSA128D>;
1852
1853 class NOR_V_DESC : MSA_VEC_DESC_BASE<"nor.v", int_mips_nor_v,
1854                                      MSA128B, MSA128B>;
1855
1856 class NORI_B_DESC : MSA_I8_DESC_BASE<"nori.b", int_mips_nori_b,
1857                                      MSA128B, MSA128B>;
1858
1859 class OR_V_DESC : MSA_VEC_DESC_BASE<"or.v", int_mips_or_v,
1860                                     MSA128B, MSA128B>;
1861
1862 class ORI_B_DESC : MSA_I8_DESC_BASE<"ori.b", int_mips_ori_b,
1863                                     MSA128B, MSA128B>;
1864
1865 class PCKEV_B_DESC : MSA_3R_DESC_BASE<"pckev.b", int_mips_pckev_b, MSA128B>;
1866 class PCKEV_H_DESC : MSA_3R_DESC_BASE<"pckev.h", int_mips_pckev_h, MSA128H>;
1867 class PCKEV_W_DESC : MSA_3R_DESC_BASE<"pckev.w", int_mips_pckev_w, MSA128W>;
1868 class PCKEV_D_DESC : MSA_3R_DESC_BASE<"pckev.d", int_mips_pckev_d, MSA128D>;
1869
1870 class PCKOD_B_DESC : MSA_3R_DESC_BASE<"pckod.b", int_mips_pckod_b, MSA128B>;
1871 class PCKOD_H_DESC : MSA_3R_DESC_BASE<"pckod.h", int_mips_pckod_h, MSA128H>;
1872 class PCKOD_W_DESC : MSA_3R_DESC_BASE<"pckod.w", int_mips_pckod_w, MSA128W>;
1873 class PCKOD_D_DESC : MSA_3R_DESC_BASE<"pckod.d", int_mips_pckod_d, MSA128D>;
1874
1875 class PCNT_B_DESC : MSA_2R_DESC_BASE<"pcnt.b", int_mips_pcnt_b,
1876                                      MSA128B, MSA128B>;
1877 class PCNT_H_DESC : MSA_2R_DESC_BASE<"pcnt.h", int_mips_pcnt_h,
1878                                      MSA128H, MSA128H>;
1879 class PCNT_W_DESC : MSA_2R_DESC_BASE<"pcnt.w", int_mips_pcnt_w,
1880                                      MSA128W, MSA128W>;
1881 class PCNT_D_DESC : MSA_2R_DESC_BASE<"pcnt.d", int_mips_pcnt_d,
1882                                      MSA128D, MSA128D>;
1883
1884 class SAT_S_B_DESC : MSA_BIT_B_DESC_BASE<"sat_s.b", int_mips_sat_s_b, MSA128B>;
1885 class SAT_S_H_DESC : MSA_BIT_H_DESC_BASE<"sat_s.h", int_mips_sat_s_h, MSA128H>;
1886 class SAT_S_W_DESC : MSA_BIT_W_DESC_BASE<"sat_s.w", int_mips_sat_s_w, MSA128W>;
1887 class SAT_S_D_DESC : MSA_BIT_D_DESC_BASE<"sat_s.d", int_mips_sat_s_d, MSA128D>;
1888
1889 class SAT_U_B_DESC : MSA_BIT_B_DESC_BASE<"sat_u.b", int_mips_sat_u_b, MSA128B>;
1890 class SAT_U_H_DESC : MSA_BIT_H_DESC_BASE<"sat_u.h", int_mips_sat_u_h, MSA128H>;
1891 class SAT_U_W_DESC : MSA_BIT_W_DESC_BASE<"sat_u.w", int_mips_sat_u_w, MSA128W>;
1892 class SAT_U_D_DESC : MSA_BIT_D_DESC_BASE<"sat_u.d", int_mips_sat_u_d, MSA128D>;
1893
1894 class SHF_B_DESC : MSA_I8_DESC_BASE<"shf.b", int_mips_shf_b,
1895                                     MSA128B, MSA128B>;
1896 class SHF_H_DESC : MSA_I8_DESC_BASE<"shf.h", int_mips_shf_h,
1897                                     MSA128H, MSA128H>;
1898 class SHF_W_DESC : MSA_I8_DESC_BASE<"shf.w", int_mips_shf_w,
1899                                     MSA128W, MSA128W>;
1900
1901 class SLD_B_DESC : MSA_3R_DESC_BASE<"sld.b", int_mips_sld_b, MSA128B>;
1902 class SLD_H_DESC : MSA_3R_DESC_BASE<"sld.h", int_mips_sld_h, MSA128H>;
1903 class SLD_W_DESC : MSA_3R_DESC_BASE<"sld.w", int_mips_sld_w, MSA128W>;
1904 class SLD_D_DESC : MSA_3R_DESC_BASE<"sld.d", int_mips_sld_d, MSA128D>;
1905
1906 class SLDI_B_DESC : MSA_BIT_B_DESC_BASE<"sldi.b", int_mips_sldi_b, MSA128B>;
1907 class SLDI_H_DESC : MSA_BIT_H_DESC_BASE<"sldi.h", int_mips_sldi_h, MSA128H>;
1908 class SLDI_W_DESC : MSA_BIT_W_DESC_BASE<"sldi.w", int_mips_sldi_w, MSA128W>;
1909 class SLDI_D_DESC : MSA_BIT_D_DESC_BASE<"sldi.d", int_mips_sldi_d, MSA128D>;
1910
1911 class SLL_B_DESC : MSA_3R_DESC_BASE<"sll.b", int_mips_sll_b, MSA128B>;
1912 class SLL_H_DESC : MSA_3R_DESC_BASE<"sll.h", int_mips_sll_h, MSA128H>;
1913 class SLL_W_DESC : MSA_3R_DESC_BASE<"sll.w", int_mips_sll_w, MSA128W>;
1914 class SLL_D_DESC : MSA_3R_DESC_BASE<"sll.d", int_mips_sll_d, MSA128D>;
1915
1916 class SLLI_B_DESC : MSA_BIT_B_DESC_BASE<"slli.b", int_mips_slli_b, MSA128B>;
1917 class SLLI_H_DESC : MSA_BIT_H_DESC_BASE<"slli.h", int_mips_slli_h, MSA128H>;
1918 class SLLI_W_DESC : MSA_BIT_W_DESC_BASE<"slli.w", int_mips_slli_w, MSA128W>;
1919 class SLLI_D_DESC : MSA_BIT_D_DESC_BASE<"slli.d", int_mips_slli_d, MSA128D>;
1920
1921 class SPLAT_B_DESC : MSA_3R_DESC_BASE<"splat.b", int_mips_splat_b, MSA128B,
1922                                       MSA128B, GPR32>;
1923 class SPLAT_H_DESC : MSA_3R_DESC_BASE<"splat.h", int_mips_splat_h, MSA128H,
1924                                       MSA128H, GPR32>;
1925 class SPLAT_W_DESC : MSA_3R_DESC_BASE<"splat.w", int_mips_splat_w, MSA128W,
1926                                       MSA128W, GPR32>;
1927 class SPLAT_D_DESC : MSA_3R_DESC_BASE<"splat.d", int_mips_splat_d, MSA128D,
1928                                       MSA128D, GPR32>;
1929
1930 class SPLATI_B_DESC : MSA_BIT_B_DESC_BASE<"splati.b", int_mips_splati_b,
1931                                           MSA128B>;
1932 class SPLATI_H_DESC : MSA_BIT_H_DESC_BASE<"splati.h", int_mips_splati_h,
1933                                           MSA128H>;
1934 class SPLATI_W_DESC : MSA_BIT_W_DESC_BASE<"splati.w", int_mips_splati_w,
1935                                           MSA128W>;
1936 class SPLATI_D_DESC : MSA_BIT_D_DESC_BASE<"splati.d", int_mips_splati_d,
1937                                           MSA128D>;
1938
1939 class SRA_B_DESC : MSA_3R_DESC_BASE<"sra.b", int_mips_sra_b, MSA128B>;
1940 class SRA_H_DESC : MSA_3R_DESC_BASE<"sra.h", int_mips_sra_h, MSA128H>;
1941 class SRA_W_DESC : MSA_3R_DESC_BASE<"sra.w", int_mips_sra_w, MSA128W>;
1942 class SRA_D_DESC : MSA_3R_DESC_BASE<"sra.d", int_mips_sra_d, MSA128D>;
1943
1944 class SRAI_B_DESC : MSA_BIT_B_DESC_BASE<"srai.b", int_mips_srai_b, MSA128B>;
1945 class SRAI_H_DESC : MSA_BIT_H_DESC_BASE<"srai.h", int_mips_srai_h, MSA128H>;
1946 class SRAI_W_DESC : MSA_BIT_W_DESC_BASE<"srai.w", int_mips_srai_w, MSA128W>;
1947 class SRAI_D_DESC : MSA_BIT_D_DESC_BASE<"srai.d", int_mips_srai_d, MSA128D>;
1948
1949 class SRAR_B_DESC : MSA_3R_DESC_BASE<"srar.b", int_mips_srar_b, MSA128B>;
1950 class SRAR_H_DESC : MSA_3R_DESC_BASE<"srar.h", int_mips_srar_h, MSA128H>;
1951 class SRAR_W_DESC : MSA_3R_DESC_BASE<"srar.w", int_mips_srar_w, MSA128W>;
1952 class SRAR_D_DESC : MSA_3R_DESC_BASE<"srar.d", int_mips_srar_d, MSA128D>;
1953
1954 class SRARI_B_DESC : MSA_BIT_B_DESC_BASE<"srari.b", int_mips_srari_b, MSA128B>;
1955 class SRARI_H_DESC : MSA_BIT_H_DESC_BASE<"srari.h", int_mips_srari_h, MSA128H>;
1956 class SRARI_W_DESC : MSA_BIT_W_DESC_BASE<"srari.w", int_mips_srari_w, MSA128W>;
1957 class SRARI_D_DESC : MSA_BIT_D_DESC_BASE<"srari.d", int_mips_srari_d, MSA128D>;
1958
1959 class SRL_B_DESC : MSA_3R_DESC_BASE<"srl.b", int_mips_srl_b, MSA128B>;
1960 class SRL_H_DESC : MSA_3R_DESC_BASE<"srl.h", int_mips_srl_h, MSA128H>;
1961 class SRL_W_DESC : MSA_3R_DESC_BASE<"srl.w", int_mips_srl_w, MSA128W>;
1962 class SRL_D_DESC : MSA_3R_DESC_BASE<"srl.d", int_mips_srl_d, MSA128D>;
1963
1964 class SRLI_B_DESC : MSA_BIT_B_DESC_BASE<"srli.b", int_mips_srli_b, MSA128B>;
1965 class SRLI_H_DESC : MSA_BIT_H_DESC_BASE<"srli.h", int_mips_srli_h, MSA128H>;
1966 class SRLI_W_DESC : MSA_BIT_W_DESC_BASE<"srli.w", int_mips_srli_w, MSA128W>;
1967 class SRLI_D_DESC : MSA_BIT_D_DESC_BASE<"srli.d", int_mips_srli_d, MSA128D>;
1968
1969 class SRLR_B_DESC : MSA_3R_DESC_BASE<"srlr.b", int_mips_srlr_b, MSA128B>;
1970 class SRLR_H_DESC : MSA_3R_DESC_BASE<"srlr.h", int_mips_srlr_h, MSA128H>;
1971 class SRLR_W_DESC : MSA_3R_DESC_BASE<"srlr.w", int_mips_srlr_w, MSA128W>;
1972 class SRLR_D_DESC : MSA_3R_DESC_BASE<"srlr.d", int_mips_srlr_d, MSA128D>;
1973
1974 class SRLRI_B_DESC : MSA_BIT_B_DESC_BASE<"srlri.b", int_mips_srlri_b, MSA128B>;
1975 class SRLRI_H_DESC : MSA_BIT_H_DESC_BASE<"srlri.h", int_mips_srlri_h, MSA128H>;
1976 class SRLRI_W_DESC : MSA_BIT_W_DESC_BASE<"srlri.w", int_mips_srlri_w, MSA128W>;
1977 class SRLRI_D_DESC : MSA_BIT_D_DESC_BASE<"srlri.d", int_mips_srlri_d, MSA128D>;
1978
1979 class ST_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
1980                    ValueType TyNode, RegisterClass RCWD,
1981                    Operand MemOpnd = mem, ComplexPattern Addr = addrRegImm,
1982                    InstrItinClass itin = NoItinerary> {
1983   dag OutOperandList = (outs);
1984   dag InOperandList = (ins RCWD:$wd, MemOpnd:$addr);
1985   string AsmString = !strconcat(instr_asm, "\t$wd, $addr");
1986   list<dag> Pattern = [(OpNode (TyNode RCWD:$wd), Addr:$addr)];
1987   InstrItinClass Itinerary = itin;
1988 }
1989
1990 class ST_B_DESC : ST_DESC_BASE<"st.b", store, v16i8, MSA128B>;
1991 class ST_H_DESC : ST_DESC_BASE<"st.h", store, v8i16, MSA128H>;
1992 class ST_W_DESC : ST_DESC_BASE<"st.w", store, v4i32, MSA128W>;
1993 class ST_D_DESC : ST_DESC_BASE<"st.d", store, v2i64, MSA128D>;
1994
1995 class STX_DESC_BASE<string instr_asm, SDPatternOperator OpNode,
1996                     ValueType TyNode, RegisterClass RCWD,
1997                     Operand MemOpnd = mem, ComplexPattern Addr = addrRegReg,
1998                     InstrItinClass itin = NoItinerary> {
1999   dag OutOperandList = (outs);
2000   dag InOperandList = (ins RCWD:$wd, MemOpnd:$addr);
2001   string AsmString = !strconcat(instr_asm, "\t$wd, $addr");
2002   list<dag> Pattern = [(OpNode (TyNode RCWD:$wd), Addr:$addr)];
2003   InstrItinClass Itinerary = itin;
2004 }
2005
2006 class STX_B_DESC : STX_DESC_BASE<"stx.b", store, v16i8, MSA128B>;
2007 class STX_H_DESC : STX_DESC_BASE<"stx.h", store, v8i16, MSA128H>;
2008 class STX_W_DESC : STX_DESC_BASE<"stx.w", store, v4i32, MSA128W>;
2009 class STX_D_DESC : STX_DESC_BASE<"stx.d", store, v2i64, MSA128D>;
2010
2011 class SUBS_S_B_DESC : MSA_3R_DESC_BASE<"subs_s.b", int_mips_subs_s_b, MSA128B>;
2012 class SUBS_S_H_DESC : MSA_3R_DESC_BASE<"subs_s.h", int_mips_subs_s_h, MSA128H>;
2013 class SUBS_S_W_DESC : MSA_3R_DESC_BASE<"subs_s.w", int_mips_subs_s_w, MSA128W>;
2014 class SUBS_S_D_DESC : MSA_3R_DESC_BASE<"subs_s.d", int_mips_subs_s_d, MSA128D>;
2015
2016 class SUBS_U_B_DESC : MSA_3R_DESC_BASE<"subs_u.b", int_mips_subs_u_b, MSA128B>;
2017 class SUBS_U_H_DESC : MSA_3R_DESC_BASE<"subs_u.h", int_mips_subs_u_h, MSA128H>;
2018 class SUBS_U_W_DESC : MSA_3R_DESC_BASE<"subs_u.w", int_mips_subs_u_w, MSA128W>;
2019 class SUBS_U_D_DESC : MSA_3R_DESC_BASE<"subs_u.d", int_mips_subs_u_d, MSA128D>;
2020
2021 class SUBSUS_U_B_DESC : MSA_3R_DESC_BASE<"subsus_u.b", int_mips_subsus_u_b,
2022                                          MSA128B>;
2023 class SUBSUS_U_H_DESC : MSA_3R_DESC_BASE<"subsus_u.h", int_mips_subsus_u_h,
2024                                          MSA128H>;
2025 class SUBSUS_U_W_DESC : MSA_3R_DESC_BASE<"subsus_u.w", int_mips_subsus_u_w,
2026                                          MSA128W>;
2027 class SUBSUS_U_D_DESC : MSA_3R_DESC_BASE<"subsus_u.d", int_mips_subsus_u_d,
2028                                          MSA128D>;
2029
2030 class SUBSUU_S_B_DESC : MSA_3R_DESC_BASE<"subsuu_s.b", int_mips_subsuu_s_b,
2031                                          MSA128B>;
2032 class SUBSUU_S_H_DESC : MSA_3R_DESC_BASE<"subsuu_s.h", int_mips_subsuu_s_h,
2033                                          MSA128H>;
2034 class SUBSUU_S_W_DESC : MSA_3R_DESC_BASE<"subsuu_s.w", int_mips_subsuu_s_w,
2035                                          MSA128W>;
2036 class SUBSUU_S_D_DESC : MSA_3R_DESC_BASE<"subsuu_s.d", int_mips_subsuu_s_d,
2037                                          MSA128D>;
2038
2039 class SUBV_B_DESC : MSA_3R_DESC_BASE<"subv.b", int_mips_subv_b, MSA128B>;
2040 class SUBV_H_DESC : MSA_3R_DESC_BASE<"subv.h", int_mips_subv_h, MSA128H>;
2041 class SUBV_W_DESC : MSA_3R_DESC_BASE<"subv.w", int_mips_subv_w, MSA128W>;
2042 class SUBV_D_DESC : MSA_3R_DESC_BASE<"subv.d", int_mips_subv_d, MSA128D>;
2043
2044 class SUBVI_B_DESC : MSA_I5_DESC_BASE<"subvi.b", int_mips_subvi_b,
2045                                       MSA128B, MSA128B>;
2046 class SUBVI_H_DESC : MSA_I5_DESC_BASE<"subvi.h", int_mips_subvi_h,
2047                                       MSA128H, MSA128H>;
2048 class SUBVI_W_DESC : MSA_I5_DESC_BASE<"subvi.w", int_mips_subvi_w,
2049                                       MSA128W, MSA128W>;
2050 class SUBVI_D_DESC : MSA_I5_DESC_BASE<"subvi.d", int_mips_subvi_d,
2051                                       MSA128D, MSA128D>;
2052
2053 class VSHF_B_DESC : MSA_3R_DESC_BASE<"vshf.b", int_mips_vshf_b, MSA128B>;
2054 class VSHF_H_DESC : MSA_3R_DESC_BASE<"vshf.h", int_mips_vshf_h, MSA128H>;
2055 class VSHF_W_DESC : MSA_3R_DESC_BASE<"vshf.w", int_mips_vshf_w, MSA128W>;
2056 class VSHF_D_DESC : MSA_3R_DESC_BASE<"vshf.d", int_mips_vshf_d, MSA128D>;
2057
2058 class XOR_V_DESC : MSA_VEC_DESC_BASE<"xor.v", int_mips_xor_v,
2059                                      MSA128B, MSA128B>;
2060
2061 class XORI_B_DESC : MSA_I8_DESC_BASE<"xori.b", int_mips_xori_b,
2062                                      MSA128B, MSA128B>;
2063 // Instruction defs.
2064 def ADD_A_B : ADD_A_B_ENC, ADD_A_B_DESC, Requires<[HasMSA]>;
2065 def ADD_A_H : ADD_A_H_ENC, ADD_A_H_DESC, Requires<[HasMSA]>;
2066 def ADD_A_W : ADD_A_W_ENC, ADD_A_W_DESC, Requires<[HasMSA]>;
2067 def ADD_A_D : ADD_A_D_ENC, ADD_A_D_DESC, Requires<[HasMSA]>;
2068
2069 def ADDS_A_B : ADDS_A_B_ENC, ADDS_A_B_DESC, Requires<[HasMSA]>;
2070 def ADDS_A_H : ADDS_A_H_ENC, ADDS_A_H_DESC, Requires<[HasMSA]>;
2071 def ADDS_A_W : ADDS_A_W_ENC, ADDS_A_W_DESC, Requires<[HasMSA]>;
2072 def ADDS_A_D : ADDS_A_D_ENC, ADDS_A_D_DESC, Requires<[HasMSA]>;
2073
2074 def ADDS_S_B : ADDS_S_B_ENC, ADDS_S_B_DESC, Requires<[HasMSA]>;
2075 def ADDS_S_H : ADDS_S_H_ENC, ADDS_S_H_DESC, Requires<[HasMSA]>;
2076 def ADDS_S_W : ADDS_S_W_ENC, ADDS_S_W_DESC, Requires<[HasMSA]>;
2077 def ADDS_S_D : ADDS_S_D_ENC, ADDS_S_D_DESC, Requires<[HasMSA]>;
2078
2079 def ADDS_U_B : ADDS_U_B_ENC, ADDS_U_B_DESC, Requires<[HasMSA]>;
2080 def ADDS_U_H : ADDS_U_H_ENC, ADDS_U_H_DESC, Requires<[HasMSA]>;
2081 def ADDS_U_W : ADDS_U_W_ENC, ADDS_U_W_DESC, Requires<[HasMSA]>;
2082 def ADDS_U_D : ADDS_U_D_ENC, ADDS_U_D_DESC, Requires<[HasMSA]>;
2083
2084 def ADDV_B : ADDV_B_ENC, ADDV_B_DESC, Requires<[HasMSA]>;
2085 def ADDV_H : ADDV_H_ENC, ADDV_H_DESC, Requires<[HasMSA]>;
2086 def ADDV_W : ADDV_W_ENC, ADDV_W_DESC, Requires<[HasMSA]>;
2087 def ADDV_D : ADDV_D_ENC, ADDV_D_DESC, Requires<[HasMSA]>;
2088
2089 def ADDVI_B : ADDVI_B_ENC, ADDVI_B_DESC, Requires<[HasMSA]>;
2090 def ADDVI_H : ADDVI_H_ENC, ADDVI_H_DESC, Requires<[HasMSA]>;
2091 def ADDVI_W : ADDVI_W_ENC, ADDVI_W_DESC, Requires<[HasMSA]>;
2092 def ADDVI_D : ADDVI_D_ENC, ADDVI_D_DESC, Requires<[HasMSA]>;
2093
2094 def AND_V : AND_V_ENC, AND_V_DESC, Requires<[HasMSA]>;
2095
2096 def ANDI_B : ANDI_B_ENC, ANDI_B_DESC, Requires<[HasMSA]>;
2097
2098 def ASUB_S_B : ASUB_S_B_ENC, ASUB_S_B_DESC, Requires<[HasMSA]>;
2099 def ASUB_S_H : ASUB_S_H_ENC, ASUB_S_H_DESC, Requires<[HasMSA]>;
2100 def ASUB_S_W : ASUB_S_W_ENC, ASUB_S_W_DESC, Requires<[HasMSA]>;
2101 def ASUB_S_D : ASUB_S_D_ENC, ASUB_S_D_DESC, Requires<[HasMSA]>;
2102
2103 def ASUB_U_B : ASUB_U_B_ENC, ASUB_U_B_DESC, Requires<[HasMSA]>;
2104 def ASUB_U_H : ASUB_U_H_ENC, ASUB_U_H_DESC, Requires<[HasMSA]>;
2105 def ASUB_U_W : ASUB_U_W_ENC, ASUB_U_W_DESC, Requires<[HasMSA]>;
2106 def ASUB_U_D : ASUB_U_D_ENC, ASUB_U_D_DESC, Requires<[HasMSA]>;
2107
2108 def AVE_S_B : AVE_S_B_ENC, AVE_S_B_DESC, Requires<[HasMSA]>;
2109 def AVE_S_H : AVE_S_H_ENC, AVE_S_H_DESC, Requires<[HasMSA]>;
2110 def AVE_S_W : AVE_S_W_ENC, AVE_S_W_DESC, Requires<[HasMSA]>;
2111 def AVE_S_D : AVE_S_D_ENC, AVE_S_D_DESC, Requires<[HasMSA]>;
2112
2113 def AVE_U_B : AVE_U_B_ENC, AVE_U_B_DESC, Requires<[HasMSA]>;
2114 def AVE_U_H : AVE_U_H_ENC, AVE_U_H_DESC, Requires<[HasMSA]>;
2115 def AVE_U_W : AVE_U_W_ENC, AVE_U_W_DESC, Requires<[HasMSA]>;
2116 def AVE_U_D : AVE_U_D_ENC, AVE_U_D_DESC, Requires<[HasMSA]>;
2117
2118 def AVER_S_B : AVER_S_B_ENC, AVER_S_B_DESC, Requires<[HasMSA]>;
2119 def AVER_S_H : AVER_S_H_ENC, AVER_S_H_DESC, Requires<[HasMSA]>;
2120 def AVER_S_W : AVER_S_W_ENC, AVER_S_W_DESC, Requires<[HasMSA]>;
2121 def AVER_S_D : AVER_S_D_ENC, AVER_S_D_DESC, Requires<[HasMSA]>;
2122
2123 def AVER_U_B : AVER_U_B_ENC, AVER_U_B_DESC, Requires<[HasMSA]>;
2124 def AVER_U_H : AVER_U_H_ENC, AVER_U_H_DESC, Requires<[HasMSA]>;
2125 def AVER_U_W : AVER_U_W_ENC, AVER_U_W_DESC, Requires<[HasMSA]>;
2126 def AVER_U_D : AVER_U_D_ENC, AVER_U_D_DESC, Requires<[HasMSA]>;
2127
2128 def BCLR_B : BCLR_B_ENC, BCLR_B_DESC, Requires<[HasMSA]>;
2129 def BCLR_H : BCLR_H_ENC, BCLR_H_DESC, Requires<[HasMSA]>;
2130 def BCLR_W : BCLR_W_ENC, BCLR_W_DESC, Requires<[HasMSA]>;
2131 def BCLR_D : BCLR_D_ENC, BCLR_D_DESC, Requires<[HasMSA]>;
2132
2133 def BCLRI_B : BCLRI_B_ENC, BCLRI_B_DESC, Requires<[HasMSA]>;
2134 def BCLRI_H : BCLRI_H_ENC, BCLRI_H_DESC, Requires<[HasMSA]>;
2135 def BCLRI_W : BCLRI_W_ENC, BCLRI_W_DESC, Requires<[HasMSA]>;
2136 def BCLRI_D : BCLRI_D_ENC, BCLRI_D_DESC, Requires<[HasMSA]>;
2137
2138 def BINSL_B : BINSL_B_ENC, BINSL_B_DESC, Requires<[HasMSA]>;
2139 def BINSL_H : BINSL_H_ENC, BINSL_H_DESC, Requires<[HasMSA]>;
2140 def BINSL_W : BINSL_W_ENC, BINSL_W_DESC, Requires<[HasMSA]>;
2141 def BINSL_D : BINSL_D_ENC, BINSL_D_DESC, Requires<[HasMSA]>;
2142
2143 def BINSLI_B : BINSLI_B_ENC, BINSLI_B_DESC, Requires<[HasMSA]>;
2144 def BINSLI_H : BINSLI_H_ENC, BINSLI_H_DESC, Requires<[HasMSA]>;
2145 def BINSLI_W : BINSLI_W_ENC, BINSLI_W_DESC, Requires<[HasMSA]>;
2146 def BINSLI_D : BINSLI_D_ENC, BINSLI_D_DESC, Requires<[HasMSA]>;
2147
2148 def BINSR_B : BINSR_B_ENC, BINSR_B_DESC, Requires<[HasMSA]>;
2149 def BINSR_H : BINSR_H_ENC, BINSR_H_DESC, Requires<[HasMSA]>;
2150 def BINSR_W : BINSR_W_ENC, BINSR_W_DESC, Requires<[HasMSA]>;
2151 def BINSR_D : BINSR_D_ENC, BINSR_D_DESC, Requires<[HasMSA]>;
2152
2153 def BINSRI_B : BINSRI_B_ENC, BINSRI_B_DESC, Requires<[HasMSA]>;
2154 def BINSRI_H : BINSRI_H_ENC, BINSRI_H_DESC, Requires<[HasMSA]>;
2155 def BINSRI_W : BINSRI_W_ENC, BINSRI_W_DESC, Requires<[HasMSA]>;
2156 def BINSRI_D : BINSRI_D_ENC, BINSRI_D_DESC, Requires<[HasMSA]>;
2157
2158 def BMNZ_V : BMNZ_V_ENC, BMNZ_V_DESC, Requires<[HasMSA]>;
2159
2160 def BMNZI_B : BMNZI_B_ENC, BMNZI_B_DESC, Requires<[HasMSA]>;
2161
2162 def BMZ_V : BMZ_V_ENC, BMZ_V_DESC, Requires<[HasMSA]>;
2163
2164 def BMZI_B : BMZI_B_ENC, BMZI_B_DESC, Requires<[HasMSA]>;
2165
2166 def BNEG_B : BNEG_B_ENC, BNEG_B_DESC, Requires<[HasMSA]>;
2167 def BNEG_H : BNEG_H_ENC, BNEG_H_DESC, Requires<[HasMSA]>;
2168 def BNEG_W : BNEG_W_ENC, BNEG_W_DESC, Requires<[HasMSA]>;
2169 def BNEG_D : BNEG_D_ENC, BNEG_D_DESC, Requires<[HasMSA]>;
2170
2171 def BNEGI_B : BNEGI_B_ENC, BNEGI_B_DESC, Requires<[HasMSA]>;
2172 def BNEGI_H : BNEGI_H_ENC, BNEGI_H_DESC, Requires<[HasMSA]>;
2173 def BNEGI_W : BNEGI_W_ENC, BNEGI_W_DESC, Requires<[HasMSA]>;
2174 def BNEGI_D : BNEGI_D_ENC, BNEGI_D_DESC, Requires<[HasMSA]>;
2175
2176 def BNZ_B : BNZ_B_ENC, BNZ_B_DESC, Requires<[HasMSA]>;
2177 def BNZ_H : BNZ_H_ENC, BNZ_H_DESC, Requires<[HasMSA]>;
2178 def BNZ_W : BNZ_W_ENC, BNZ_W_DESC, Requires<[HasMSA]>;
2179 def BNZ_D : BNZ_D_ENC, BNZ_D_DESC, Requires<[HasMSA]>;
2180
2181 def BNZ_V : BNZ_V_ENC, BNZ_V_DESC, Requires<[HasMSA]>;
2182
2183 def BSEL_V : BSEL_V_ENC, BSEL_V_DESC, Requires<[HasMSA]>;
2184
2185 def BSELI_B : BSELI_B_ENC, BSELI_B_DESC, Requires<[HasMSA]>;
2186
2187 def BSET_B : BSET_B_ENC, BSET_B_DESC, Requires<[HasMSA]>;
2188 def BSET_H : BSET_H_ENC, BSET_H_DESC, Requires<[HasMSA]>;
2189 def BSET_W : BSET_W_ENC, BSET_W_DESC, Requires<[HasMSA]>;
2190 def BSET_D : BSET_D_ENC, BSET_D_DESC, Requires<[HasMSA]>;
2191
2192 def BSETI_B : BSETI_B_ENC, BSETI_B_DESC, Requires<[HasMSA]>;
2193 def BSETI_H : BSETI_H_ENC, BSETI_H_DESC, Requires<[HasMSA]>;
2194 def BSETI_W : BSETI_W_ENC, BSETI_W_DESC, Requires<[HasMSA]>;
2195 def BSETI_D : BSETI_D_ENC, BSETI_D_DESC, Requires<[HasMSA]>;
2196
2197 def BZ_B : BZ_B_ENC, BZ_B_DESC, Requires<[HasMSA]>;
2198 def BZ_H : BZ_H_ENC, BZ_H_DESC, Requires<[HasMSA]>;
2199 def BZ_W : BZ_W_ENC, BZ_W_DESC, Requires<[HasMSA]>;
2200 def BZ_D : BZ_D_ENC, BZ_D_DESC, Requires<[HasMSA]>;
2201
2202 def BZ_V : BZ_V_ENC, BZ_V_DESC, Requires<[HasMSA]>;
2203
2204 def CEQ_B : CEQ_B_ENC, CEQ_B_DESC, Requires<[HasMSA]>;
2205 def CEQ_H : CEQ_H_ENC, CEQ_H_DESC, Requires<[HasMSA]>;
2206 def CEQ_W : CEQ_W_ENC, CEQ_W_DESC, Requires<[HasMSA]>;
2207 def CEQ_D : CEQ_D_ENC, CEQ_D_DESC, Requires<[HasMSA]>;
2208
2209 def CEQI_B : CEQI_B_ENC, CEQI_B_DESC, Requires<[HasMSA]>;
2210 def CEQI_H : CEQI_H_ENC, CEQI_H_DESC, Requires<[HasMSA]>;
2211 def CEQI_W : CEQI_W_ENC, CEQI_W_DESC, Requires<[HasMSA]>;
2212 def CEQI_D : CEQI_D_ENC, CEQI_D_DESC, Requires<[HasMSA]>;
2213
2214 def CFCMSA : CFCMSA_ENC, CFCMSA_DESC, Requires<[HasMSA]>;
2215
2216 def CLE_S_B : CLE_S_B_ENC, CLE_S_B_DESC, Requires<[HasMSA]>;
2217 def CLE_S_H : CLE_S_H_ENC, CLE_S_H_DESC, Requires<[HasMSA]>;
2218 def CLE_S_W : CLE_S_W_ENC, CLE_S_W_DESC, Requires<[HasMSA]>;
2219 def CLE_S_D : CLE_S_D_ENC, CLE_S_D_DESC, Requires<[HasMSA]>;
2220
2221 def CLE_U_B : CLE_U_B_ENC, CLE_U_B_DESC, Requires<[HasMSA]>;
2222 def CLE_U_H : CLE_U_H_ENC, CLE_U_H_DESC, Requires<[HasMSA]>;
2223 def CLE_U_W : CLE_U_W_ENC, CLE_U_W_DESC, Requires<[HasMSA]>;
2224 def CLE_U_D : CLE_U_D_ENC, CLE_U_D_DESC, Requires<[HasMSA]>;
2225
2226 def CLEI_S_B : CLEI_S_B_ENC, CLEI_S_B_DESC, Requires<[HasMSA]>;
2227 def CLEI_S_H : CLEI_S_H_ENC, CLEI_S_H_DESC, Requires<[HasMSA]>;
2228 def CLEI_S_W : CLEI_S_W_ENC, CLEI_S_W_DESC, Requires<[HasMSA]>;
2229 def CLEI_S_D : CLEI_S_D_ENC, CLEI_S_D_DESC, Requires<[HasMSA]>;
2230
2231 def CLEI_U_B : CLEI_U_B_ENC, CLEI_U_B_DESC, Requires<[HasMSA]>;
2232 def CLEI_U_H : CLEI_U_H_ENC, CLEI_U_H_DESC, Requires<[HasMSA]>;
2233 def CLEI_U_W : CLEI_U_W_ENC, CLEI_U_W_DESC, Requires<[HasMSA]>;
2234 def CLEI_U_D : CLEI_U_D_ENC, CLEI_U_D_DESC, Requires<[HasMSA]>;
2235
2236 def CLT_S_B : CLT_S_B_ENC, CLT_S_B_DESC, Requires<[HasMSA]>;
2237 def CLT_S_H : CLT_S_H_ENC, CLT_S_H_DESC, Requires<[HasMSA]>;
2238 def CLT_S_W : CLT_S_W_ENC, CLT_S_W_DESC, Requires<[HasMSA]>;
2239 def CLT_S_D : CLT_S_D_ENC, CLT_S_D_DESC, Requires<[HasMSA]>;
2240
2241 def CLT_U_B : CLT_U_B_ENC, CLT_U_B_DESC, Requires<[HasMSA]>;
2242 def CLT_U_H : CLT_U_H_ENC, CLT_U_H_DESC, Requires<[HasMSA]>;
2243 def CLT_U_W : CLT_U_W_ENC, CLT_U_W_DESC, Requires<[HasMSA]>;
2244 def CLT_U_D : CLT_U_D_ENC, CLT_U_D_DESC, Requires<[HasMSA]>;
2245
2246 def CLTI_S_B : CLTI_S_B_ENC, CLTI_S_B_DESC, Requires<[HasMSA]>;
2247 def CLTI_S_H : CLTI_S_H_ENC, CLTI_S_H_DESC, Requires<[HasMSA]>;
2248 def CLTI_S_W : CLTI_S_W_ENC, CLTI_S_W_DESC, Requires<[HasMSA]>;
2249 def CLTI_S_D : CLTI_S_D_ENC, CLTI_S_D_DESC, Requires<[HasMSA]>;
2250
2251 def CLTI_U_B : CLTI_U_B_ENC, CLTI_U_B_DESC, Requires<[HasMSA]>;
2252 def CLTI_U_H : CLTI_U_H_ENC, CLTI_U_H_DESC, Requires<[HasMSA]>;
2253 def CLTI_U_W : CLTI_U_W_ENC, CLTI_U_W_DESC, Requires<[HasMSA]>;
2254 def CLTI_U_D : CLTI_U_D_ENC, CLTI_U_D_DESC, Requires<[HasMSA]>;
2255
2256 def COPY_S_B : COPY_S_B_ENC, COPY_S_B_DESC, Requires<[HasMSA]>;
2257 def COPY_S_H : COPY_S_H_ENC, COPY_S_H_DESC, Requires<[HasMSA]>;
2258 def COPY_S_W : COPY_S_W_ENC, COPY_S_W_DESC, Requires<[HasMSA]>;
2259
2260 def COPY_U_B : COPY_U_B_ENC, COPY_U_B_DESC, Requires<[HasMSA]>;
2261 def COPY_U_H : COPY_U_H_ENC, COPY_U_H_DESC, Requires<[HasMSA]>;
2262 def COPY_U_W : COPY_U_W_ENC, COPY_U_W_DESC, Requires<[HasMSA]>;
2263
2264 def CTCMSA : CTCMSA_ENC, CTCMSA_DESC, Requires<[HasMSA]>;
2265
2266 def DIV_S_B : DIV_S_B_ENC, DIV_S_B_DESC, Requires<[HasMSA]>;
2267 def DIV_S_H : DIV_S_H_ENC, DIV_S_H_DESC, Requires<[HasMSA]>;
2268 def DIV_S_W : DIV_S_W_ENC, DIV_S_W_DESC, Requires<[HasMSA]>;
2269 def DIV_S_D : DIV_S_D_ENC, DIV_S_D_DESC, Requires<[HasMSA]>;
2270
2271 def DIV_U_B : DIV_U_B_ENC, DIV_U_B_DESC, Requires<[HasMSA]>;
2272 def DIV_U_H : DIV_U_H_ENC, DIV_U_H_DESC, Requires<[HasMSA]>;
2273 def DIV_U_W : DIV_U_W_ENC, DIV_U_W_DESC, Requires<[HasMSA]>;
2274 def DIV_U_D : DIV_U_D_ENC, DIV_U_D_DESC, Requires<[HasMSA]>;
2275
2276 def DOTP_S_B : DOTP_S_B_ENC, DOTP_S_B_DESC, Requires<[HasMSA]>;
2277 def DOTP_S_H : DOTP_S_H_ENC, DOTP_S_H_DESC, Requires<[HasMSA]>;
2278 def DOTP_S_W : DOTP_S_W_ENC, DOTP_S_W_DESC, Requires<[HasMSA]>;
2279 def DOTP_S_D : DOTP_S_D_ENC, DOTP_S_D_DESC, Requires<[HasMSA]>;
2280
2281 def DOTP_U_B : DOTP_U_B_ENC, DOTP_U_B_DESC, Requires<[HasMSA]>;
2282 def DOTP_U_H : DOTP_U_H_ENC, DOTP_U_H_DESC, Requires<[HasMSA]>;
2283 def DOTP_U_W : DOTP_U_W_ENC, DOTP_U_W_DESC, Requires<[HasMSA]>;
2284 def DOTP_U_D : DOTP_U_D_ENC, DOTP_U_D_DESC, Requires<[HasMSA]>;
2285
2286 def DPADD_S_H : DPADD_S_H_ENC, DPADD_S_H_DESC, Requires<[HasMSA]>;
2287 def DPADD_S_W : DPADD_S_W_ENC, DPADD_S_W_DESC, Requires<[HasMSA]>;
2288 def DPADD_S_D : DPADD_S_D_ENC, DPADD_S_D_DESC, Requires<[HasMSA]>;
2289
2290 def DPADD_U_H : DPADD_U_H_ENC, DPADD_U_H_DESC, Requires<[HasMSA]>;
2291 def DPADD_U_W : DPADD_U_W_ENC, DPADD_U_W_DESC, Requires<[HasMSA]>;
2292 def DPADD_U_D : DPADD_U_D_ENC, DPADD_U_D_DESC, Requires<[HasMSA]>;
2293
2294 def DPSUB_S_H : DPSUB_S_H_ENC, DPSUB_S_H_DESC, Requires<[HasMSA]>;
2295 def DPSUB_S_W : DPSUB_S_W_ENC, DPSUB_S_W_DESC, Requires<[HasMSA]>;
2296 def DPSUB_S_D : DPSUB_S_D_ENC, DPSUB_S_D_DESC, Requires<[HasMSA]>;
2297
2298 def DPSUB_U_H : DPSUB_U_H_ENC, DPSUB_U_H_DESC, Requires<[HasMSA]>;
2299 def DPSUB_U_W : DPSUB_U_W_ENC, DPSUB_U_W_DESC, Requires<[HasMSA]>;
2300 def DPSUB_U_D : DPSUB_U_D_ENC, DPSUB_U_D_DESC, Requires<[HasMSA]>;
2301
2302 def FADD_W : FADD_W_ENC, FADD_W_DESC, Requires<[HasMSA]>;
2303 def FADD_D : FADD_D_ENC, FADD_D_DESC, Requires<[HasMSA]>;
2304
2305 def FCAF_W : FCAF_W_ENC, FCAF_W_DESC, Requires<[HasMSA]>;
2306 def FCAF_D : FCAF_D_ENC, FCAF_D_DESC, Requires<[HasMSA]>;
2307
2308 def FCEQ_W : FCEQ_W_ENC, FCEQ_W_DESC, Requires<[HasMSA]>;
2309 def FCEQ_D : FCEQ_D_ENC, FCEQ_D_DESC, Requires<[HasMSA]>;
2310
2311 def FCLE_W : FCLE_W_ENC, FCLE_W_DESC, Requires<[HasMSA]>;
2312 def FCLE_D : FCLE_D_ENC, FCLE_D_DESC, Requires<[HasMSA]>;
2313
2314 def FCLT_W : FCLT_W_ENC, FCLT_W_DESC, Requires<[HasMSA]>;
2315 def FCLT_D : FCLT_D_ENC, FCLT_D_DESC, Requires<[HasMSA]>;
2316
2317 def FCLASS_W : FCLASS_W_ENC, FCLASS_W_DESC, Requires<[HasMSA]>;
2318 def FCLASS_D : FCLASS_D_ENC, FCLASS_D_DESC, Requires<[HasMSA]>;
2319
2320 def FCNE_W : FCNE_W_ENC, FCNE_W_DESC, Requires<[HasMSA]>;
2321 def FCNE_D : FCNE_D_ENC, FCNE_D_DESC, Requires<[HasMSA]>;
2322
2323 def FCOR_W : FCOR_W_ENC, FCOR_W_DESC, Requires<[HasMSA]>;
2324 def FCOR_D : FCOR_D_ENC, FCOR_D_DESC, Requires<[HasMSA]>;
2325
2326 def FCUEQ_W : FCUEQ_W_ENC, FCUEQ_W_DESC, Requires<[HasMSA]>;
2327 def FCUEQ_D : FCUEQ_D_ENC, FCUEQ_D_DESC, Requires<[HasMSA]>;
2328
2329 def FCULE_W : FCULE_W_ENC, FCULE_W_DESC, Requires<[HasMSA]>;
2330 def FCULE_D : FCULE_D_ENC, FCULE_D_DESC, Requires<[HasMSA]>;
2331
2332 def FCULT_W : FCULT_W_ENC, FCULT_W_DESC, Requires<[HasMSA]>;
2333 def FCULT_D : FCULT_D_ENC, FCULT_D_DESC, Requires<[HasMSA]>;
2334
2335 def FCUN_W : FCUN_W_ENC, FCUN_W_DESC, Requires<[HasMSA]>;
2336 def FCUN_D : FCUN_D_ENC, FCUN_D_DESC, Requires<[HasMSA]>;
2337
2338 def FCUNE_W : FCUNE_W_ENC, FCUNE_W_DESC, Requires<[HasMSA]>;
2339 def FCUNE_D : FCUNE_D_ENC, FCUNE_D_DESC, Requires<[HasMSA]>;
2340
2341 def FDIV_W : FDIV_W_ENC, FDIV_W_DESC, Requires<[HasMSA]>;
2342 def FDIV_D : FDIV_D_ENC, FDIV_D_DESC, Requires<[HasMSA]>;
2343
2344 def FEXDO_H : FEXDO_H_ENC, FEXDO_H_DESC, Requires<[HasMSA]>;
2345 def FEXDO_W : FEXDO_W_ENC, FEXDO_W_DESC, Requires<[HasMSA]>;
2346
2347 def FEXP2_W : FEXP2_W_ENC, FEXP2_W_DESC, Requires<[HasMSA]>;
2348 def FEXP2_D : FEXP2_D_ENC, FEXP2_D_DESC, Requires<[HasMSA]>;
2349
2350 def FEXUPL_W : FEXUPL_W_ENC, FEXUPL_W_DESC, Requires<[HasMSA]>;
2351 def FEXUPL_D : FEXUPL_D_ENC, FEXUPL_D_DESC, Requires<[HasMSA]>;
2352
2353 def FEXUPR_W : FEXUPR_W_ENC, FEXUPR_W_DESC, Requires<[HasMSA]>;
2354 def FEXUPR_D : FEXUPR_D_ENC, FEXUPR_D_DESC, Requires<[HasMSA]>;
2355
2356 def FFINT_S_W : FFINT_S_W_ENC, FFINT_S_W_DESC, Requires<[HasMSA]>;
2357 def FFINT_S_D : FFINT_S_D_ENC, FFINT_S_D_DESC, Requires<[HasMSA]>;
2358
2359 def FFINT_U_W : FFINT_U_W_ENC, FFINT_U_W_DESC, Requires<[HasMSA]>;
2360 def FFINT_U_D : FFINT_U_D_ENC, FFINT_U_D_DESC, Requires<[HasMSA]>;
2361
2362 def FFQL_W : FFQL_W_ENC, FFQL_W_DESC, Requires<[HasMSA]>;
2363 def FFQL_D : FFQL_D_ENC, FFQL_D_DESC, Requires<[HasMSA]>;
2364
2365 def FFQR_W : FFQR_W_ENC, FFQR_W_DESC, Requires<[HasMSA]>;
2366 def FFQR_D : FFQR_D_ENC, FFQR_D_DESC, Requires<[HasMSA]>;
2367
2368 def FILL_B : FILL_B_ENC, FILL_B_DESC, Requires<[HasMSA]>;
2369 def FILL_H : FILL_H_ENC, FILL_H_DESC, Requires<[HasMSA]>;
2370 def FILL_W : FILL_W_ENC, FILL_W_DESC, Requires<[HasMSA]>;
2371
2372 def FLOG2_W : FLOG2_W_ENC, FLOG2_W_DESC, Requires<[HasMSA]>;
2373 def FLOG2_D : FLOG2_D_ENC, FLOG2_D_DESC, Requires<[HasMSA]>;
2374
2375 def FMADD_W : FMADD_W_ENC, FMADD_W_DESC, Requires<[HasMSA]>;
2376 def FMADD_D : FMADD_D_ENC, FMADD_D_DESC, Requires<[HasMSA]>;
2377
2378 def FMAX_W : FMAX_W_ENC, FMAX_W_DESC, Requires<[HasMSA]>;
2379 def FMAX_D : FMAX_D_ENC, FMAX_D_DESC, Requires<[HasMSA]>;
2380
2381 def FMAX_A_W : FMAX_A_W_ENC, FMAX_A_W_DESC, Requires<[HasMSA]>;
2382 def FMAX_A_D : FMAX_A_D_ENC, FMAX_A_D_DESC, Requires<[HasMSA]>;
2383
2384 def FMIN_W : FMIN_W_ENC, FMIN_W_DESC, Requires<[HasMSA]>;
2385 def FMIN_D : FMIN_D_ENC, FMIN_D_DESC, Requires<[HasMSA]>;
2386
2387 def FMIN_A_W : FMIN_A_W_ENC, FMIN_A_W_DESC, Requires<[HasMSA]>;
2388 def FMIN_A_D : FMIN_A_D_ENC, FMIN_A_D_DESC, Requires<[HasMSA]>;
2389
2390 def FMSUB_W : FMSUB_W_ENC, FMSUB_W_DESC, Requires<[HasMSA]>;
2391 def FMSUB_D : FMSUB_D_ENC, FMSUB_D_DESC, Requires<[HasMSA]>;
2392
2393 def FMUL_W : FMUL_W_ENC, FMUL_W_DESC, Requires<[HasMSA]>;
2394 def FMUL_D : FMUL_D_ENC, FMUL_D_DESC, Requires<[HasMSA]>;
2395
2396 def FRINT_W : FRINT_W_ENC, FRINT_W_DESC, Requires<[HasMSA]>;
2397 def FRINT_D : FRINT_D_ENC, FRINT_D_DESC, Requires<[HasMSA]>;
2398
2399 def FRCP_W : FRCP_W_ENC, FRCP_W_DESC, Requires<[HasMSA]>;
2400 def FRCP_D : FRCP_D_ENC, FRCP_D_DESC, Requires<[HasMSA]>;
2401
2402 def FRSQRT_W : FRSQRT_W_ENC, FRSQRT_W_DESC, Requires<[HasMSA]>;
2403 def FRSQRT_D : FRSQRT_D_ENC, FRSQRT_D_DESC, Requires<[HasMSA]>;
2404
2405 def FSAF_W : FSAF_W_ENC, FSAF_W_DESC, Requires<[HasMSA]>;
2406 def FSAF_D : FSAF_D_ENC, FSAF_D_DESC, Requires<[HasMSA]>;
2407
2408 def FSEQ_W : FSEQ_W_ENC, FSEQ_W_DESC, Requires<[HasMSA]>;
2409 def FSEQ_D : FSEQ_D_ENC, FSEQ_D_DESC, Requires<[HasMSA]>;
2410
2411 def FSLE_W : FSLE_W_ENC, FSLE_W_DESC, Requires<[HasMSA]>;
2412 def FSLE_D : FSLE_D_ENC, FSLE_D_DESC, Requires<[HasMSA]>;
2413
2414 def FSLT_W : FSLT_W_ENC, FSLT_W_DESC, Requires<[HasMSA]>;
2415 def FSLT_D : FSLT_D_ENC, FSLT_D_DESC, Requires<[HasMSA]>;
2416
2417 def FSNE_W : FSNE_W_ENC, FSNE_W_DESC, Requires<[HasMSA]>;
2418 def FSNE_D : FSNE_D_ENC, FSNE_D_DESC, Requires<[HasMSA]>;
2419
2420 def FSOR_W : FSOR_W_ENC, FSOR_W_DESC, Requires<[HasMSA]>;
2421 def FSOR_D : FSOR_D_ENC, FSOR_D_DESC, Requires<[HasMSA]>;
2422
2423 def FSQRT_W : FSQRT_W_ENC, FSQRT_W_DESC, Requires<[HasMSA]>;
2424 def FSQRT_D : FSQRT_D_ENC, FSQRT_D_DESC, Requires<[HasMSA]>;
2425
2426 def FSUB_W : FSUB_W_ENC, FSUB_W_DESC, Requires<[HasMSA]>;
2427 def FSUB_D : FSUB_D_ENC, FSUB_D_DESC, Requires<[HasMSA]>;
2428
2429 def FSUEQ_W : FSUEQ_W_ENC, FSUEQ_W_DESC, Requires<[HasMSA]>;
2430 def FSUEQ_D : FSUEQ_D_ENC, FSUEQ_D_DESC, Requires<[HasMSA]>;
2431
2432 def FSULE_W : FSULE_W_ENC, FSULE_W_DESC, Requires<[HasMSA]>;
2433 def FSULE_D : FSULE_D_ENC, FSULE_D_DESC, Requires<[HasMSA]>;
2434
2435 def FSULT_W : FSULT_W_ENC, FSULT_W_DESC, Requires<[HasMSA]>;
2436 def FSULT_D : FSULT_D_ENC, FSULT_D_DESC, Requires<[HasMSA]>;
2437
2438 def FSUN_W : FSUN_W_ENC, FSUN_W_DESC, Requires<[HasMSA]>;
2439 def FSUN_D : FSUN_D_ENC, FSUN_D_DESC, Requires<[HasMSA]>;
2440
2441 def FSUNE_W : FSUNE_W_ENC, FSUNE_W_DESC, Requires<[HasMSA]>;
2442 def FSUNE_D : FSUNE_D_ENC, FSUNE_D_DESC, Requires<[HasMSA]>;
2443
2444 def FTRUNC_S_W : FTRUNC_S_W_ENC, FTRUNC_S_W_DESC, Requires<[HasMSA]>;
2445 def FTRUNC_S_D : FTRUNC_S_D_ENC, FTRUNC_S_D_DESC, Requires<[HasMSA]>;
2446
2447 def FTRUNC_U_W : FTRUNC_U_W_ENC, FTRUNC_U_W_DESC, Requires<[HasMSA]>;
2448 def FTRUNC_U_D : FTRUNC_U_D_ENC, FTRUNC_U_D_DESC, Requires<[HasMSA]>;
2449
2450 def FTINT_S_W : FTINT_S_W_ENC, FTINT_S_W_DESC, Requires<[HasMSA]>;
2451 def FTINT_S_D : FTINT_S_D_ENC, FTINT_S_D_DESC, Requires<[HasMSA]>;
2452
2453 def FTINT_U_W : FTINT_U_W_ENC, FTINT_U_W_DESC, Requires<[HasMSA]>;
2454 def FTINT_U_D : FTINT_U_D_ENC, FTINT_U_D_DESC, Requires<[HasMSA]>;
2455
2456 def FTQ_H : FTQ_H_ENC, FTQ_H_DESC, Requires<[HasMSA]>;
2457 def FTQ_W : FTQ_W_ENC, FTQ_W_DESC, Requires<[HasMSA]>;
2458
2459 def HADD_S_H : HADD_S_H_ENC, HADD_S_H_DESC, Requires<[HasMSA]>;
2460 def HADD_S_W : HADD_S_W_ENC, HADD_S_W_DESC, Requires<[HasMSA]>;
2461 def HADD_S_D : HADD_S_D_ENC, HADD_S_D_DESC, Requires<[HasMSA]>;
2462
2463 def HADD_U_H : HADD_U_H_ENC, HADD_U_H_DESC, Requires<[HasMSA]>;
2464 def HADD_U_W : HADD_U_W_ENC, HADD_U_W_DESC, Requires<[HasMSA]>;
2465 def HADD_U_D : HADD_U_D_ENC, HADD_U_D_DESC, Requires<[HasMSA]>;
2466
2467 def HSUB_S_H : HSUB_S_H_ENC, HSUB_S_H_DESC, Requires<[HasMSA]>;
2468 def HSUB_S_W : HSUB_S_W_ENC, HSUB_S_W_DESC, Requires<[HasMSA]>;
2469 def HSUB_S_D : HSUB_S_D_ENC, HSUB_S_D_DESC, Requires<[HasMSA]>;
2470
2471 def HSUB_U_H : HSUB_U_H_ENC, HSUB_U_H_DESC, Requires<[HasMSA]>;
2472 def HSUB_U_W : HSUB_U_W_ENC, HSUB_U_W_DESC, Requires<[HasMSA]>;
2473 def HSUB_U_D : HSUB_U_D_ENC, HSUB_U_D_DESC, Requires<[HasMSA]>;
2474
2475 def ILVEV_B : ILVEV_B_ENC, ILVEV_B_DESC, Requires<[HasMSA]>;
2476 def ILVEV_H : ILVEV_H_ENC, ILVEV_H_DESC, Requires<[HasMSA]>;
2477 def ILVEV_W : ILVEV_W_ENC, ILVEV_W_DESC, Requires<[HasMSA]>;
2478 def ILVEV_D : ILVEV_D_ENC, ILVEV_D_DESC, Requires<[HasMSA]>;
2479
2480 def ILVL_B : ILVL_B_ENC, ILVL_B_DESC, Requires<[HasMSA]>;
2481 def ILVL_H : ILVL_H_ENC, ILVL_H_DESC, Requires<[HasMSA]>;
2482 def ILVL_W : ILVL_W_ENC, ILVL_W_DESC, Requires<[HasMSA]>;
2483 def ILVL_D : ILVL_D_ENC, ILVL_D_DESC, Requires<[HasMSA]>;
2484
2485 def ILVOD_B : ILVOD_B_ENC, ILVOD_B_DESC, Requires<[HasMSA]>;
2486 def ILVOD_H : ILVOD_H_ENC, ILVOD_H_DESC, Requires<[HasMSA]>;
2487 def ILVOD_W : ILVOD_W_ENC, ILVOD_W_DESC, Requires<[HasMSA]>;
2488 def ILVOD_D : ILVOD_D_ENC, ILVOD_D_DESC, Requires<[HasMSA]>;
2489
2490 def ILVR_B : ILVR_B_ENC, ILVR_B_DESC, Requires<[HasMSA]>;
2491 def ILVR_H : ILVR_H_ENC, ILVR_H_DESC, Requires<[HasMSA]>;
2492 def ILVR_W : ILVR_W_ENC, ILVR_W_DESC, Requires<[HasMSA]>;
2493 def ILVR_D : ILVR_D_ENC, ILVR_D_DESC, Requires<[HasMSA]>;
2494
2495 def INSERT_B : INSERT_B_ENC, INSERT_B_DESC, Requires<[HasMSA]>;
2496 def INSERT_H : INSERT_H_ENC, INSERT_H_DESC, Requires<[HasMSA]>;
2497 def INSERT_W : INSERT_W_ENC, INSERT_W_DESC, Requires<[HasMSA]>;
2498
2499 def INSVE_B : INSVE_B_ENC, INSVE_B_DESC, Requires<[HasMSA]>;
2500 def INSVE_H : INSVE_H_ENC, INSVE_H_DESC, Requires<[HasMSA]>;
2501 def INSVE_W : INSVE_W_ENC, INSVE_W_DESC, Requires<[HasMSA]>;
2502 def INSVE_D : INSVE_D_ENC, INSVE_D_DESC, Requires<[HasMSA]>;
2503
2504 def LD_B: LD_B_ENC, LD_B_DESC, Requires<[HasMSA]>;
2505 def LD_H: LD_H_ENC, LD_H_DESC, Requires<[HasMSA]>;
2506 def LD_W: LD_W_ENC, LD_W_DESC, Requires<[HasMSA]>;
2507 def LD_D: LD_D_ENC, LD_D_DESC, Requires<[HasMSA]>;
2508
2509 def LDI_B : LDI_B_ENC, LDI_B_DESC, Requires<[HasMSA]>;
2510 def LDI_H : LDI_H_ENC, LDI_H_DESC, Requires<[HasMSA]>;
2511 def LDI_W : LDI_W_ENC, LDI_W_DESC, Requires<[HasMSA]>;
2512
2513 def LDX_B: LDX_B_ENC, LDX_B_DESC, Requires<[HasMSA]>;
2514 def LDX_H: LDX_H_ENC, LDX_H_DESC, Requires<[HasMSA]>;
2515 def LDX_W: LDX_W_ENC, LDX_W_DESC, Requires<[HasMSA]>;
2516 def LDX_D: LDX_D_ENC, LDX_D_DESC, Requires<[HasMSA]>;
2517
2518 def MADD_Q_H : MADD_Q_H_ENC, MADD_Q_H_DESC, Requires<[HasMSA]>;
2519 def MADD_Q_W : MADD_Q_W_ENC, MADD_Q_W_DESC, Requires<[HasMSA]>;
2520
2521 def MADDR_Q_H : MADDR_Q_H_ENC, MADDR_Q_H_DESC, Requires<[HasMSA]>;
2522 def MADDR_Q_W : MADDR_Q_W_ENC, MADDR_Q_W_DESC, Requires<[HasMSA]>;
2523
2524 def MADDV_B : MADDV_B_ENC, MADDV_B_DESC, Requires<[HasMSA]>;
2525 def MADDV_H : MADDV_H_ENC, MADDV_H_DESC, Requires<[HasMSA]>;
2526 def MADDV_W : MADDV_W_ENC, MADDV_W_DESC, Requires<[HasMSA]>;
2527 def MADDV_D : MADDV_D_ENC, MADDV_D_DESC, Requires<[HasMSA]>;
2528
2529 def MAX_A_B : MAX_A_B_ENC, MAX_A_B_DESC, Requires<[HasMSA]>;
2530 def MAX_A_H : MAX_A_H_ENC, MAX_A_H_DESC, Requires<[HasMSA]>;
2531 def MAX_A_W : MAX_A_W_ENC, MAX_A_W_DESC, Requires<[HasMSA]>;
2532 def MAX_A_D : MAX_A_D_ENC, MAX_A_D_DESC, Requires<[HasMSA]>;
2533
2534 def MAX_S_B : MAX_S_B_ENC, MAX_S_B_DESC, Requires<[HasMSA]>;
2535 def MAX_S_H : MAX_S_H_ENC, MAX_S_H_DESC, Requires<[HasMSA]>;
2536 def MAX_S_W : MAX_S_W_ENC, MAX_S_W_DESC, Requires<[HasMSA]>;
2537 def MAX_S_D : MAX_S_D_ENC, MAX_S_D_DESC, Requires<[HasMSA]>;
2538
2539 def MAX_U_B : MAX_U_B_ENC, MAX_U_B_DESC, Requires<[HasMSA]>;
2540 def MAX_U_H : MAX_U_H_ENC, MAX_U_H_DESC, Requires<[HasMSA]>;
2541 def MAX_U_W : MAX_U_W_ENC, MAX_U_W_DESC, Requires<[HasMSA]>;
2542 def MAX_U_D : MAX_U_D_ENC, MAX_U_D_DESC, Requires<[HasMSA]>;
2543
2544 def MAXI_S_B : MAXI_S_B_ENC, MAXI_S_B_DESC, Requires<[HasMSA]>;
2545 def MAXI_S_H : MAXI_S_H_ENC, MAXI_S_H_DESC, Requires<[HasMSA]>;
2546 def MAXI_S_W : MAXI_S_W_ENC, MAXI_S_W_DESC, Requires<[HasMSA]>;
2547 def MAXI_S_D : MAXI_S_D_ENC, MAXI_S_D_DESC, Requires<[HasMSA]>;
2548
2549 def MAXI_U_B : MAXI_U_B_ENC, MAXI_U_B_DESC, Requires<[HasMSA]>;
2550 def MAXI_U_H : MAXI_U_H_ENC, MAXI_U_H_DESC, Requires<[HasMSA]>;
2551 def MAXI_U_W : MAXI_U_W_ENC, MAXI_U_W_DESC, Requires<[HasMSA]>;
2552 def MAXI_U_D : MAXI_U_D_ENC, MAXI_U_D_DESC, Requires<[HasMSA]>;
2553
2554 def MIN_A_B : MIN_A_B_ENC, MIN_A_B_DESC, Requires<[HasMSA]>;
2555 def MIN_A_H : MIN_A_H_ENC, MIN_A_H_DESC, Requires<[HasMSA]>;
2556 def MIN_A_W : MIN_A_W_ENC, MIN_A_W_DESC, Requires<[HasMSA]>;
2557 def MIN_A_D : MIN_A_D_ENC, MIN_A_D_DESC, Requires<[HasMSA]>;
2558
2559 def MIN_S_B : MIN_S_B_ENC, MIN_S_B_DESC, Requires<[HasMSA]>;
2560 def MIN_S_H : MIN_S_H_ENC, MIN_S_H_DESC, Requires<[HasMSA]>;
2561 def MIN_S_W : MIN_S_W_ENC, MIN_S_W_DESC, Requires<[HasMSA]>;
2562 def MIN_S_D : MIN_S_D_ENC, MIN_S_D_DESC, Requires<[HasMSA]>;
2563
2564 def MIN_U_B : MIN_U_B_ENC, MIN_U_B_DESC, Requires<[HasMSA]>;
2565 def MIN_U_H : MIN_U_H_ENC, MIN_U_H_DESC, Requires<[HasMSA]>;
2566 def MIN_U_W : MIN_U_W_ENC, MIN_U_W_DESC, Requires<[HasMSA]>;
2567 def MIN_U_D : MIN_U_D_ENC, MIN_U_D_DESC, Requires<[HasMSA]>;
2568
2569 def MINI_S_B : MINI_S_B_ENC, MINI_S_B_DESC, Requires<[HasMSA]>;
2570 def MINI_S_H : MINI_S_H_ENC, MINI_S_H_DESC, Requires<[HasMSA]>;
2571 def MINI_S_W : MINI_S_W_ENC, MINI_S_W_DESC, Requires<[HasMSA]>;
2572 def MINI_S_D : MINI_S_D_ENC, MINI_S_D_DESC, Requires<[HasMSA]>;
2573
2574 def MINI_U_B : MINI_U_B_ENC, MINI_U_B_DESC, Requires<[HasMSA]>;
2575 def MINI_U_H : MINI_U_H_ENC, MINI_U_H_DESC, Requires<[HasMSA]>;
2576 def MINI_U_W : MINI_U_W_ENC, MINI_U_W_DESC, Requires<[HasMSA]>;
2577 def MINI_U_D : MINI_U_D_ENC, MINI_U_D_DESC, Requires<[HasMSA]>;
2578
2579 def MOD_S_B : MOD_S_B_ENC, MOD_S_B_DESC, Requires<[HasMSA]>;
2580 def MOD_S_H : MOD_S_H_ENC, MOD_S_H_DESC, Requires<[HasMSA]>;
2581 def MOD_S_W : MOD_S_W_ENC, MOD_S_W_DESC, Requires<[HasMSA]>;
2582 def MOD_S_D : MOD_S_D_ENC, MOD_S_D_DESC, Requires<[HasMSA]>;
2583
2584 def MOD_U_B : MOD_U_B_ENC, MOD_U_B_DESC, Requires<[HasMSA]>;
2585 def MOD_U_H : MOD_U_H_ENC, MOD_U_H_DESC, Requires<[HasMSA]>;
2586 def MOD_U_W : MOD_U_W_ENC, MOD_U_W_DESC, Requires<[HasMSA]>;
2587 def MOD_U_D : MOD_U_D_ENC, MOD_U_D_DESC, Requires<[HasMSA]>;
2588
2589 def MOVE_V : MOVE_V_ENC, MOVE_V_DESC, Requires<[HasMSA]>;
2590
2591 def MSUB_Q_H : MSUB_Q_H_ENC, MSUB_Q_H_DESC, Requires<[HasMSA]>;
2592 def MSUB_Q_W : MSUB_Q_W_ENC, MSUB_Q_W_DESC, Requires<[HasMSA]>;
2593
2594 def MSUBR_Q_H : MSUBR_Q_H_ENC, MSUBR_Q_H_DESC, Requires<[HasMSA]>;
2595 def MSUBR_Q_W : MSUBR_Q_W_ENC, MSUBR_Q_W_DESC, Requires<[HasMSA]>;
2596
2597 def MSUBV_B : MSUBV_B_ENC, MSUBV_B_DESC, Requires<[HasMSA]>;
2598 def MSUBV_H : MSUBV_H_ENC, MSUBV_H_DESC, Requires<[HasMSA]>;
2599 def MSUBV_W : MSUBV_W_ENC, MSUBV_W_DESC, Requires<[HasMSA]>;
2600 def MSUBV_D : MSUBV_D_ENC, MSUBV_D_DESC, Requires<[HasMSA]>;
2601
2602 def MUL_Q_H : MUL_Q_H_ENC, MUL_Q_H_DESC, Requires<[HasMSA]>;
2603 def MUL_Q_W : MUL_Q_W_ENC, MUL_Q_W_DESC, Requires<[HasMSA]>;
2604
2605 def MULR_Q_H : MULR_Q_H_ENC, MULR_Q_H_DESC, Requires<[HasMSA]>;
2606 def MULR_Q_W : MULR_Q_W_ENC, MULR_Q_W_DESC, Requires<[HasMSA]>;
2607
2608 def MULV_B : MULV_B_ENC, MULV_B_DESC, Requires<[HasMSA]>;
2609 def MULV_H : MULV_H_ENC, MULV_H_DESC, Requires<[HasMSA]>;
2610 def MULV_W : MULV_W_ENC, MULV_W_DESC, Requires<[HasMSA]>;
2611 def MULV_D : MULV_D_ENC, MULV_D_DESC, Requires<[HasMSA]>;
2612
2613 def NLOC_B : NLOC_B_ENC, NLOC_B_DESC, Requires<[HasMSA]>;
2614 def NLOC_H : NLOC_H_ENC, NLOC_H_DESC, Requires<[HasMSA]>;
2615 def NLOC_W : NLOC_W_ENC, NLOC_W_DESC, Requires<[HasMSA]>;
2616 def NLOC_D : NLOC_D_ENC, NLOC_D_DESC, Requires<[HasMSA]>;
2617
2618 def NLZC_B : NLZC_B_ENC, NLZC_B_DESC, Requires<[HasMSA]>;
2619 def NLZC_H : NLZC_H_ENC, NLZC_H_DESC, Requires<[HasMSA]>;
2620 def NLZC_W : NLZC_W_ENC, NLZC_W_DESC, Requires<[HasMSA]>;
2621 def NLZC_D : NLZC_D_ENC, NLZC_D_DESC, Requires<[HasMSA]>;
2622
2623 def NOR_V : NOR_V_ENC, NOR_V_DESC, Requires<[HasMSA]>;
2624
2625 def NORI_B : NORI_B_ENC, NORI_B_DESC, Requires<[HasMSA]>;
2626
2627 def OR_V : OR_V_ENC, OR_V_DESC, Requires<[HasMSA]>;
2628
2629 def ORI_B : ORI_B_ENC, ORI_B_DESC, Requires<[HasMSA]>;
2630
2631 def PCKEV_B : PCKEV_B_ENC, PCKEV_B_DESC, Requires<[HasMSA]>;
2632 def PCKEV_H : PCKEV_H_ENC, PCKEV_H_DESC, Requires<[HasMSA]>;
2633 def PCKEV_W : PCKEV_W_ENC, PCKEV_W_DESC, Requires<[HasMSA]>;
2634 def PCKEV_D : PCKEV_D_ENC, PCKEV_D_DESC, Requires<[HasMSA]>;
2635
2636 def PCKOD_B : PCKOD_B_ENC, PCKOD_B_DESC, Requires<[HasMSA]>;
2637 def PCKOD_H : PCKOD_H_ENC, PCKOD_H_DESC, Requires<[HasMSA]>;
2638 def PCKOD_W : PCKOD_W_ENC, PCKOD_W_DESC, Requires<[HasMSA]>;
2639 def PCKOD_D : PCKOD_D_ENC, PCKOD_D_DESC, Requires<[HasMSA]>;
2640
2641 def PCNT_B : PCNT_B_ENC, PCNT_B_DESC, Requires<[HasMSA]>;
2642 def PCNT_H : PCNT_H_ENC, PCNT_H_DESC, Requires<[HasMSA]>;
2643 def PCNT_W : PCNT_W_ENC, PCNT_W_DESC, Requires<[HasMSA]>;
2644 def PCNT_D : PCNT_D_ENC, PCNT_D_DESC, Requires<[HasMSA]>;
2645
2646 def SAT_S_B : SAT_S_B_ENC, SAT_S_B_DESC, Requires<[HasMSA]>;
2647 def SAT_S_H : SAT_S_H_ENC, SAT_S_H_DESC, Requires<[HasMSA]>;
2648 def SAT_S_W : SAT_S_W_ENC, SAT_S_W_DESC, Requires<[HasMSA]>;
2649 def SAT_S_D : SAT_S_D_ENC, SAT_S_D_DESC, Requires<[HasMSA]>;
2650
2651 def SAT_U_B : SAT_U_B_ENC, SAT_U_B_DESC, Requires<[HasMSA]>;
2652 def SAT_U_H : SAT_U_H_ENC, SAT_U_H_DESC, Requires<[HasMSA]>;
2653 def SAT_U_W : SAT_U_W_ENC, SAT_U_W_DESC, Requires<[HasMSA]>;
2654 def SAT_U_D : SAT_U_D_ENC, SAT_U_D_DESC, Requires<[HasMSA]>;
2655
2656 def SHF_B : SHF_B_ENC, SHF_B_DESC, Requires<[HasMSA]>;
2657 def SHF_H : SHF_H_ENC, SHF_H_DESC, Requires<[HasMSA]>;
2658 def SHF_W : SHF_W_ENC, SHF_W_DESC, Requires<[HasMSA]>;
2659
2660 def SLD_B : SLD_B_ENC, SLD_B_DESC, Requires<[HasMSA]>;
2661 def SLD_H : SLD_H_ENC, SLD_H_DESC, Requires<[HasMSA]>;
2662 def SLD_W : SLD_W_ENC, SLD_W_DESC, Requires<[HasMSA]>;
2663 def SLD_D : SLD_D_ENC, SLD_D_DESC, Requires<[HasMSA]>;
2664
2665 def SLDI_B : SLDI_B_ENC, SLDI_B_DESC, Requires<[HasMSA]>;
2666 def SLDI_H : SLDI_H_ENC, SLDI_H_DESC, Requires<[HasMSA]>;
2667 def SLDI_W : SLDI_W_ENC, SLDI_W_DESC, Requires<[HasMSA]>;
2668 def SLDI_D : SLDI_D_ENC, SLDI_D_DESC, Requires<[HasMSA]>;
2669
2670 def SLL_B : SLL_B_ENC, SLL_B_DESC, Requires<[HasMSA]>;
2671 def SLL_H : SLL_H_ENC, SLL_H_DESC, Requires<[HasMSA]>;
2672 def SLL_W : SLL_W_ENC, SLL_W_DESC, Requires<[HasMSA]>;
2673 def SLL_D : SLL_D_ENC, SLL_D_DESC, Requires<[HasMSA]>;
2674
2675 def SLLI_B : SLLI_B_ENC, SLLI_B_DESC, Requires<[HasMSA]>;
2676 def SLLI_H : SLLI_H_ENC, SLLI_H_DESC, Requires<[HasMSA]>;
2677 def SLLI_W : SLLI_W_ENC, SLLI_W_DESC, Requires<[HasMSA]>;
2678 def SLLI_D : SLLI_D_ENC, SLLI_D_DESC, Requires<[HasMSA]>;
2679
2680 def SPLAT_B : SPLAT_B_ENC, SPLAT_B_DESC, Requires<[HasMSA]>;
2681 def SPLAT_H : SPLAT_H_ENC, SPLAT_H_DESC, Requires<[HasMSA]>;
2682 def SPLAT_W : SPLAT_W_ENC, SPLAT_W_DESC, Requires<[HasMSA]>;
2683 def SPLAT_D : SPLAT_D_ENC, SPLAT_D_DESC, Requires<[HasMSA]>;
2684
2685 def SPLATI_B : SPLATI_B_ENC, SPLATI_B_DESC, Requires<[HasMSA]>;
2686 def SPLATI_H : SPLATI_H_ENC, SPLATI_H_DESC, Requires<[HasMSA]>;
2687 def SPLATI_W : SPLATI_W_ENC, SPLATI_W_DESC, Requires<[HasMSA]>;
2688 def SPLATI_D : SPLATI_D_ENC, SPLATI_D_DESC, Requires<[HasMSA]>;
2689
2690 def SRA_B : SRA_B_ENC, SRA_B_DESC, Requires<[HasMSA]>;
2691 def SRA_H : SRA_H_ENC, SRA_H_DESC, Requires<[HasMSA]>;
2692 def SRA_W : SRA_W_ENC, SRA_W_DESC, Requires<[HasMSA]>;
2693 def SRA_D : SRA_D_ENC, SRA_D_DESC, Requires<[HasMSA]>;
2694
2695 def SRAI_B : SRAI_B_ENC, SRAI_B_DESC, Requires<[HasMSA]>;
2696 def SRAI_H : SRAI_H_ENC, SRAI_H_DESC, Requires<[HasMSA]>;
2697 def SRAI_W : SRAI_W_ENC, SRAI_W_DESC, Requires<[HasMSA]>;
2698 def SRAI_D : SRAI_D_ENC, SRAI_D_DESC, Requires<[HasMSA]>;
2699
2700 def SRAR_B : SRAR_B_ENC, SRAR_B_DESC, Requires<[HasMSA]>;
2701 def SRAR_H : SRAR_H_ENC, SRAR_H_DESC, Requires<[HasMSA]>;
2702 def SRAR_W : SRAR_W_ENC, SRAR_W_DESC, Requires<[HasMSA]>;
2703 def SRAR_D : SRAR_D_ENC, SRAR_D_DESC, Requires<[HasMSA]>;
2704
2705 def SRARI_B : SRARI_B_ENC, SRARI_B_DESC, Requires<[HasMSA]>;
2706 def SRARI_H : SRARI_H_ENC, SRARI_H_DESC, Requires<[HasMSA]>;
2707 def SRARI_W : SRARI_W_ENC, SRARI_W_DESC, Requires<[HasMSA]>;
2708 def SRARI_D : SRARI_D_ENC, SRARI_D_DESC, Requires<[HasMSA]>;
2709
2710 def SRL_B : SRL_B_ENC, SRL_B_DESC, Requires<[HasMSA]>;
2711 def SRL_H : SRL_H_ENC, SRL_H_DESC, Requires<[HasMSA]>;
2712 def SRL_W : SRL_W_ENC, SRL_W_DESC, Requires<[HasMSA]>;
2713 def SRL_D : SRL_D_ENC, SRL_D_DESC, Requires<[HasMSA]>;
2714
2715 def SRLI_B : SRLI_B_ENC, SRLI_B_DESC, Requires<[HasMSA]>;
2716 def SRLI_H : SRLI_H_ENC, SRLI_H_DESC, Requires<[HasMSA]>;
2717 def SRLI_W : SRLI_W_ENC, SRLI_W_DESC, Requires<[HasMSA]>;
2718 def SRLI_D : SRLI_D_ENC, SRLI_D_DESC, Requires<[HasMSA]>;
2719
2720 def SRLR_B : SRLR_B_ENC, SRLR_B_DESC, Requires<[HasMSA]>;
2721 def SRLR_H : SRLR_H_ENC, SRLR_H_DESC, Requires<[HasMSA]>;
2722 def SRLR_W : SRLR_W_ENC, SRLR_W_DESC, Requires<[HasMSA]>;
2723 def SRLR_D : SRLR_D_ENC, SRLR_D_DESC, Requires<[HasMSA]>;
2724
2725 def SRLRI_B : SRLRI_B_ENC, SRLRI_B_DESC, Requires<[HasMSA]>;
2726 def SRLRI_H : SRLRI_H_ENC, SRLRI_H_DESC, Requires<[HasMSA]>;
2727 def SRLRI_W : SRLRI_W_ENC, SRLRI_W_DESC, Requires<[HasMSA]>;
2728 def SRLRI_D : SRLRI_D_ENC, SRLRI_D_DESC, Requires<[HasMSA]>;
2729
2730 def ST_B: ST_B_ENC, ST_B_DESC, Requires<[HasMSA]>;
2731 def ST_H: ST_H_ENC, ST_H_DESC, Requires<[HasMSA]>;
2732 def ST_W: ST_W_ENC, ST_W_DESC, Requires<[HasMSA]>;
2733 def ST_D: ST_D_ENC, ST_D_DESC, Requires<[HasMSA]>;
2734
2735 def STX_B: STX_B_ENC, STX_B_DESC, Requires<[HasMSA]>;
2736 def STX_H: STX_H_ENC, STX_H_DESC, Requires<[HasMSA]>;
2737 def STX_W: STX_W_ENC, STX_W_DESC, Requires<[HasMSA]>;
2738 def STX_D: STX_D_ENC, STX_D_DESC, Requires<[HasMSA]>;
2739
2740 def SUBS_S_B : SUBS_S_B_ENC, SUBS_S_B_DESC, Requires<[HasMSA]>;
2741 def SUBS_S_H : SUBS_S_H_ENC, SUBS_S_H_DESC, Requires<[HasMSA]>;
2742 def SUBS_S_W : SUBS_S_W_ENC, SUBS_S_W_DESC, Requires<[HasMSA]>;
2743 def SUBS_S_D : SUBS_S_D_ENC, SUBS_S_D_DESC, Requires<[HasMSA]>;
2744
2745 def SUBS_U_B : SUBS_U_B_ENC, SUBS_U_B_DESC, Requires<[HasMSA]>;
2746 def SUBS_U_H : SUBS_U_H_ENC, SUBS_U_H_DESC, Requires<[HasMSA]>;
2747 def SUBS_U_W : SUBS_U_W_ENC, SUBS_U_W_DESC, Requires<[HasMSA]>;
2748 def SUBS_U_D : SUBS_U_D_ENC, SUBS_U_D_DESC, Requires<[HasMSA]>;
2749
2750 def SUBSUS_U_B : SUBSUS_U_B_ENC, SUBSUS_U_B_DESC, Requires<[HasMSA]>;
2751 def SUBSUS_U_H : SUBSUS_U_H_ENC, SUBSUS_U_H_DESC, Requires<[HasMSA]>;
2752 def SUBSUS_U_W : SUBSUS_U_W_ENC, SUBSUS_U_W_DESC, Requires<[HasMSA]>;
2753 def SUBSUS_U_D : SUBSUS_U_D_ENC, SUBSUS_U_D_DESC, Requires<[HasMSA]>;
2754
2755 def SUBSUU_S_B : SUBSUU_S_B_ENC, SUBSUU_S_B_DESC, Requires<[HasMSA]>;
2756 def SUBSUU_S_H : SUBSUU_S_H_ENC, SUBSUU_S_H_DESC, Requires<[HasMSA]>;
2757 def SUBSUU_S_W : SUBSUU_S_W_ENC, SUBSUU_S_W_DESC, Requires<[HasMSA]>;
2758 def SUBSUU_S_D : SUBSUU_S_D_ENC, SUBSUU_S_D_DESC, Requires<[HasMSA]>;
2759
2760 def SUBV_B : SUBV_B_ENC, SUBV_B_DESC, Requires<[HasMSA]>;
2761 def SUBV_H : SUBV_H_ENC, SUBV_H_DESC, Requires<[HasMSA]>;
2762 def SUBV_W : SUBV_W_ENC, SUBV_W_DESC, Requires<[HasMSA]>;
2763 def SUBV_D : SUBV_D_ENC, SUBV_D_DESC, Requires<[HasMSA]>;
2764
2765 def SUBVI_B : SUBVI_B_ENC, SUBVI_B_DESC, Requires<[HasMSA]>;
2766 def SUBVI_H : SUBVI_H_ENC, SUBVI_H_DESC, Requires<[HasMSA]>;
2767 def SUBVI_W : SUBVI_W_ENC, SUBVI_W_DESC, Requires<[HasMSA]>;
2768 def SUBVI_D : SUBVI_D_ENC, SUBVI_D_DESC, Requires<[HasMSA]>;
2769
2770 def VSHF_B : VSHF_B_ENC, VSHF_B_DESC, Requires<[HasMSA]>;
2771 def VSHF_H : VSHF_H_ENC, VSHF_H_DESC, Requires<[HasMSA]>;
2772 def VSHF_W : VSHF_W_ENC, VSHF_W_DESC, Requires<[HasMSA]>;
2773 def VSHF_D : VSHF_D_ENC, VSHF_D_DESC, Requires<[HasMSA]>;
2774
2775 def XOR_V : XOR_V_ENC, XOR_V_DESC, Requires<[HasMSA]>;
2776
2777 def XORI_B : XORI_B_ENC, XORI_B_DESC, Requires<[HasMSA]>;
2778
2779 // Patterns.
2780 class MSAPat<dag pattern, dag result, list<Predicate> pred = [HasMSA]> :
2781   Pat<pattern, result>, Requires<pred>;
2782
2783 def : MSAPat<(v16i8 (load addr:$addr)), (LD_B addr:$addr)>;
2784 def : MSAPat<(v8i16 (load addr:$addr)), (LD_H addr:$addr)>;
2785 def : MSAPat<(v4i32 (load addr:$addr)), (LD_W addr:$addr)>;
2786 def : MSAPat<(v2i64 (load addr:$addr)), (LD_D addr:$addr)>;
2787 def : MSAPat<(v8f16 (load addr:$addr)), (LD_H addr:$addr)>;
2788 def : MSAPat<(v4f32 (load addr:$addr)), (LD_W addr:$addr)>;
2789 def : MSAPat<(v2f64 (load addr:$addr)), (LD_D addr:$addr)>;
2790
2791 def : MSAPat<(v8f16 (load addrRegImm:$addr)), (LD_H addrRegImm:$addr)>;
2792 def : MSAPat<(v4f32 (load addrRegImm:$addr)), (LD_W addrRegImm:$addr)>;
2793 def : MSAPat<(v2f64 (load addrRegImm:$addr)), (LD_D addrRegImm:$addr)>;
2794
2795 def : MSAPat<(store (v16i8 MSA128B:$ws), addr:$addr),
2796              (ST_B MSA128B:$ws, addr:$addr)>;
2797 def : MSAPat<(store (v8i16 MSA128H:$ws), addr:$addr),
2798              (ST_H MSA128H:$ws, addr:$addr)>;
2799 def : MSAPat<(store (v4i32 MSA128W:$ws), addr:$addr),
2800              (ST_W MSA128W:$ws, addr:$addr)>;
2801 def : MSAPat<(store (v2i64 MSA128D:$ws), addr:$addr),
2802              (ST_D MSA128D:$ws, addr:$addr)>;
2803 def : MSAPat<(store (v8f16 MSA128H:$ws), addr:$addr),
2804              (ST_H MSA128H:$ws, addr:$addr)>;
2805 def : MSAPat<(store (v4f32 MSA128W:$ws), addr:$addr),
2806              (ST_W MSA128W:$ws, addr:$addr)>;
2807 def : MSAPat<(store (v2f64 MSA128D:$ws), addr:$addr),
2808              (ST_D MSA128D:$ws, addr:$addr)>;
2809
2810 def ST_FH : MSAPat<(store (v8f16 MSA128H:$ws), addrRegImm:$addr),
2811                    (ST_H MSA128H:$ws, addrRegImm:$addr)>;
2812 def ST_FW : MSAPat<(store (v4f32 MSA128W:$ws), addrRegImm:$addr),
2813                    (ST_W MSA128W:$ws, addrRegImm:$addr)>;
2814 def ST_FD : MSAPat<(store (v2f64 MSA128D:$ws), addrRegImm:$addr),
2815                    (ST_D MSA128D:$ws, addrRegImm:$addr)>;
2816
2817 class MSABitconvertPat<ValueType DstVT, ValueType SrcVT,
2818                        RegisterClass DstRC, list<Predicate> preds = [HasMSA]> :
2819    MSAPat<(DstVT (bitconvert SrcVT:$src)),
2820           (COPY_TO_REGCLASS SrcVT:$src, DstRC), preds>;
2821
2822 // These are endian-independant because the element size doesnt change
2823 def : MSABitconvertPat<v8i16, v8f16, MSA128H>;
2824 def : MSABitconvertPat<v4i32, v4f32, MSA128W>;
2825 def : MSABitconvertPat<v2i64, v2f64, MSA128D>;
2826 def : MSABitconvertPat<v8f16, v8i16, MSA128H>;
2827 def : MSABitconvertPat<v4f32, v4i32, MSA128W>;
2828 def : MSABitconvertPat<v2f64, v2i64, MSA128D>;
2829
2830 // Little endian bitcasts are always no-ops
2831 def : MSABitconvertPat<v16i8, v8i16, MSA128B, [HasMSA, IsLE]>;
2832 def : MSABitconvertPat<v16i8, v4i32, MSA128B, [HasMSA, IsLE]>;
2833 def : MSABitconvertPat<v16i8, v2i64, MSA128B, [HasMSA, IsLE]>;
2834 def : MSABitconvertPat<v16i8, v8f16, MSA128B, [HasMSA, IsLE]>;
2835 def : MSABitconvertPat<v16i8, v4f32, MSA128B, [HasMSA, IsLE]>;
2836 def : MSABitconvertPat<v16i8, v2f64, MSA128B, [HasMSA, IsLE]>;
2837
2838 def : MSABitconvertPat<v8i16, v16i8, MSA128H, [HasMSA, IsLE]>;
2839 def : MSABitconvertPat<v8i16, v4i32, MSA128H, [HasMSA, IsLE]>;
2840 def : MSABitconvertPat<v8i16, v2i64, MSA128H, [HasMSA, IsLE]>;
2841 def : MSABitconvertPat<v8i16, v4f32, MSA128H, [HasMSA, IsLE]>;
2842 def : MSABitconvertPat<v8i16, v2f64, MSA128H, [HasMSA, IsLE]>;
2843
2844 def : MSABitconvertPat<v4i32, v16i8, MSA128W, [HasMSA, IsLE]>;
2845 def : MSABitconvertPat<v4i32, v8i16, MSA128W, [HasMSA, IsLE]>;
2846 def : MSABitconvertPat<v4i32, v2i64, MSA128W, [HasMSA, IsLE]>;
2847 def : MSABitconvertPat<v4i32, v8f16, MSA128W, [HasMSA, IsLE]>;
2848 def : MSABitconvertPat<v4i32, v2f64, MSA128W, [HasMSA, IsLE]>;
2849
2850 def : MSABitconvertPat<v2i64, v16i8, MSA128D, [HasMSA, IsLE]>;
2851 def : MSABitconvertPat<v2i64, v8i16, MSA128D, [HasMSA, IsLE]>;
2852 def : MSABitconvertPat<v2i64, v4i32, MSA128D, [HasMSA, IsLE]>;
2853 def : MSABitconvertPat<v2i64, v8f16, MSA128D, [HasMSA, IsLE]>;
2854 def : MSABitconvertPat<v2i64, v4f32, MSA128D, [HasMSA, IsLE]>;
2855
2856 def : MSABitconvertPat<v4f32, v16i8, MSA128W, [HasMSA, IsLE]>;
2857 def : MSABitconvertPat<v4f32, v8i16, MSA128W, [HasMSA, IsLE]>;
2858 def : MSABitconvertPat<v4f32, v2i64, MSA128W, [HasMSA, IsLE]>;
2859 def : MSABitconvertPat<v4f32, v8f16, MSA128W, [HasMSA, IsLE]>;
2860 def : MSABitconvertPat<v4f32, v2f64, MSA128W, [HasMSA, IsLE]>;
2861
2862 def : MSABitconvertPat<v2f64, v16i8, MSA128D, [HasMSA, IsLE]>;
2863 def : MSABitconvertPat<v2f64, v8i16, MSA128D, [HasMSA, IsLE]>;
2864 def : MSABitconvertPat<v2f64, v4i32, MSA128D, [HasMSA, IsLE]>;
2865 def : MSABitconvertPat<v2f64, v8f16, MSA128D, [HasMSA, IsLE]>;
2866 def : MSABitconvertPat<v2f64, v4f32, MSA128D, [HasMSA, IsLE]>;
2867
2868 // Big endian bitcasts expand to shuffle instructions.
2869 // This is because bitcast is defined to be a store/load sequence and the
2870 // vector store/load instructions are mixed-endian with respect to the vector
2871 // as a whole (little endian with respect to element order, but big endian
2872 // elements).
2873
2874 class MSABitconvertReverseQuartersPat<ValueType DstVT, ValueType SrcVT,
2875                                       RegisterClass DstRC, MSAInst Insn,
2876                                       RegisterClass ViaRC> :
2877   MSAPat<(DstVT (bitconvert SrcVT:$src)),
2878          (COPY_TO_REGCLASS (Insn (COPY_TO_REGCLASS SrcVT:$src, ViaRC), 27),
2879                            DstRC),
2880          [HasMSA, IsBE]>;
2881
2882 class MSABitconvertReverseHalvesPat<ValueType DstVT, ValueType SrcVT,
2883                                     RegisterClass DstRC, MSAInst Insn,
2884                                     RegisterClass ViaRC> :
2885   MSAPat<(DstVT (bitconvert SrcVT:$src)),
2886          (COPY_TO_REGCLASS (Insn (COPY_TO_REGCLASS SrcVT:$src, ViaRC), 177),
2887                            DstRC),
2888          [HasMSA, IsBE]>;
2889
2890 class MSABitconvertReverseBInHPat<ValueType DstVT, ValueType SrcVT,
2891                                   RegisterClass DstRC> :
2892   MSABitconvertReverseHalvesPat<DstVT, SrcVT, DstRC, SHF_B, MSA128B>;
2893
2894 class MSABitconvertReverseBInWPat<ValueType DstVT, ValueType SrcVT,
2895                                   RegisterClass DstRC> :
2896   MSABitconvertReverseQuartersPat<DstVT, SrcVT, DstRC, SHF_B, MSA128B>;
2897
2898 class MSABitconvertReverseBInDPat<ValueType DstVT, ValueType SrcVT,
2899                                   RegisterClass DstRC> :
2900   MSAPat<(DstVT (bitconvert SrcVT:$src)),
2901          (COPY_TO_REGCLASS
2902            (SHF_W
2903              (COPY_TO_REGCLASS
2904                (SHF_B (COPY_TO_REGCLASS SrcVT:$src, MSA128B), 27),
2905                MSA128W), 177),
2906            DstRC),
2907          [HasMSA, IsBE]>;
2908
2909 class MSABitconvertReverseHInWPat<ValueType DstVT, ValueType SrcVT,
2910                                   RegisterClass DstRC> :
2911   MSABitconvertReverseHalvesPat<DstVT, SrcVT, DstRC, SHF_H, MSA128H>;
2912
2913 class MSABitconvertReverseHInDPat<ValueType DstVT, ValueType SrcVT,
2914                                   RegisterClass DstRC> :
2915   MSABitconvertReverseQuartersPat<DstVT, SrcVT, DstRC, SHF_H, MSA128H>;
2916
2917 class MSABitconvertReverseWInDPat<ValueType DstVT, ValueType SrcVT,
2918                                   RegisterClass DstRC> :
2919   MSABitconvertReverseHalvesPat<DstVT, SrcVT, DstRC, SHF_W, MSA128W>;
2920
2921 def : MSABitconvertReverseBInHPat<v8i16, v16i8, MSA128H>;
2922 def : MSABitconvertReverseBInHPat<v8f16, v16i8, MSA128H>;
2923 def : MSABitconvertReverseBInWPat<v4i32, v16i8, MSA128W>;
2924 def : MSABitconvertReverseBInWPat<v4f32, v16i8, MSA128W>;
2925 def : MSABitconvertReverseBInDPat<v2i64, v16i8, MSA128D>;
2926 def : MSABitconvertReverseBInDPat<v2f64, v16i8, MSA128D>;
2927
2928 def : MSABitconvertReverseBInHPat<v16i8, v8i16, MSA128B>;
2929 def : MSABitconvertReverseHInWPat<v4i32, v8i16, MSA128W>;
2930 def : MSABitconvertReverseHInWPat<v4f32, v8i16, MSA128W>;
2931 def : MSABitconvertReverseHInDPat<v2i64, v8i16, MSA128D>;
2932 def : MSABitconvertReverseHInDPat<v2f64, v8i16, MSA128D>;
2933
2934 def : MSABitconvertReverseBInHPat<v16i8, v8f16, MSA128B>;
2935 def : MSABitconvertReverseHInWPat<v4i32, v8f16, MSA128W>;
2936 def : MSABitconvertReverseHInWPat<v4f32, v8f16, MSA128W>;
2937 def : MSABitconvertReverseHInDPat<v2i64, v8f16, MSA128D>;
2938 def : MSABitconvertReverseHInDPat<v2f64, v8f16, MSA128D>;
2939
2940 def : MSABitconvertReverseBInWPat<v16i8, v4i32, MSA128B>;
2941 def : MSABitconvertReverseHInWPat<v8i16, v4i32, MSA128H>;
2942 def : MSABitconvertReverseHInWPat<v8f16, v4i32, MSA128H>;
2943 def : MSABitconvertReverseWInDPat<v2i64, v4i32, MSA128D>;
2944 def : MSABitconvertReverseWInDPat<v2f64, v4i32, MSA128D>;
2945
2946 def : MSABitconvertReverseBInWPat<v16i8, v4f32, MSA128B>;
2947 def : MSABitconvertReverseHInWPat<v8i16, v4f32, MSA128H>;
2948 def : MSABitconvertReverseHInWPat<v8f16, v4f32, MSA128H>;
2949 def : MSABitconvertReverseWInDPat<v2i64, v4f32, MSA128D>;
2950 def : MSABitconvertReverseWInDPat<v2f64, v4f32, MSA128D>;
2951
2952 def : MSABitconvertReverseBInDPat<v16i8, v2i64, MSA128B>;
2953 def : MSABitconvertReverseHInDPat<v8i16, v2i64, MSA128H>;
2954 def : MSABitconvertReverseHInDPat<v8f16, v2i64, MSA128H>;
2955 def : MSABitconvertReverseWInDPat<v4i32, v2i64, MSA128W>;
2956 def : MSABitconvertReverseWInDPat<v4f32, v2i64, MSA128W>;
2957
2958 def : MSABitconvertReverseBInDPat<v16i8, v2f64, MSA128B>;
2959 def : MSABitconvertReverseHInDPat<v8i16, v2f64, MSA128H>;
2960 def : MSABitconvertReverseHInDPat<v8f16, v2f64, MSA128H>;
2961 def : MSABitconvertReverseWInDPat<v4i32, v2f64, MSA128W>;
2962 def : MSABitconvertReverseWInDPat<v4f32, v2f64, MSA128W>;
2963
2964 // Pseudos used to implement BNZ.df, and BZ.df
2965
2966 class MSA_CBRANCH_PSEUDO_DESC_BASE<SDPatternOperator OpNode, ValueType TyNode,
2967                                    RegisterClass RCWS,
2968                                    InstrItinClass itin = NoItinerary> :
2969   MipsPseudo<(outs GPR32:$dst),
2970              (ins RCWS:$ws),
2971              [(set GPR32:$dst, (OpNode (TyNode RCWS:$ws)))]> {
2972   bit usesCustomInserter = 1;
2973 }
2974
2975 def SNZ_B_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllNonZero, v16i8,
2976                                                 MSA128B, NoItinerary>;
2977 def SNZ_H_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllNonZero, v8i16,
2978                                                 MSA128H, NoItinerary>;
2979 def SNZ_W_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllNonZero, v4i32,
2980                                                 MSA128W, NoItinerary>;
2981 def SNZ_D_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllNonZero, v2i64,
2982                                                 MSA128D, NoItinerary>;
2983 def SNZ_V_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAnyNonZero, v16i8,
2984                                                 MSA128B, NoItinerary>;
2985
2986 def SZ_B_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllZero, v16i8,
2987                                                MSA128B, NoItinerary>;
2988 def SZ_H_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllZero, v8i16,
2989                                                MSA128H, NoItinerary>;
2990 def SZ_W_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllZero, v4i32,
2991                                                MSA128W, NoItinerary>;
2992 def SZ_D_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllZero, v2i64,
2993                                                MSA128D, NoItinerary>;
2994 def SZ_V_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAnyZero, v16i8,
2995                                                MSA128B, NoItinerary>;