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