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