MipsMSAInstrInfo.td revision 888497d8a2927ddab38667d54d574c3cadeef1e5
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_B_DESC_BASE<string instr_asm, SDPatternOperator OpNode, 763 RegisterClass RCWD, RegisterClass RCWS = RCWD, 764 InstrItinClass itin = NoItinerary> { 765 dag OutOperandList = (outs RCWD:$wd); 766 dag InOperandList = (ins RCWS:$ws, uimm3:$u3); 767 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $u3"); 768 list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, immZExt3:$u3))]; 769 InstrItinClass Itinerary = itin; 770} 771 772class MSA_BIT_H_DESC_BASE<string instr_asm, SDPatternOperator OpNode, 773 RegisterClass RCWD, RegisterClass RCWS = RCWD, 774 InstrItinClass itin = NoItinerary> { 775 dag OutOperandList = (outs RCWD:$wd); 776 dag InOperandList = (ins RCWS:$ws, uimm4:$u4); 777 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $u4"); 778 list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, immZExt4:$u4))]; 779 InstrItinClass Itinerary = itin; 780} 781 782class MSA_BIT_W_DESC_BASE<string instr_asm, SDPatternOperator OpNode, 783 RegisterClass RCWD, RegisterClass RCWS = RCWD, 784 InstrItinClass itin = NoItinerary> { 785 dag OutOperandList = (outs RCWD:$wd); 786 dag InOperandList = (ins RCWS:$ws, uimm5:$u5); 787 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $u5"); 788 list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, immZExt5:$u5))]; 789 InstrItinClass Itinerary = itin; 790} 791 792class MSA_BIT_D_DESC_BASE<string instr_asm, SDPatternOperator OpNode, 793 RegisterClass RCWD, RegisterClass RCWS = RCWD, 794 InstrItinClass itin = NoItinerary> { 795 dag OutOperandList = (outs RCWD:$wd); 796 dag InOperandList = (ins RCWS:$ws, uimm6:$u6); 797 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $u6"); 798 list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, immZExt6:$u6))]; 799 InstrItinClass Itinerary = itin; 800} 801 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 = RCWD, 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 = RCWD, 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 = RCWD, 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 = RCWD, 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 = RCWD, 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 = RCWD, 870 RegisterClass RCWT = RCWD, 871 InstrItinClass itin = NoItinerary> { 872 dag OutOperandList = (outs RCWD:$wd); 873 dag InOperandList = (ins RCWS:$ws, RCWT:$wt); 874 string AsmString = !strconcat(instr_asm, "\t$wd, $ws, $wt"); 875 list<dag> Pattern = [(set RCWD:$wd, (OpNode RCWS:$ws, RCWT:$wt))]; 876 InstrItinClass Itinerary = itin; 877} 878 879class MSA_3R_4R_DESC_BASE<string instr_asm, SDPatternOperator OpNode, 880 RegisterClass RCWD, RegisterClass RCWS = RCWD, 881 RegisterClass RCWT = RCWD, 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 = RCWD, 894 RegisterClass RCWT = RCWD, 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, MSA128B>, 954 IsCommutable; 955class ADD_A_H_DESC : MSA_3R_DESC_BASE<"add_a.h", int_mips_add_a_h, MSA128H>, 956 IsCommutable; 957class ADD_A_W_DESC : MSA_3R_DESC_BASE<"add_a.w", int_mips_add_a_w, MSA128W>, 958 IsCommutable; 959class ADD_A_D_DESC : MSA_3R_DESC_BASE<"add_a.d", int_mips_add_a_d, MSA128D>, 960 IsCommutable; 961 962class ADDS_A_B_DESC : MSA_3R_DESC_BASE<"adds_a.b", int_mips_adds_a_b, MSA128B>, 963 IsCommutable; 964class ADDS_A_H_DESC : MSA_3R_DESC_BASE<"adds_a.h", int_mips_adds_a_h, MSA128H>, 965 IsCommutable; 966class ADDS_A_W_DESC : MSA_3R_DESC_BASE<"adds_a.w", int_mips_adds_a_w, MSA128W>, 967 IsCommutable; 968class ADDS_A_D_DESC : MSA_3R_DESC_BASE<"adds_a.d", int_mips_adds_a_d, MSA128D>, 969 IsCommutable; 970 971class ADDS_S_B_DESC : MSA_3R_DESC_BASE<"adds_s.b", int_mips_adds_s_b, MSA128B>, 972 IsCommutable; 973class ADDS_S_H_DESC : MSA_3R_DESC_BASE<"adds_s.h", int_mips_adds_s_h, MSA128H>, 974 IsCommutable; 975class ADDS_S_W_DESC : MSA_3R_DESC_BASE<"adds_s.w", int_mips_adds_s_w, MSA128W>, 976 IsCommutable; 977class ADDS_S_D_DESC : MSA_3R_DESC_BASE<"adds_s.d", int_mips_adds_s_d, MSA128D>, 978 IsCommutable; 979 980class ADDS_U_B_DESC : MSA_3R_DESC_BASE<"adds_u.b", int_mips_adds_u_b, MSA128B>, 981 IsCommutable; 982class ADDS_U_H_DESC : MSA_3R_DESC_BASE<"adds_u.h", int_mips_adds_u_h, MSA128H>, 983 IsCommutable; 984class ADDS_U_W_DESC : MSA_3R_DESC_BASE<"adds_u.w", int_mips_adds_u_w, MSA128W>, 985 IsCommutable; 986class ADDS_U_D_DESC : MSA_3R_DESC_BASE<"adds_u.d", int_mips_adds_u_d, MSA128D>, 987 IsCommutable; 988 989class ADDV_B_DESC : MSA_3R_DESC_BASE<"addv.b", int_mips_addv_b, MSA128B>, 990 IsCommutable; 991class ADDV_H_DESC : MSA_3R_DESC_BASE<"addv.h", int_mips_addv_h, MSA128H>, 992 IsCommutable; 993class ADDV_W_DESC : MSA_3R_DESC_BASE<"addv.w", int_mips_addv_w, MSA128W>, 994 IsCommutable; 995class ADDV_D_DESC : MSA_3R_DESC_BASE<"addv.d", int_mips_addv_d, MSA128D>, 996 IsCommutable; 997 998class ADDVI_B_DESC : MSA_I5_DESC_BASE<"addvi.b", int_mips_addvi_b, MSA128B>; 999class ADDVI_H_DESC : MSA_I5_DESC_BASE<"addvi.h", int_mips_addvi_h, MSA128H>; 1000class ADDVI_W_DESC : MSA_I5_DESC_BASE<"addvi.w", int_mips_addvi_w, MSA128W>; 1001class ADDVI_D_DESC : MSA_I5_DESC_BASE<"addvi.d", int_mips_addvi_d, MSA128D>; 1002 1003class AND_V_DESC : MSA_VEC_DESC_BASE<"and.v", int_mips_and_v, 1004 MSA128B, MSA128B>; 1005 1006class ANDI_B_DESC : MSA_I8_DESC_BASE<"andi.b", int_mips_andi_b, MSA128B>; 1007 1008class ASUB_S_B_DESC : MSA_3R_DESC_BASE<"asub_s.b", int_mips_asub_s_b, MSA128B>; 1009class ASUB_S_H_DESC : MSA_3R_DESC_BASE<"asub_s.h", int_mips_asub_s_h, MSA128H>; 1010class ASUB_S_W_DESC : MSA_3R_DESC_BASE<"asub_s.w", int_mips_asub_s_w, MSA128W>; 1011class ASUB_S_D_DESC : MSA_3R_DESC_BASE<"asub_s.d", int_mips_asub_s_d, MSA128D>; 1012 1013class ASUB_U_B_DESC : MSA_3R_DESC_BASE<"asub_u.b", int_mips_asub_u_b, MSA128B>; 1014class ASUB_U_H_DESC : MSA_3R_DESC_BASE<"asub_u.h", int_mips_asub_u_h, MSA128H>; 1015class ASUB_U_W_DESC : MSA_3R_DESC_BASE<"asub_u.w", int_mips_asub_u_w, MSA128W>; 1016class ASUB_U_D_DESC : MSA_3R_DESC_BASE<"asub_u.d", int_mips_asub_u_d, MSA128D>; 1017 1018class AVE_S_B_DESC : MSA_3R_DESC_BASE<"ave_s.b", int_mips_ave_s_b, MSA128B>, 1019 IsCommutable; 1020class AVE_S_H_DESC : MSA_3R_DESC_BASE<"ave_s.h", int_mips_ave_s_h, MSA128H>, 1021 IsCommutable; 1022class AVE_S_W_DESC : MSA_3R_DESC_BASE<"ave_s.w", int_mips_ave_s_w, MSA128W>, 1023 IsCommutable; 1024class AVE_S_D_DESC : MSA_3R_DESC_BASE<"ave_s.d", int_mips_ave_s_d, MSA128D>, 1025 IsCommutable; 1026 1027class AVE_U_B_DESC : MSA_3R_DESC_BASE<"ave_u.b", int_mips_ave_u_b, MSA128B>, 1028 IsCommutable; 1029class AVE_U_H_DESC : MSA_3R_DESC_BASE<"ave_u.h", int_mips_ave_u_h, MSA128H>, 1030 IsCommutable; 1031class AVE_U_W_DESC : MSA_3R_DESC_BASE<"ave_u.w", int_mips_ave_u_w, MSA128W>, 1032 IsCommutable; 1033class AVE_U_D_DESC : MSA_3R_DESC_BASE<"ave_u.d", int_mips_ave_u_d, MSA128D>, 1034 IsCommutable; 1035 1036class AVER_S_B_DESC : MSA_3R_DESC_BASE<"aver_s.b", int_mips_aver_s_b, MSA128B>, 1037 IsCommutable; 1038class AVER_S_H_DESC : MSA_3R_DESC_BASE<"aver_s.h", int_mips_aver_s_h, MSA128H>, 1039 IsCommutable; 1040class AVER_S_W_DESC : MSA_3R_DESC_BASE<"aver_s.w", int_mips_aver_s_w, MSA128W>, 1041 IsCommutable; 1042class AVER_S_D_DESC : MSA_3R_DESC_BASE<"aver_s.d", int_mips_aver_s_d, MSA128D>, 1043 IsCommutable; 1044 1045class AVER_U_B_DESC : MSA_3R_DESC_BASE<"aver_u.b", int_mips_aver_u_b, MSA128B>, 1046 IsCommutable; 1047class AVER_U_H_DESC : MSA_3R_DESC_BASE<"aver_u.h", int_mips_aver_u_h, MSA128H>, 1048 IsCommutable; 1049class AVER_U_W_DESC : MSA_3R_DESC_BASE<"aver_u.w", int_mips_aver_u_w, MSA128W>, 1050 IsCommutable; 1051class AVER_U_D_DESC : MSA_3R_DESC_BASE<"aver_u.d", int_mips_aver_u_d, MSA128D>, 1052 IsCommutable; 1053 1054class BCLR_B_DESC : MSA_3R_DESC_BASE<"bclr.b", int_mips_bclr_b, MSA128B>; 1055class BCLR_H_DESC : MSA_3R_DESC_BASE<"bclr.h", int_mips_bclr_h, MSA128H>; 1056class BCLR_W_DESC : MSA_3R_DESC_BASE<"bclr.w", int_mips_bclr_w, MSA128W>; 1057class BCLR_D_DESC : MSA_3R_DESC_BASE<"bclr.d", int_mips_bclr_d, MSA128D>; 1058 1059class BCLRI_B_DESC : MSA_BIT_B_DESC_BASE<"bclri.b", int_mips_bclri_b, MSA128B>; 1060class BCLRI_H_DESC : MSA_BIT_H_DESC_BASE<"bclri.h", int_mips_bclri_h, MSA128H>; 1061class BCLRI_W_DESC : MSA_BIT_W_DESC_BASE<"bclri.w", int_mips_bclri_w, MSA128W>; 1062class BCLRI_D_DESC : MSA_BIT_D_DESC_BASE<"bclri.d", int_mips_bclri_d, MSA128D>; 1063 1064class BINSL_B_DESC : MSA_3R_DESC_BASE<"binsl.b", int_mips_binsl_b, MSA128B>; 1065class BINSL_H_DESC : MSA_3R_DESC_BASE<"binsl.h", int_mips_binsl_h, MSA128H>; 1066class BINSL_W_DESC : MSA_3R_DESC_BASE<"binsl.w", int_mips_binsl_w, MSA128W>; 1067class BINSL_D_DESC : MSA_3R_DESC_BASE<"binsl.d", int_mips_binsl_d, MSA128D>; 1068 1069class BINSLI_B_DESC : MSA_BIT_B_DESC_BASE<"binsli.b", int_mips_binsli_b, 1070 MSA128B>; 1071class BINSLI_H_DESC : MSA_BIT_H_DESC_BASE<"binsli.h", int_mips_binsli_h, 1072 MSA128H>; 1073class BINSLI_W_DESC : MSA_BIT_W_DESC_BASE<"binsli.w", int_mips_binsli_w, 1074 MSA128W>; 1075class BINSLI_D_DESC : MSA_BIT_D_DESC_BASE<"binsli.d", int_mips_binsli_d, 1076 MSA128D>; 1077 1078class BINSR_B_DESC : MSA_3R_DESC_BASE<"binsr.b", int_mips_binsr_b, MSA128B>; 1079class BINSR_H_DESC : MSA_3R_DESC_BASE<"binsr.h", int_mips_binsr_h, MSA128H>; 1080class BINSR_W_DESC : MSA_3R_DESC_BASE<"binsr.w", int_mips_binsr_w, MSA128W>; 1081class BINSR_D_DESC : MSA_3R_DESC_BASE<"binsr.d", int_mips_binsr_d, MSA128D>; 1082 1083class BINSRI_B_DESC : MSA_BIT_B_DESC_BASE<"binsri.b", int_mips_binsri_b, 1084 MSA128B>; 1085class BINSRI_H_DESC : MSA_BIT_H_DESC_BASE<"binsri.h", int_mips_binsri_h, 1086 MSA128H>; 1087class BINSRI_W_DESC : MSA_BIT_W_DESC_BASE<"binsri.w", int_mips_binsri_w, 1088 MSA128W>; 1089class BINSRI_D_DESC : MSA_BIT_D_DESC_BASE<"binsri.d", int_mips_binsri_d, 1090 MSA128D>; 1091 1092class BMNZ_V_DESC : MSA_VEC_DESC_BASE<"bmnz.v", int_mips_bmnz_v, 1093 MSA128B, MSA128B>; 1094 1095class BMNZI_B_DESC : MSA_I8_DESC_BASE<"bmnzi.b", int_mips_bmnzi_b, MSA128B>; 1096 1097class BMZ_V_DESC : MSA_VEC_DESC_BASE<"bmz.v", int_mips_bmz_v, 1098 MSA128B, MSA128B>; 1099 1100class BMZI_B_DESC : MSA_I8_DESC_BASE<"bmzi.b", int_mips_bmzi_b, MSA128B>; 1101 1102class BNEG_B_DESC : MSA_3R_DESC_BASE<"bneg.b", int_mips_bneg_b, MSA128B>; 1103class BNEG_H_DESC : MSA_3R_DESC_BASE<"bneg.h", int_mips_bneg_h, MSA128H>; 1104class BNEG_W_DESC : MSA_3R_DESC_BASE<"bneg.w", int_mips_bneg_w, MSA128W>; 1105class BNEG_D_DESC : MSA_3R_DESC_BASE<"bneg.d", int_mips_bneg_d, MSA128D>; 1106 1107class BNEGI_B_DESC : MSA_BIT_B_DESC_BASE<"bnegi.b", int_mips_bnegi_b, MSA128B>; 1108class BNEGI_H_DESC : MSA_BIT_H_DESC_BASE<"bnegi.h", int_mips_bnegi_h, MSA128H>; 1109class BNEGI_W_DESC : MSA_BIT_W_DESC_BASE<"bnegi.w", int_mips_bnegi_w, MSA128W>; 1110class BNEGI_D_DESC : MSA_BIT_D_DESC_BASE<"bnegi.d", int_mips_bnegi_d, MSA128D>; 1111 1112class BNZ_B_DESC : MSA_CBRANCH_DESC_BASE<"bnz.b", MSA128B>; 1113class BNZ_H_DESC : MSA_CBRANCH_DESC_BASE<"bnz.h", MSA128H>; 1114class BNZ_W_DESC : MSA_CBRANCH_DESC_BASE<"bnz.w", MSA128W>; 1115class BNZ_D_DESC : MSA_CBRANCH_DESC_BASE<"bnz.d", MSA128D>; 1116 1117class BNZ_V_DESC : MSA_CBRANCH_DESC_BASE<"bnz.v", MSA128B>; 1118 1119class BSEL_V_DESC : MSA_VEC_DESC_BASE<"bsel.v", int_mips_bsel_v, 1120 MSA128B, MSA128B>; 1121 1122class BSELI_B_DESC : MSA_I8_DESC_BASE<"bseli.b", int_mips_bseli_b, MSA128B>; 1123 1124class BSET_B_DESC : MSA_3R_DESC_BASE<"bset.b", int_mips_bset_b, MSA128B>; 1125class BSET_H_DESC : MSA_3R_DESC_BASE<"bset.h", int_mips_bset_h, MSA128H>; 1126class BSET_W_DESC : MSA_3R_DESC_BASE<"bset.w", int_mips_bset_w, MSA128W>; 1127class BSET_D_DESC : MSA_3R_DESC_BASE<"bset.d", int_mips_bset_d, MSA128D>; 1128 1129class BSETI_B_DESC : MSA_BIT_B_DESC_BASE<"bseti.b", int_mips_bseti_b, MSA128B>; 1130class BSETI_H_DESC : MSA_BIT_H_DESC_BASE<"bseti.h", int_mips_bseti_h, MSA128H>; 1131class BSETI_W_DESC : MSA_BIT_W_DESC_BASE<"bseti.w", int_mips_bseti_w, MSA128W>; 1132class BSETI_D_DESC : MSA_BIT_D_DESC_BASE<"bseti.d", int_mips_bseti_d, MSA128D>; 1133 1134class BZ_B_DESC : MSA_CBRANCH_DESC_BASE<"bz.b", MSA128B>; 1135class BZ_H_DESC : MSA_CBRANCH_DESC_BASE<"bz.h", MSA128H>; 1136class BZ_W_DESC : MSA_CBRANCH_DESC_BASE<"bz.w", MSA128W>; 1137class BZ_D_DESC : MSA_CBRANCH_DESC_BASE<"bz.d", MSA128D>; 1138 1139class BZ_V_DESC : MSA_CBRANCH_DESC_BASE<"bz.v", MSA128B>; 1140 1141class CEQ_B_DESC : MSA_3R_DESC_BASE<"ceq.b", int_mips_ceq_b, MSA128B>, 1142 IsCommutable; 1143class CEQ_H_DESC : MSA_3R_DESC_BASE<"ceq.h", int_mips_ceq_h, MSA128H>, 1144 IsCommutable; 1145class CEQ_W_DESC : MSA_3R_DESC_BASE<"ceq.w", int_mips_ceq_w, MSA128W>, 1146 IsCommutable; 1147class CEQ_D_DESC : MSA_3R_DESC_BASE<"ceq.d", int_mips_ceq_d, MSA128D>, 1148 IsCommutable; 1149 1150class CEQI_B_DESC : MSA_SI5_DESC_BASE<"ceqi.b", int_mips_ceqi_b, MSA128B>; 1151class CEQI_H_DESC : MSA_SI5_DESC_BASE<"ceqi.h", int_mips_ceqi_h, MSA128H>; 1152class CEQI_W_DESC : MSA_SI5_DESC_BASE<"ceqi.w", int_mips_ceqi_w, MSA128W>; 1153class CEQI_D_DESC : MSA_SI5_DESC_BASE<"ceqi.d", int_mips_ceqi_d, MSA128D>; 1154 1155class CFCMSA_DESC { 1156 dag OutOperandList = (outs GPR32:$rd); 1157 dag InOperandList = (ins MSACtrl:$cs); 1158 string AsmString = "cfcmsa\t$rd, $cs"; 1159 InstrItinClass Itinerary = NoItinerary; 1160 bit hasSideEffects = 1; 1161} 1162 1163class CLE_S_B_DESC : MSA_3R_DESC_BASE<"cle_s.b", int_mips_cle_s_b, MSA128B>; 1164class CLE_S_H_DESC : MSA_3R_DESC_BASE<"cle_s.h", int_mips_cle_s_h, MSA128H>; 1165class CLE_S_W_DESC : MSA_3R_DESC_BASE<"cle_s.w", int_mips_cle_s_w, MSA128W>; 1166class CLE_S_D_DESC : MSA_3R_DESC_BASE<"cle_s.d", int_mips_cle_s_d, MSA128D>; 1167 1168class CLE_U_B_DESC : MSA_3R_DESC_BASE<"cle_u.b", int_mips_cle_u_b, MSA128B>; 1169class CLE_U_H_DESC : MSA_3R_DESC_BASE<"cle_u.h", int_mips_cle_u_h, MSA128H>; 1170class CLE_U_W_DESC : MSA_3R_DESC_BASE<"cle_u.w", int_mips_cle_u_w, MSA128W>; 1171class CLE_U_D_DESC : MSA_3R_DESC_BASE<"cle_u.d", int_mips_cle_u_d, MSA128D>; 1172 1173class CLEI_S_B_DESC : MSA_SI5_DESC_BASE<"clei_s.b", int_mips_clei_s_b, 1174 MSA128B>; 1175class CLEI_S_H_DESC : MSA_SI5_DESC_BASE<"clei_s.h", int_mips_clei_s_h, 1176 MSA128H>; 1177class CLEI_S_W_DESC : MSA_SI5_DESC_BASE<"clei_s.w", int_mips_clei_s_w, 1178 MSA128W>; 1179class CLEI_S_D_DESC : MSA_SI5_DESC_BASE<"clei_s.d", int_mips_clei_s_d, 1180 MSA128D>; 1181 1182class CLEI_U_B_DESC : MSA_SI5_DESC_BASE<"clei_u.b", int_mips_clei_u_b, 1183 MSA128B>; 1184class CLEI_U_H_DESC : MSA_SI5_DESC_BASE<"clei_u.h", int_mips_clei_u_h, 1185 MSA128H>; 1186class CLEI_U_W_DESC : MSA_SI5_DESC_BASE<"clei_u.w", int_mips_clei_u_w, 1187 MSA128W>; 1188class CLEI_U_D_DESC : MSA_SI5_DESC_BASE<"clei_u.d", int_mips_clei_u_d, 1189 MSA128D>; 1190 1191class CLT_S_B_DESC : MSA_3R_DESC_BASE<"clt_s.b", int_mips_clt_s_b, MSA128B>; 1192class CLT_S_H_DESC : MSA_3R_DESC_BASE<"clt_s.h", int_mips_clt_s_h, MSA128H>; 1193class CLT_S_W_DESC : MSA_3R_DESC_BASE<"clt_s.w", int_mips_clt_s_w, MSA128W>; 1194class CLT_S_D_DESC : MSA_3R_DESC_BASE<"clt_s.d", int_mips_clt_s_d, MSA128D>; 1195 1196class CLT_U_B_DESC : MSA_3R_DESC_BASE<"clt_u.b", int_mips_clt_u_b, MSA128B>; 1197class CLT_U_H_DESC : MSA_3R_DESC_BASE<"clt_u.h", int_mips_clt_u_h, MSA128H>; 1198class CLT_U_W_DESC : MSA_3R_DESC_BASE<"clt_u.w", int_mips_clt_u_w, MSA128W>; 1199class CLT_U_D_DESC : MSA_3R_DESC_BASE<"clt_u.d", int_mips_clt_u_d, MSA128D>; 1200 1201class CLTI_S_B_DESC : MSA_SI5_DESC_BASE<"clti_s.b", int_mips_clti_s_b, 1202 MSA128B>; 1203class CLTI_S_H_DESC : MSA_SI5_DESC_BASE<"clti_s.h", int_mips_clti_s_h, 1204 MSA128H>; 1205class CLTI_S_W_DESC : MSA_SI5_DESC_BASE<"clti_s.w", int_mips_clti_s_w, 1206 MSA128W>; 1207class CLTI_S_D_DESC : MSA_SI5_DESC_BASE<"clti_s.d", int_mips_clti_s_d, 1208 MSA128D>; 1209 1210class CLTI_U_B_DESC : MSA_SI5_DESC_BASE<"clti_u.b", int_mips_clti_u_b, 1211 MSA128B>; 1212class CLTI_U_H_DESC : MSA_SI5_DESC_BASE<"clti_u.h", int_mips_clti_u_h, 1213 MSA128H>; 1214class CLTI_U_W_DESC : MSA_SI5_DESC_BASE<"clti_u.w", int_mips_clti_u_w, 1215 MSA128W>; 1216class CLTI_U_D_DESC : MSA_SI5_DESC_BASE<"clti_u.d", int_mips_clti_u_d, 1217 MSA128D>; 1218 1219class COPY_S_B_DESC : MSA_COPY_DESC_BASE<"copy_s.b", int_mips_copy_s_b, 1220 GPR32, MSA128B>; 1221class COPY_S_H_DESC : MSA_COPY_DESC_BASE<"copy_s.h", int_mips_copy_s_h, 1222 GPR32, MSA128H>; 1223class COPY_S_W_DESC : MSA_COPY_DESC_BASE<"copy_s.w", int_mips_copy_s_w, 1224 GPR32, MSA128W>; 1225 1226class COPY_U_B_DESC : MSA_COPY_DESC_BASE<"copy_u.b", int_mips_copy_u_b, 1227 GPR32, MSA128B>; 1228class COPY_U_H_DESC : MSA_COPY_DESC_BASE<"copy_u.h", int_mips_copy_u_h, 1229 GPR32, MSA128H>; 1230class COPY_U_W_DESC : MSA_COPY_DESC_BASE<"copy_u.w", int_mips_copy_u_w, 1231 GPR32, MSA128W>; 1232 1233class CTCMSA_DESC { 1234 dag OutOperandList = (outs); 1235 dag InOperandList = (ins MSACtrl:$cd, GPR32:$rs); 1236 string AsmString = "ctcmsa\t$cd, $rs"; 1237 InstrItinClass Itinerary = NoItinerary; 1238 bit hasSideEffects = 1; 1239} 1240 1241class DIV_S_B_DESC : MSA_3R_DESC_BASE<"div_s.b", int_mips_div_s_b, MSA128B>; 1242class DIV_S_H_DESC : MSA_3R_DESC_BASE<"div_s.h", int_mips_div_s_h, MSA128H>; 1243class DIV_S_W_DESC : MSA_3R_DESC_BASE<"div_s.w", int_mips_div_s_w, MSA128W>; 1244class DIV_S_D_DESC : MSA_3R_DESC_BASE<"div_s.d", int_mips_div_s_d, MSA128D>; 1245 1246class DIV_U_B_DESC : MSA_3R_DESC_BASE<"div_u.b", int_mips_div_u_b, MSA128B>; 1247class DIV_U_H_DESC : MSA_3R_DESC_BASE<"div_u.h", int_mips_div_u_h, MSA128H>; 1248class DIV_U_W_DESC : MSA_3R_DESC_BASE<"div_u.w", int_mips_div_u_w, MSA128W>; 1249class DIV_U_D_DESC : MSA_3R_DESC_BASE<"div_u.d", int_mips_div_u_d, MSA128D>; 1250 1251class DOTP_S_B_DESC : MSA_3R_DESC_BASE<"dotp_s.b", int_mips_dotp_s_b, MSA128B>, 1252 IsCommutable; 1253class DOTP_S_H_DESC : MSA_3R_DESC_BASE<"dotp_s.h", int_mips_dotp_s_h, MSA128H>, 1254 IsCommutable; 1255class DOTP_S_W_DESC : MSA_3R_DESC_BASE<"dotp_s.w", int_mips_dotp_s_w, MSA128W>, 1256 IsCommutable; 1257class DOTP_S_D_DESC : MSA_3R_DESC_BASE<"dotp_s.d", int_mips_dotp_s_d, MSA128D>, 1258 IsCommutable; 1259 1260class DOTP_U_B_DESC : MSA_3R_DESC_BASE<"dotp_u.b", int_mips_dotp_u_b, MSA128B>, 1261 IsCommutable; 1262class DOTP_U_H_DESC : MSA_3R_DESC_BASE<"dotp_u.h", int_mips_dotp_u_h, MSA128H>, 1263 IsCommutable; 1264class DOTP_U_W_DESC : MSA_3R_DESC_BASE<"dotp_u.w", int_mips_dotp_u_w, MSA128W>, 1265 IsCommutable; 1266class DOTP_U_D_DESC : MSA_3R_DESC_BASE<"dotp_u.d", int_mips_dotp_u_d, MSA128D>, 1267 IsCommutable; 1268 1269class DPADD_S_H_DESC : MSA_3R_4R_DESC_BASE<"dpadd_s.h", int_mips_dpadd_s_h, 1270 MSA128H, MSA128B, MSA128B>, 1271 IsCommutable; 1272class DPADD_S_W_DESC : MSA_3R_4R_DESC_BASE<"dpadd_s.w", int_mips_dpadd_s_w, 1273 MSA128W, MSA128H, MSA128H>, 1274 IsCommutable; 1275class DPADD_S_D_DESC : MSA_3R_4R_DESC_BASE<"dpadd_s.d", int_mips_dpadd_s_d, 1276 MSA128D, MSA128W, MSA128W>, 1277 IsCommutable; 1278 1279class DPADD_U_H_DESC : MSA_3R_4R_DESC_BASE<"dpadd_u.h", int_mips_dpadd_u_h, 1280 MSA128H, MSA128B, MSA128B>, 1281 IsCommutable; 1282class DPADD_U_W_DESC : MSA_3R_4R_DESC_BASE<"dpadd_u.w", int_mips_dpadd_u_w, 1283 MSA128W, MSA128H, MSA128H>, 1284 IsCommutable; 1285class DPADD_U_D_DESC : MSA_3R_4R_DESC_BASE<"dpadd_u.d", int_mips_dpadd_u_d, 1286 MSA128D, MSA128W, MSA128W>, 1287 IsCommutable; 1288 1289class DPSUB_S_H_DESC : MSA_3R_4R_DESC_BASE<"dpsub_s.h", int_mips_dpsub_s_h, 1290 MSA128H, MSA128B, MSA128B>; 1291class DPSUB_S_W_DESC : MSA_3R_4R_DESC_BASE<"dpsub_s.w", int_mips_dpsub_s_w, 1292 MSA128W, MSA128H, MSA128H>; 1293class DPSUB_S_D_DESC : MSA_3R_4R_DESC_BASE<"dpsub_s.d", int_mips_dpsub_s_d, 1294 MSA128D, MSA128W, MSA128W>; 1295 1296class DPSUB_U_H_DESC : MSA_3R_4R_DESC_BASE<"dpsub_u.h", int_mips_dpsub_u_h, 1297 MSA128H, MSA128B, MSA128B>; 1298class DPSUB_U_W_DESC : MSA_3R_4R_DESC_BASE<"dpsub_u.w", int_mips_dpsub_u_w, 1299 MSA128W, MSA128H, MSA128H>; 1300class DPSUB_U_D_DESC : MSA_3R_4R_DESC_BASE<"dpsub_u.d", int_mips_dpsub_u_d, 1301 MSA128D, MSA128W, MSA128W>; 1302 1303class FADD_W_DESC : MSA_3RF_DESC_BASE<"fadd.w", int_mips_fadd_w, MSA128W>, 1304 IsCommutable; 1305class FADD_D_DESC : MSA_3RF_DESC_BASE<"fadd.d", int_mips_fadd_d, MSA128D>, 1306 IsCommutable; 1307 1308class FCAF_W_DESC : MSA_3RF_DESC_BASE<"fcaf.w", int_mips_fcaf_w, MSA128W>, 1309 IsCommutable; 1310class FCAF_D_DESC : MSA_3RF_DESC_BASE<"fcaf.d", int_mips_fcaf_d, MSA128D>, 1311 IsCommutable; 1312 1313class FCEQ_W_DESC : MSA_3RF_DESC_BASE<"fceq.w", int_mips_fceq_w, MSA128W>, 1314 IsCommutable; 1315class FCEQ_D_DESC : MSA_3RF_DESC_BASE<"fceq.d", int_mips_fceq_d, MSA128D>, 1316 IsCommutable; 1317 1318class FCLASS_W_DESC : MSA_2RF_DESC_BASE<"fclass.w", int_mips_fclass_w, 1319 MSA128W>; 1320class FCLASS_D_DESC : MSA_2RF_DESC_BASE<"fclass.d", int_mips_fclass_d, 1321 MSA128D>; 1322 1323class FCLE_W_DESC : MSA_3RF_DESC_BASE<"fcle.w", int_mips_fcle_w, MSA128W>; 1324class FCLE_D_DESC : MSA_3RF_DESC_BASE<"fcle.d", int_mips_fcle_d, MSA128D>; 1325 1326class FCLT_W_DESC : MSA_3RF_DESC_BASE<"fclt.w", int_mips_fclt_w, MSA128W>; 1327class FCLT_D_DESC : MSA_3RF_DESC_BASE<"fclt.d", int_mips_fclt_d, MSA128D>; 1328 1329class FCNE_W_DESC : MSA_3RF_DESC_BASE<"fcne.w", int_mips_fcne_w, MSA128W>, 1330 IsCommutable; 1331class FCNE_D_DESC : MSA_3RF_DESC_BASE<"fcne.d", int_mips_fcne_d, MSA128D>, 1332 IsCommutable; 1333 1334class FCOR_W_DESC : MSA_3RF_DESC_BASE<"fcor.w", int_mips_fcor_w, MSA128W>, 1335 IsCommutable; 1336class FCOR_D_DESC : MSA_3RF_DESC_BASE<"fcor.d", int_mips_fcor_d, MSA128D>, 1337 IsCommutable; 1338 1339class FCUEQ_W_DESC : MSA_3RF_DESC_BASE<"fcueq.w", int_mips_fcueq_w, MSA128W>, 1340 IsCommutable; 1341class FCUEQ_D_DESC : MSA_3RF_DESC_BASE<"fcueq.d", int_mips_fcueq_d, MSA128D>, 1342 IsCommutable; 1343 1344class FCULE_W_DESC : MSA_3RF_DESC_BASE<"fcule.w", int_mips_fcule_w, MSA128W>, 1345 IsCommutable; 1346class FCULE_D_DESC : MSA_3RF_DESC_BASE<"fcule.d", int_mips_fcule_d, MSA128D>, 1347 IsCommutable; 1348 1349class FCULT_W_DESC : MSA_3RF_DESC_BASE<"fcult.w", int_mips_fcult_w, MSA128W>, 1350 IsCommutable; 1351class FCULT_D_DESC : MSA_3RF_DESC_BASE<"fcult.d", int_mips_fcult_d, MSA128D>, 1352 IsCommutable; 1353 1354class FCUN_W_DESC : MSA_3RF_DESC_BASE<"fcun.w", int_mips_fcun_w, MSA128W>, 1355 IsCommutable; 1356class FCUN_D_DESC : MSA_3RF_DESC_BASE<"fcun.d", int_mips_fcun_d, MSA128D>, 1357 IsCommutable; 1358 1359class FCUNE_W_DESC : MSA_3RF_DESC_BASE<"fcune.w", int_mips_fcune_w, MSA128W>, 1360 IsCommutable; 1361class FCUNE_D_DESC : MSA_3RF_DESC_BASE<"fcune.d", int_mips_fcune_d, MSA128D>, 1362 IsCommutable; 1363 1364class FDIV_W_DESC : MSA_3RF_DESC_BASE<"fdiv.w", int_mips_fdiv_w, MSA128W>; 1365class FDIV_D_DESC : MSA_3RF_DESC_BASE<"fdiv.d", int_mips_fdiv_d, MSA128D>; 1366 1367class FEXDO_H_DESC : MSA_3RF_DESC_BASE<"fexdo.h", int_mips_fexdo_h, 1368 MSA128H, MSA128W, MSA128W>; 1369class FEXDO_W_DESC : MSA_3RF_DESC_BASE<"fexdo.w", int_mips_fexdo_w, 1370 MSA128W, MSA128D, MSA128D>; 1371 1372class FEXP2_W_DESC : MSA_3RF_DESC_BASE<"fexp2.w", int_mips_fexp2_w, MSA128W>; 1373class FEXP2_D_DESC : MSA_3RF_DESC_BASE<"fexp2.d", int_mips_fexp2_d, MSA128D>; 1374 1375class FEXUPL_W_DESC : MSA_2RF_DESC_BASE<"fexupl.w", int_mips_fexupl_w, 1376 MSA128W, MSA128H>; 1377class FEXUPL_D_DESC : MSA_2RF_DESC_BASE<"fexupl.d", int_mips_fexupl_d, 1378 MSA128D, MSA128W>; 1379 1380class FEXUPR_W_DESC : MSA_2RF_DESC_BASE<"fexupr.w", int_mips_fexupr_w, 1381 MSA128W, MSA128H>; 1382class FEXUPR_D_DESC : MSA_2RF_DESC_BASE<"fexupr.d", int_mips_fexupr_d, 1383 MSA128D, MSA128W>; 1384 1385class FFINT_S_W_DESC : MSA_2RF_DESC_BASE<"ffint_s.w", int_mips_ffint_s_w, 1386 MSA128W>; 1387class FFINT_S_D_DESC : MSA_2RF_DESC_BASE<"ffint_s.d", int_mips_ffint_s_d, 1388 MSA128D>; 1389 1390class FFINT_U_W_DESC : MSA_2RF_DESC_BASE<"ffint_u.w", int_mips_ffint_u_w, 1391 MSA128W>; 1392class FFINT_U_D_DESC : MSA_2RF_DESC_BASE<"ffint_u.d", int_mips_ffint_u_d, 1393 MSA128D>; 1394 1395class FFQL_W_DESC : MSA_2RF_DESC_BASE<"ffql.w", int_mips_ffql_w, 1396 MSA128W, MSA128H>; 1397class FFQL_D_DESC : MSA_2RF_DESC_BASE<"ffql.d", int_mips_ffql_d, 1398 MSA128D, MSA128W>; 1399 1400class FFQR_W_DESC : MSA_2RF_DESC_BASE<"ffqr.w", int_mips_ffqr_w, 1401 MSA128W, MSA128H>; 1402class FFQR_D_DESC : MSA_2RF_DESC_BASE<"ffqr.d", int_mips_ffqr_d, 1403 MSA128D, MSA128W>; 1404 1405class FILL_B_DESC : MSA_2R_DESC_BASE<"fill.b", int_mips_fill_b, 1406 MSA128B, GPR32>; 1407class FILL_H_DESC : MSA_2R_DESC_BASE<"fill.h", int_mips_fill_h, 1408 MSA128H, GPR32>; 1409class FILL_W_DESC : MSA_2R_DESC_BASE<"fill.w", int_mips_fill_w, 1410 MSA128W, GPR32>; 1411 1412class FLOG2_W_DESC : MSA_2RF_DESC_BASE<"flog2.w", int_mips_flog2_w, MSA128W>; 1413class FLOG2_D_DESC : MSA_2RF_DESC_BASE<"flog2.d", int_mips_flog2_d, MSA128D>; 1414 1415class FMADD_W_DESC : MSA_3RF_4RF_DESC_BASE<"fmadd.w", int_mips_fmadd_w, 1416 MSA128W, MSA128W>; 1417class FMADD_D_DESC : MSA_3RF_4RF_DESC_BASE<"fmadd.d", int_mips_fmadd_d, 1418 MSA128D, MSA128D>; 1419 1420class FMAX_W_DESC : MSA_3RF_DESC_BASE<"fmax.w", int_mips_fmax_w, MSA128W>; 1421class FMAX_D_DESC : MSA_3RF_DESC_BASE<"fmax.d", int_mips_fmax_d, MSA128D>; 1422 1423class FMAX_A_W_DESC : MSA_3RF_DESC_BASE<"fmax_a.w", int_mips_fmax_a_w, 1424 MSA128W>; 1425class FMAX_A_D_DESC : MSA_3RF_DESC_BASE<"fmax_a.d", int_mips_fmax_a_d, 1426 MSA128D>; 1427 1428class FMIN_W_DESC : MSA_3RF_DESC_BASE<"fmin.w", int_mips_fmin_w, MSA128W>; 1429class FMIN_D_DESC : MSA_3RF_DESC_BASE<"fmin.d", int_mips_fmin_d, MSA128D>; 1430 1431class FMIN_A_W_DESC : MSA_3RF_DESC_BASE<"fmin_a.w", int_mips_fmin_a_w, 1432 MSA128W>; 1433class FMIN_A_D_DESC : MSA_3RF_DESC_BASE<"fmin_a.d", int_mips_fmin_a_d, 1434 MSA128D>; 1435 1436class FMSUB_W_DESC : MSA_3RF_4RF_DESC_BASE<"fmsub.w", int_mips_fmsub_w, 1437 MSA128W, MSA128W>; 1438class FMSUB_D_DESC : MSA_3RF_4RF_DESC_BASE<"fmsub.d", int_mips_fmsub_d, 1439 MSA128D, MSA128D>; 1440 1441class FMUL_W_DESC : MSA_3RF_DESC_BASE<"fmul.w", int_mips_fmul_w, MSA128W>; 1442class FMUL_D_DESC : MSA_3RF_DESC_BASE<"fmul.d", int_mips_fmul_d, MSA128D>; 1443 1444class FRINT_W_DESC : MSA_2RF_DESC_BASE<"frint.w", int_mips_frint_w, MSA128W>; 1445class FRINT_D_DESC : MSA_2RF_DESC_BASE<"frint.d", int_mips_frint_d, MSA128D>; 1446 1447class FRCP_W_DESC : MSA_2RF_DESC_BASE<"frcp.w", int_mips_frcp_w, MSA128W>; 1448class FRCP_D_DESC : MSA_2RF_DESC_BASE<"frcp.d", int_mips_frcp_d, MSA128D>; 1449 1450class FRSQRT_W_DESC : MSA_2RF_DESC_BASE<"frsqrt.w", int_mips_frsqrt_w, 1451 MSA128W>; 1452class FRSQRT_D_DESC : MSA_2RF_DESC_BASE<"frsqrt.d", int_mips_frsqrt_d, 1453 MSA128D>; 1454 1455class FSAF_W_DESC : MSA_3RF_DESC_BASE<"fsaf.w", int_mips_fsaf_w, MSA128W>; 1456class FSAF_D_DESC : MSA_3RF_DESC_BASE<"fsaf.d", int_mips_fsaf_d, MSA128D>; 1457 1458class FSEQ_W_DESC : MSA_3RF_DESC_BASE<"fseq.w", int_mips_fseq_w, MSA128W>; 1459class FSEQ_D_DESC : MSA_3RF_DESC_BASE<"fseq.d", int_mips_fseq_d, MSA128D>; 1460 1461class FSLE_W_DESC : MSA_3RF_DESC_BASE<"fsle.w", int_mips_fsle_w, MSA128W>; 1462class FSLE_D_DESC : MSA_3RF_DESC_BASE<"fsle.d", int_mips_fsle_d, MSA128D>; 1463 1464class FSLT_W_DESC : MSA_3RF_DESC_BASE<"fslt.w", int_mips_fslt_w, MSA128W>; 1465class FSLT_D_DESC : MSA_3RF_DESC_BASE<"fslt.d", int_mips_fslt_d, MSA128D>; 1466 1467class FSNE_W_DESC : MSA_3RF_DESC_BASE<"fsne.w", int_mips_fsne_w, MSA128W>; 1468class FSNE_D_DESC : MSA_3RF_DESC_BASE<"fsne.d", int_mips_fsne_d, MSA128D>; 1469 1470class FSOR_W_DESC : MSA_3RF_DESC_BASE<"fsor.w", int_mips_fsor_w, MSA128W>; 1471class FSOR_D_DESC : MSA_3RF_DESC_BASE<"fsor.d", int_mips_fsor_d, MSA128D>; 1472 1473class FSQRT_W_DESC : MSA_2RF_DESC_BASE<"fsqrt.w", int_mips_fsqrt_w, MSA128W>; 1474class FSQRT_D_DESC : MSA_2RF_DESC_BASE<"fsqrt.d", int_mips_fsqrt_d, MSA128D>; 1475 1476class FSUB_W_DESC : MSA_3RF_DESC_BASE<"fsub.w", int_mips_fsub_w, MSA128W>; 1477class FSUB_D_DESC : MSA_3RF_DESC_BASE<"fsub.d", int_mips_fsub_d, MSA128D>; 1478 1479class FSUEQ_W_DESC : MSA_3RF_DESC_BASE<"fsueq.w", int_mips_fsueq_w, MSA128W>; 1480class FSUEQ_D_DESC : MSA_3RF_DESC_BASE<"fsueq.d", int_mips_fsueq_d, MSA128D>; 1481 1482class FSULE_W_DESC : MSA_3RF_DESC_BASE<"fsule.w", int_mips_fsule_w, MSA128W>; 1483class FSULE_D_DESC : MSA_3RF_DESC_BASE<"fsule.d", int_mips_fsule_d, MSA128D>; 1484 1485class FSULT_W_DESC : MSA_3RF_DESC_BASE<"fsult.w", int_mips_fsult_w, MSA128W>; 1486class FSULT_D_DESC : MSA_3RF_DESC_BASE<"fsult.d", int_mips_fsult_d, MSA128D>; 1487 1488class FSUN_W_DESC : MSA_3RF_DESC_BASE<"fsun.w", int_mips_fsun_w, MSA128W>; 1489class FSUN_D_DESC : MSA_3RF_DESC_BASE<"fsun.d", int_mips_fsun_d, MSA128D>; 1490 1491class FSUNE_W_DESC : MSA_3RF_DESC_BASE<"fsune.w", int_mips_fsune_w, MSA128W>; 1492class FSUNE_D_DESC : MSA_3RF_DESC_BASE<"fsune.d", int_mips_fsune_d, MSA128D>; 1493 1494class FTRUNC_S_W_DESC : MSA_2RF_DESC_BASE<"ftrunc_s.w", int_mips_ftrunc_s_w, 1495 MSA128W>; 1496class FTRUNC_S_D_DESC : MSA_2RF_DESC_BASE<"ftrunc_s.d", int_mips_ftrunc_s_d, 1497 MSA128D>; 1498 1499class FTRUNC_U_W_DESC : MSA_2RF_DESC_BASE<"ftrunc_u.w", int_mips_ftrunc_u_w, 1500 MSA128W>; 1501class FTRUNC_U_D_DESC : MSA_2RF_DESC_BASE<"ftrunc_u.d", int_mips_ftrunc_u_d, 1502 MSA128D>; 1503 1504class FTINT_S_W_DESC : MSA_2RF_DESC_BASE<"ftint_s.w", int_mips_ftint_s_w, 1505 MSA128W>; 1506class FTINT_S_D_DESC : MSA_2RF_DESC_BASE<"ftint_s.d", int_mips_ftint_s_d, 1507 MSA128D>; 1508 1509class FTINT_U_W_DESC : MSA_2RF_DESC_BASE<"ftint_u.w", int_mips_ftint_u_w, 1510 MSA128W>; 1511class FTINT_U_D_DESC : MSA_2RF_DESC_BASE<"ftint_u.d", int_mips_ftint_u_d, 1512 MSA128D>; 1513 1514class FTQ_H_DESC : MSA_3RF_DESC_BASE<"ftq.h", int_mips_ftq_h, 1515 MSA128H, MSA128W, MSA128W>; 1516class FTQ_W_DESC : MSA_3RF_DESC_BASE<"ftq.w", int_mips_ftq_w, 1517 MSA128W, MSA128D, MSA128D>; 1518 1519class HADD_S_H_DESC : MSA_3R_DESC_BASE<"hadd_s.h", int_mips_hadd_s_h, MSA128H, 1520 MSA128B, MSA128B>; 1521class HADD_S_W_DESC : MSA_3R_DESC_BASE<"hadd_s.w", int_mips_hadd_s_w, MSA128W, 1522 MSA128H, MSA128H>; 1523class HADD_S_D_DESC : MSA_3R_DESC_BASE<"hadd_s.d", int_mips_hadd_s_d, MSA128D, 1524 MSA128W, MSA128W>; 1525 1526class HADD_U_H_DESC : MSA_3R_DESC_BASE<"hadd_u.h", int_mips_hadd_u_h, MSA128H, 1527 MSA128B, MSA128B>; 1528class HADD_U_W_DESC : MSA_3R_DESC_BASE<"hadd_u.w", int_mips_hadd_u_w, MSA128W, 1529 MSA128H, MSA128H>; 1530class HADD_U_D_DESC : MSA_3R_DESC_BASE<"hadd_u.d", int_mips_hadd_u_d, MSA128D, 1531 MSA128W, MSA128W>; 1532 1533class HSUB_S_H_DESC : MSA_3R_DESC_BASE<"hsub_s.h", int_mips_hsub_s_h, MSA128H, 1534 MSA128B, MSA128B>; 1535class HSUB_S_W_DESC : MSA_3R_DESC_BASE<"hsub_s.w", int_mips_hsub_s_w, MSA128W, 1536 MSA128H, MSA128H>; 1537class HSUB_S_D_DESC : MSA_3R_DESC_BASE<"hsub_s.d", int_mips_hsub_s_d, MSA128D, 1538 MSA128W, MSA128W>; 1539 1540class HSUB_U_H_DESC : MSA_3R_DESC_BASE<"hsub_u.h", int_mips_hsub_u_h, MSA128H, 1541 MSA128B, MSA128B>; 1542class HSUB_U_W_DESC : MSA_3R_DESC_BASE<"hsub_u.w", int_mips_hsub_u_w, MSA128W, 1543 MSA128H, MSA128H>; 1544class HSUB_U_D_DESC : MSA_3R_DESC_BASE<"hsub_u.d", int_mips_hsub_u_d, MSA128D, 1545 MSA128W, MSA128W>; 1546 1547class ILVEV_B_DESC : MSA_3R_DESC_BASE<"ilvev.b", int_mips_ilvev_b, MSA128B>; 1548class ILVEV_H_DESC : MSA_3R_DESC_BASE<"ilvev.h", int_mips_ilvev_h, MSA128H>; 1549class ILVEV_W_DESC : MSA_3R_DESC_BASE<"ilvev.w", int_mips_ilvev_w, MSA128W>; 1550class ILVEV_D_DESC : MSA_3R_DESC_BASE<"ilvev.d", int_mips_ilvev_d, MSA128D>; 1551 1552class ILVL_B_DESC : MSA_3R_DESC_BASE<"ilvl.b", int_mips_ilvl_b, MSA128B>; 1553class ILVL_H_DESC : MSA_3R_DESC_BASE<"ilvl.h", int_mips_ilvl_h, MSA128H>; 1554class ILVL_W_DESC : MSA_3R_DESC_BASE<"ilvl.w", int_mips_ilvl_w, MSA128W>; 1555class ILVL_D_DESC : MSA_3R_DESC_BASE<"ilvl.d", int_mips_ilvl_d, MSA128D>; 1556 1557class ILVOD_B_DESC : MSA_3R_DESC_BASE<"ilvod.b", int_mips_ilvod_b, MSA128B>; 1558class ILVOD_H_DESC : MSA_3R_DESC_BASE<"ilvod.h", int_mips_ilvod_h, MSA128H>; 1559class ILVOD_W_DESC : MSA_3R_DESC_BASE<"ilvod.w", int_mips_ilvod_w, MSA128W>; 1560class ILVOD_D_DESC : MSA_3R_DESC_BASE<"ilvod.d", int_mips_ilvod_d, MSA128D>; 1561 1562class ILVR_B_DESC : MSA_3R_DESC_BASE<"ilvr.b", int_mips_ilvr_b, MSA128B>; 1563class ILVR_H_DESC : MSA_3R_DESC_BASE<"ilvr.h", int_mips_ilvr_h, MSA128H>; 1564class ILVR_W_DESC : MSA_3R_DESC_BASE<"ilvr.w", int_mips_ilvr_w, MSA128W>; 1565class ILVR_D_DESC : MSA_3R_DESC_BASE<"ilvr.d", int_mips_ilvr_d, MSA128D>; 1566 1567class INSERT_B_DESC : MSA_INSERT_DESC_BASE<"insert.b", int_mips_insert_b, 1568 MSA128B, GPR32>; 1569class INSERT_H_DESC : MSA_INSERT_DESC_BASE<"insert.h", int_mips_insert_h, 1570 MSA128H, GPR32>; 1571class INSERT_W_DESC : MSA_INSERT_DESC_BASE<"insert.w", int_mips_insert_w, 1572 MSA128W, GPR32>; 1573 1574class INSVE_B_DESC : MSA_INSVE_DESC_BASE<"insve.b", int_mips_insve_b, 1575 MSA128B, MSA128B>; 1576class INSVE_H_DESC : MSA_INSVE_DESC_BASE<"insve.h", int_mips_insve_h, 1577 MSA128H, MSA128H>; 1578class INSVE_W_DESC : MSA_INSVE_DESC_BASE<"insve.w", int_mips_insve_w, 1579 MSA128W, MSA128W>; 1580class INSVE_D_DESC : MSA_INSVE_DESC_BASE<"insve.d", int_mips_insve_d, 1581 MSA128D, MSA128D>; 1582 1583class LD_DESC_BASE<string instr_asm, SDPatternOperator OpNode, 1584 ValueType TyNode, RegisterClass RCWD, 1585 Operand MemOpnd = mem, ComplexPattern Addr = addrRegImm, 1586 InstrItinClass itin = NoItinerary> { 1587 dag OutOperandList = (outs RCWD:$wd); 1588 dag InOperandList = (ins MemOpnd:$addr); 1589 string AsmString = !strconcat(instr_asm, "\t$wd, $addr"); 1590 list<dag> Pattern = [(set RCWD:$wd, (TyNode (OpNode Addr:$addr)))]; 1591 InstrItinClass Itinerary = itin; 1592} 1593 1594class LD_B_DESC : LD_DESC_BASE<"ld.b", load, v16i8, MSA128B>; 1595class LD_H_DESC : LD_DESC_BASE<"ld.h", load, v8i16, MSA128H>; 1596class LD_W_DESC : LD_DESC_BASE<"ld.w", load, v4i32, MSA128W>; 1597class LD_D_DESC : LD_DESC_BASE<"ld.d", load, v2i64, MSA128D>; 1598 1599class LDI_B_DESC : MSA_I10_DESC_BASE<"ldi.b", int_mips_ldi_b, MSA128B>; 1600class LDI_H_DESC : MSA_I10_DESC_BASE<"ldi.h", int_mips_ldi_h, MSA128H>; 1601class LDI_W_DESC : MSA_I10_DESC_BASE<"ldi.w", int_mips_ldi_w, MSA128W>; 1602class LDI_D_DESC : MSA_I10_DESC_BASE<"ldi.d", int_mips_ldi_d, MSA128D>; 1603 1604class LDX_DESC_BASE<string instr_asm, SDPatternOperator OpNode, 1605 ValueType TyNode, RegisterClass RCWD, 1606 Operand MemOpnd = mem, ComplexPattern Addr = addrRegReg, 1607 InstrItinClass itin = NoItinerary> { 1608 dag OutOperandList = (outs RCWD:$wd); 1609 dag InOperandList = (ins MemOpnd:$addr); 1610 string AsmString = !strconcat(instr_asm, "\t$wd, $addr"); 1611 list<dag> Pattern = [(set RCWD:$wd, (TyNode (OpNode Addr:$addr)))]; 1612 InstrItinClass Itinerary = itin; 1613} 1614 1615class LDX_B_DESC : LDX_DESC_BASE<"ldx.b", load, v16i8, MSA128B>; 1616class LDX_H_DESC : LDX_DESC_BASE<"ldx.h", load, v8i16, MSA128H>; 1617class LDX_W_DESC : LDX_DESC_BASE<"ldx.w", load, v4i32, MSA128W>; 1618class LDX_D_DESC : LDX_DESC_BASE<"ldx.d", load, v2i64, MSA128D>; 1619 1620class MADD_Q_H_DESC : MSA_3RF_4RF_DESC_BASE<"madd_q.h", int_mips_madd_q_h, 1621 MSA128H, MSA128H>; 1622class MADD_Q_W_DESC : MSA_3RF_4RF_DESC_BASE<"madd_q.w", int_mips_madd_q_w, 1623 MSA128W, MSA128W>; 1624 1625class MADDR_Q_H_DESC : MSA_3RF_4RF_DESC_BASE<"maddr_q.h", int_mips_maddr_q_h, 1626 MSA128H, MSA128H>; 1627class MADDR_Q_W_DESC : MSA_3RF_4RF_DESC_BASE<"maddr_q.w", int_mips_maddr_q_w, 1628 MSA128W, MSA128W>; 1629 1630class MADDV_B_DESC : MSA_3R_4R_DESC_BASE<"maddv.b", int_mips_maddv_b, MSA128B>; 1631class MADDV_H_DESC : MSA_3R_4R_DESC_BASE<"maddv.h", int_mips_maddv_h, MSA128H>; 1632class MADDV_W_DESC : MSA_3R_4R_DESC_BASE<"maddv.w", int_mips_maddv_w, MSA128W>; 1633class MADDV_D_DESC : MSA_3R_4R_DESC_BASE<"maddv.d", int_mips_maddv_d, MSA128D>; 1634 1635class MAX_A_B_DESC : MSA_3R_DESC_BASE<"max_a.b", int_mips_max_a_b, MSA128B>; 1636class MAX_A_H_DESC : MSA_3R_DESC_BASE<"max_a.h", int_mips_max_a_h, MSA128H>; 1637class MAX_A_W_DESC : MSA_3R_DESC_BASE<"max_a.w", int_mips_max_a_w, MSA128W>; 1638class MAX_A_D_DESC : MSA_3R_DESC_BASE<"max_a.d", int_mips_max_a_d, MSA128D>; 1639 1640class MAX_S_B_DESC : MSA_3R_DESC_BASE<"max_s.b", int_mips_max_s_b, MSA128B>; 1641class MAX_S_H_DESC : MSA_3R_DESC_BASE<"max_s.h", int_mips_max_s_h, MSA128H>; 1642class MAX_S_W_DESC : MSA_3R_DESC_BASE<"max_s.w", int_mips_max_s_w, MSA128W>; 1643class MAX_S_D_DESC : MSA_3R_DESC_BASE<"max_s.d", int_mips_max_s_d, MSA128D>; 1644 1645class MAX_U_B_DESC : MSA_3R_DESC_BASE<"max_u.b", int_mips_max_u_b, MSA128B>; 1646class MAX_U_H_DESC : MSA_3R_DESC_BASE<"max_u.h", int_mips_max_u_h, MSA128H>; 1647class MAX_U_W_DESC : MSA_3R_DESC_BASE<"max_u.w", int_mips_max_u_w, MSA128W>; 1648class MAX_U_D_DESC : MSA_3R_DESC_BASE<"max_u.d", int_mips_max_u_d, MSA128D>; 1649 1650class MAXI_S_B_DESC : MSA_I5_DESC_BASE<"maxi_s.b", int_mips_maxi_s_b, MSA128B>; 1651class MAXI_S_H_DESC : MSA_I5_DESC_BASE<"maxi_s.h", int_mips_maxi_s_h, MSA128H>; 1652class MAXI_S_W_DESC : MSA_I5_DESC_BASE<"maxi_s.w", int_mips_maxi_s_w, MSA128W>; 1653class MAXI_S_D_DESC : MSA_I5_DESC_BASE<"maxi_s.d", int_mips_maxi_s_d, MSA128D>; 1654 1655class MAXI_U_B_DESC : MSA_I5_DESC_BASE<"maxi_u.b", int_mips_maxi_u_b, MSA128B>; 1656class MAXI_U_H_DESC : MSA_I5_DESC_BASE<"maxi_u.h", int_mips_maxi_u_h, MSA128H>; 1657class MAXI_U_W_DESC : MSA_I5_DESC_BASE<"maxi_u.w", int_mips_maxi_u_w, MSA128W>; 1658class MAXI_U_D_DESC : MSA_I5_DESC_BASE<"maxi_u.d", int_mips_maxi_u_d, MSA128D>; 1659 1660class MIN_A_B_DESC : MSA_3R_DESC_BASE<"min_a.b", int_mips_min_a_b, MSA128B>; 1661class MIN_A_H_DESC : MSA_3R_DESC_BASE<"min_a.h", int_mips_min_a_h, MSA128H>; 1662class MIN_A_W_DESC : MSA_3R_DESC_BASE<"min_a.w", int_mips_min_a_w, MSA128W>; 1663class MIN_A_D_DESC : MSA_3R_DESC_BASE<"min_a.d", int_mips_min_a_d, MSA128D>; 1664 1665class MIN_S_B_DESC : MSA_3R_DESC_BASE<"min_s.b", int_mips_min_s_b, MSA128B>; 1666class MIN_S_H_DESC : MSA_3R_DESC_BASE<"min_s.h", int_mips_min_s_h, MSA128H>; 1667class MIN_S_W_DESC : MSA_3R_DESC_BASE<"min_s.w", int_mips_min_s_w, MSA128W>; 1668class MIN_S_D_DESC : MSA_3R_DESC_BASE<"min_s.d", int_mips_min_s_d, MSA128D>; 1669 1670class MIN_U_B_DESC : MSA_3R_DESC_BASE<"min_u.b", int_mips_min_u_b, MSA128B>; 1671class MIN_U_H_DESC : MSA_3R_DESC_BASE<"min_u.h", int_mips_min_u_h, MSA128H>; 1672class MIN_U_W_DESC : MSA_3R_DESC_BASE<"min_u.w", int_mips_min_u_w, MSA128W>; 1673class MIN_U_D_DESC : MSA_3R_DESC_BASE<"min_u.d", int_mips_min_u_d, MSA128D>; 1674 1675class MINI_S_B_DESC : MSA_I5_DESC_BASE<"mini_s.b", int_mips_mini_s_b, MSA128B>; 1676class MINI_S_H_DESC : MSA_I5_DESC_BASE<"mini_s.h", int_mips_mini_s_h, MSA128H>; 1677class MINI_S_W_DESC : MSA_I5_DESC_BASE<"mini_s.w", int_mips_mini_s_w, MSA128W>; 1678class MINI_S_D_DESC : MSA_I5_DESC_BASE<"mini_s.d", int_mips_mini_s_d, MSA128D>; 1679 1680class MINI_U_B_DESC : MSA_I5_DESC_BASE<"mini_u.b", int_mips_mini_u_b, MSA128B>; 1681class MINI_U_H_DESC : MSA_I5_DESC_BASE<"mini_u.h", int_mips_mini_u_h, MSA128H>; 1682class MINI_U_W_DESC : MSA_I5_DESC_BASE<"mini_u.w", int_mips_mini_u_w, MSA128W>; 1683class MINI_U_D_DESC : MSA_I5_DESC_BASE<"mini_u.d", int_mips_mini_u_d, MSA128D>; 1684 1685class MOD_S_B_DESC : MSA_3R_DESC_BASE<"mod_s.b", int_mips_mod_s_b, MSA128B>; 1686class MOD_S_H_DESC : MSA_3R_DESC_BASE<"mod_s.h", int_mips_mod_s_h, MSA128H>; 1687class MOD_S_W_DESC : MSA_3R_DESC_BASE<"mod_s.w", int_mips_mod_s_w, MSA128W>; 1688class MOD_S_D_DESC : MSA_3R_DESC_BASE<"mod_s.d", int_mips_mod_s_d, MSA128D>; 1689 1690class MOD_U_B_DESC : MSA_3R_DESC_BASE<"mod_u.b", int_mips_mod_u_b, MSA128B>; 1691class MOD_U_H_DESC : MSA_3R_DESC_BASE<"mod_u.h", int_mips_mod_u_h, MSA128H>; 1692class MOD_U_W_DESC : MSA_3R_DESC_BASE<"mod_u.w", int_mips_mod_u_w, MSA128W>; 1693class MOD_U_D_DESC : MSA_3R_DESC_BASE<"mod_u.d", int_mips_mod_u_d, MSA128D>; 1694 1695class MOVE_V_DESC { 1696 dag OutOperandList = (outs MSA128B:$wd); 1697 dag InOperandList = (ins MSA128B:$ws); 1698 string AsmString = "move.v\t$wd, $ws"; 1699 list<dag> Pattern = []; 1700 InstrItinClass Itinerary = NoItinerary; 1701} 1702 1703class MSUB_Q_H_DESC : MSA_3RF_4RF_DESC_BASE<"msub_q.h", int_mips_msub_q_h, 1704 MSA128H, MSA128H>; 1705class MSUB_Q_W_DESC : MSA_3RF_4RF_DESC_BASE<"msub_q.w", int_mips_msub_q_w, 1706 MSA128W, MSA128W>; 1707 1708class MSUBR_Q_H_DESC : MSA_3RF_4RF_DESC_BASE<"msubr_q.h", int_mips_msubr_q_h, 1709 MSA128H, MSA128H>; 1710class MSUBR_Q_W_DESC : MSA_3RF_4RF_DESC_BASE<"msubr_q.w", int_mips_msubr_q_w, 1711 MSA128W, MSA128W>; 1712 1713class MSUBV_B_DESC : MSA_3R_4R_DESC_BASE<"msubv.b", int_mips_msubv_b, MSA128B>; 1714class MSUBV_H_DESC : MSA_3R_4R_DESC_BASE<"msubv.h", int_mips_msubv_h, MSA128H>; 1715class MSUBV_W_DESC : MSA_3R_4R_DESC_BASE<"msubv.w", int_mips_msubv_w, MSA128W>; 1716class MSUBV_D_DESC : MSA_3R_4R_DESC_BASE<"msubv.d", int_mips_msubv_d, MSA128D>; 1717 1718class MUL_Q_H_DESC : MSA_3RF_DESC_BASE<"mul_q.h", int_mips_mul_q_h, MSA128H>; 1719class MUL_Q_W_DESC : MSA_3RF_DESC_BASE<"mul_q.w", int_mips_mul_q_w, MSA128W>; 1720 1721class MULR_Q_H_DESC : MSA_3RF_DESC_BASE<"mulr_q.h", int_mips_mulr_q_h, 1722 MSA128H>; 1723class MULR_Q_W_DESC : MSA_3RF_DESC_BASE<"mulr_q.w", int_mips_mulr_q_w, 1724 MSA128W>; 1725 1726class MULV_B_DESC : MSA_3R_DESC_BASE<"mulv.b", int_mips_mulv_b, MSA128B>; 1727class MULV_H_DESC : MSA_3R_DESC_BASE<"mulv.h", int_mips_mulv_h, MSA128H>; 1728class MULV_W_DESC : MSA_3R_DESC_BASE<"mulv.w", int_mips_mulv_w, MSA128W>; 1729class MULV_D_DESC : MSA_3R_DESC_BASE<"mulv.d", int_mips_mulv_d, MSA128D>; 1730 1731class NLOC_B_DESC : MSA_2R_DESC_BASE<"nloc.b", int_mips_nloc_b, MSA128B>; 1732class NLOC_H_DESC : MSA_2R_DESC_BASE<"nloc.h", int_mips_nloc_h, MSA128H>; 1733class NLOC_W_DESC : MSA_2R_DESC_BASE<"nloc.w", int_mips_nloc_w, MSA128W>; 1734class NLOC_D_DESC : MSA_2R_DESC_BASE<"nloc.d", int_mips_nloc_d, MSA128D>; 1735 1736class NLZC_B_DESC : MSA_2R_DESC_BASE<"nlzc.b", int_mips_nlzc_b, MSA128B>; 1737class NLZC_H_DESC : MSA_2R_DESC_BASE<"nlzc.h", int_mips_nlzc_h, MSA128H>; 1738class NLZC_W_DESC : MSA_2R_DESC_BASE<"nlzc.w", int_mips_nlzc_w, MSA128W>; 1739class NLZC_D_DESC : MSA_2R_DESC_BASE<"nlzc.d", int_mips_nlzc_d, MSA128D>; 1740 1741class NOR_V_DESC : MSA_VEC_DESC_BASE<"nor.v", int_mips_nor_v, 1742 MSA128B, MSA128B>; 1743 1744class NORI_B_DESC : MSA_I8_DESC_BASE<"nori.b", int_mips_nori_b, MSA128B>; 1745 1746class OR_V_DESC : MSA_VEC_DESC_BASE<"or.v", int_mips_or_v, 1747 MSA128B, MSA128B>; 1748 1749class ORI_B_DESC : MSA_I8_DESC_BASE<"ori.b", int_mips_ori_b, MSA128B>; 1750 1751class PCKEV_B_DESC : MSA_3R_DESC_BASE<"pckev.b", int_mips_pckev_b, MSA128B>; 1752class PCKEV_H_DESC : MSA_3R_DESC_BASE<"pckev.h", int_mips_pckev_h, MSA128H>; 1753class PCKEV_W_DESC : MSA_3R_DESC_BASE<"pckev.w", int_mips_pckev_w, MSA128W>; 1754class PCKEV_D_DESC : MSA_3R_DESC_BASE<"pckev.d", int_mips_pckev_d, MSA128D>; 1755 1756class PCKOD_B_DESC : MSA_3R_DESC_BASE<"pckod.b", int_mips_pckod_b, MSA128B>; 1757class PCKOD_H_DESC : MSA_3R_DESC_BASE<"pckod.h", int_mips_pckod_h, MSA128H>; 1758class PCKOD_W_DESC : MSA_3R_DESC_BASE<"pckod.w", int_mips_pckod_w, MSA128W>; 1759class PCKOD_D_DESC : MSA_3R_DESC_BASE<"pckod.d", int_mips_pckod_d, MSA128D>; 1760 1761class PCNT_B_DESC : MSA_2R_DESC_BASE<"pcnt.b", int_mips_pcnt_b, MSA128B>; 1762class PCNT_H_DESC : MSA_2R_DESC_BASE<"pcnt.h", int_mips_pcnt_h, MSA128H>; 1763class PCNT_W_DESC : MSA_2R_DESC_BASE<"pcnt.w", int_mips_pcnt_w, MSA128W>; 1764class PCNT_D_DESC : MSA_2R_DESC_BASE<"pcnt.d", int_mips_pcnt_d, MSA128D>; 1765 1766class SAT_S_B_DESC : MSA_BIT_B_DESC_BASE<"sat_s.b", int_mips_sat_s_b, MSA128B>; 1767class SAT_S_H_DESC : MSA_BIT_H_DESC_BASE<"sat_s.h", int_mips_sat_s_h, MSA128H>; 1768class SAT_S_W_DESC : MSA_BIT_W_DESC_BASE<"sat_s.w", int_mips_sat_s_w, MSA128W>; 1769class SAT_S_D_DESC : MSA_BIT_D_DESC_BASE<"sat_s.d", int_mips_sat_s_d, MSA128D>; 1770 1771class SAT_U_B_DESC : MSA_BIT_B_DESC_BASE<"sat_u.b", int_mips_sat_u_b, MSA128B>; 1772class SAT_U_H_DESC : MSA_BIT_H_DESC_BASE<"sat_u.h", int_mips_sat_u_h, MSA128H>; 1773class SAT_U_W_DESC : MSA_BIT_W_DESC_BASE<"sat_u.w", int_mips_sat_u_w, MSA128W>; 1774class SAT_U_D_DESC : MSA_BIT_D_DESC_BASE<"sat_u.d", int_mips_sat_u_d, MSA128D>; 1775 1776class SHF_B_DESC : MSA_I8_DESC_BASE<"shf.b", int_mips_shf_b, MSA128B>; 1777class SHF_H_DESC : MSA_I8_DESC_BASE<"shf.h", int_mips_shf_h, MSA128H>; 1778class SHF_W_DESC : MSA_I8_DESC_BASE<"shf.w", int_mips_shf_w, MSA128W>; 1779 1780class SLD_B_DESC : MSA_3R_DESC_BASE<"sld.b", int_mips_sld_b, MSA128B>; 1781class SLD_H_DESC : MSA_3R_DESC_BASE<"sld.h", int_mips_sld_h, MSA128H>; 1782class SLD_W_DESC : MSA_3R_DESC_BASE<"sld.w", int_mips_sld_w, MSA128W>; 1783class SLD_D_DESC : MSA_3R_DESC_BASE<"sld.d", int_mips_sld_d, MSA128D>; 1784 1785class SLDI_B_DESC : MSA_BIT_B_DESC_BASE<"sldi.b", int_mips_sldi_b, MSA128B>; 1786class SLDI_H_DESC : MSA_BIT_H_DESC_BASE<"sldi.h", int_mips_sldi_h, MSA128H>; 1787class SLDI_W_DESC : MSA_BIT_W_DESC_BASE<"sldi.w", int_mips_sldi_w, MSA128W>; 1788class SLDI_D_DESC : MSA_BIT_D_DESC_BASE<"sldi.d", int_mips_sldi_d, MSA128D>; 1789 1790class SLL_B_DESC : MSA_3R_DESC_BASE<"sll.b", int_mips_sll_b, MSA128B>; 1791class SLL_H_DESC : MSA_3R_DESC_BASE<"sll.h", int_mips_sll_h, MSA128H>; 1792class SLL_W_DESC : MSA_3R_DESC_BASE<"sll.w", int_mips_sll_w, MSA128W>; 1793class SLL_D_DESC : MSA_3R_DESC_BASE<"sll.d", int_mips_sll_d, MSA128D>; 1794 1795class SLLI_B_DESC : MSA_BIT_B_DESC_BASE<"slli.b", int_mips_slli_b, MSA128B>; 1796class SLLI_H_DESC : MSA_BIT_H_DESC_BASE<"slli.h", int_mips_slli_h, MSA128H>; 1797class SLLI_W_DESC : MSA_BIT_W_DESC_BASE<"slli.w", int_mips_slli_w, MSA128W>; 1798class SLLI_D_DESC : MSA_BIT_D_DESC_BASE<"slli.d", int_mips_slli_d, MSA128D>; 1799 1800class SPLAT_B_DESC : MSA_3R_DESC_BASE<"splat.b", int_mips_splat_b, MSA128B, 1801 MSA128B, GPR32>; 1802class SPLAT_H_DESC : MSA_3R_DESC_BASE<"splat.h", int_mips_splat_h, MSA128H, 1803 MSA128H, GPR32>; 1804class SPLAT_W_DESC : MSA_3R_DESC_BASE<"splat.w", int_mips_splat_w, MSA128W, 1805 MSA128W, GPR32>; 1806class SPLAT_D_DESC : MSA_3R_DESC_BASE<"splat.d", int_mips_splat_d, MSA128D, 1807 MSA128D, GPR32>; 1808 1809class SPLATI_B_DESC : MSA_BIT_B_DESC_BASE<"splati.b", int_mips_splati_b, 1810 MSA128B>; 1811class SPLATI_H_DESC : MSA_BIT_H_DESC_BASE<"splati.h", int_mips_splati_h, 1812 MSA128H>; 1813class SPLATI_W_DESC : MSA_BIT_W_DESC_BASE<"splati.w", int_mips_splati_w, 1814 MSA128W>; 1815class SPLATI_D_DESC : MSA_BIT_D_DESC_BASE<"splati.d", int_mips_splati_d, 1816 MSA128D>; 1817 1818class SRA_B_DESC : MSA_3R_DESC_BASE<"sra.b", int_mips_sra_b, MSA128B>; 1819class SRA_H_DESC : MSA_3R_DESC_BASE<"sra.h", int_mips_sra_h, MSA128H>; 1820class SRA_W_DESC : MSA_3R_DESC_BASE<"sra.w", int_mips_sra_w, MSA128W>; 1821class SRA_D_DESC : MSA_3R_DESC_BASE<"sra.d", int_mips_sra_d, MSA128D>; 1822 1823class SRAI_B_DESC : MSA_BIT_B_DESC_BASE<"srai.b", int_mips_srai_b, MSA128B>; 1824class SRAI_H_DESC : MSA_BIT_H_DESC_BASE<"srai.h", int_mips_srai_h, MSA128H>; 1825class SRAI_W_DESC : MSA_BIT_W_DESC_BASE<"srai.w", int_mips_srai_w, MSA128W>; 1826class SRAI_D_DESC : MSA_BIT_D_DESC_BASE<"srai.d", int_mips_srai_d, MSA128D>; 1827 1828class SRAR_B_DESC : MSA_3R_DESC_BASE<"srar.b", int_mips_srar_b, MSA128B>; 1829class SRAR_H_DESC : MSA_3R_DESC_BASE<"srar.h", int_mips_srar_h, MSA128H>; 1830class SRAR_W_DESC : MSA_3R_DESC_BASE<"srar.w", int_mips_srar_w, MSA128W>; 1831class SRAR_D_DESC : MSA_3R_DESC_BASE<"srar.d", int_mips_srar_d, MSA128D>; 1832 1833class SRARI_B_DESC : MSA_BIT_B_DESC_BASE<"srari.b", int_mips_srari_b, MSA128B>; 1834class SRARI_H_DESC : MSA_BIT_H_DESC_BASE<"srari.h", int_mips_srari_h, MSA128H>; 1835class SRARI_W_DESC : MSA_BIT_W_DESC_BASE<"srari.w", int_mips_srari_w, MSA128W>; 1836class SRARI_D_DESC : MSA_BIT_D_DESC_BASE<"srari.d", int_mips_srari_d, MSA128D>; 1837 1838class SRL_B_DESC : MSA_3R_DESC_BASE<"srl.b", int_mips_srl_b, MSA128B>; 1839class SRL_H_DESC : MSA_3R_DESC_BASE<"srl.h", int_mips_srl_h, MSA128H>; 1840class SRL_W_DESC : MSA_3R_DESC_BASE<"srl.w", int_mips_srl_w, MSA128W>; 1841class SRL_D_DESC : MSA_3R_DESC_BASE<"srl.d", int_mips_srl_d, MSA128D>; 1842 1843class SRLI_B_DESC : MSA_BIT_B_DESC_BASE<"srli.b", int_mips_srli_b, MSA128B>; 1844class SRLI_H_DESC : MSA_BIT_H_DESC_BASE<"srli.h", int_mips_srli_h, MSA128H>; 1845class SRLI_W_DESC : MSA_BIT_W_DESC_BASE<"srli.w", int_mips_srli_w, MSA128W>; 1846class SRLI_D_DESC : MSA_BIT_D_DESC_BASE<"srli.d", int_mips_srli_d, MSA128D>; 1847 1848class SRLR_B_DESC : MSA_3R_DESC_BASE<"srlr.b", int_mips_srlr_b, MSA128B>; 1849class SRLR_H_DESC : MSA_3R_DESC_BASE<"srlr.h", int_mips_srlr_h, MSA128H>; 1850class SRLR_W_DESC : MSA_3R_DESC_BASE<"srlr.w", int_mips_srlr_w, MSA128W>; 1851class SRLR_D_DESC : MSA_3R_DESC_BASE<"srlr.d", int_mips_srlr_d, MSA128D>; 1852 1853class SRLRI_B_DESC : MSA_BIT_B_DESC_BASE<"srlri.b", int_mips_srlri_b, MSA128B>; 1854class SRLRI_H_DESC : MSA_BIT_H_DESC_BASE<"srlri.h", int_mips_srlri_h, MSA128H>; 1855class SRLRI_W_DESC : MSA_BIT_W_DESC_BASE<"srlri.w", int_mips_srlri_w, MSA128W>; 1856class SRLRI_D_DESC : MSA_BIT_D_DESC_BASE<"srlri.d", int_mips_srlri_d, MSA128D>; 1857 1858class ST_DESC_BASE<string instr_asm, SDPatternOperator OpNode, 1859 ValueType TyNode, RegisterClass RCWD, 1860 Operand MemOpnd = mem, ComplexPattern Addr = addrRegImm, 1861 InstrItinClass itin = NoItinerary> { 1862 dag OutOperandList = (outs); 1863 dag InOperandList = (ins RCWD:$wd, MemOpnd:$addr); 1864 string AsmString = !strconcat(instr_asm, "\t$wd, $addr"); 1865 list<dag> Pattern = [(OpNode (TyNode RCWD:$wd), Addr:$addr)]; 1866 InstrItinClass Itinerary = itin; 1867} 1868 1869class ST_B_DESC : ST_DESC_BASE<"st.b", store, v16i8, MSA128B>; 1870class ST_H_DESC : ST_DESC_BASE<"st.h", store, v8i16, MSA128H>; 1871class ST_W_DESC : ST_DESC_BASE<"st.w", store, v4i32, MSA128W>; 1872class ST_D_DESC : ST_DESC_BASE<"st.d", store, v2i64, MSA128D>; 1873 1874class STX_DESC_BASE<string instr_asm, SDPatternOperator OpNode, 1875 ValueType TyNode, RegisterClass RCWD, 1876 Operand MemOpnd = mem, ComplexPattern Addr = addrRegReg, 1877 InstrItinClass itin = NoItinerary> { 1878 dag OutOperandList = (outs); 1879 dag InOperandList = (ins RCWD:$wd, MemOpnd:$addr); 1880 string AsmString = !strconcat(instr_asm, "\t$wd, $addr"); 1881 list<dag> Pattern = [(OpNode (TyNode RCWD:$wd), Addr:$addr)]; 1882 InstrItinClass Itinerary = itin; 1883} 1884 1885class STX_B_DESC : STX_DESC_BASE<"stx.b", store, v16i8, MSA128B>; 1886class STX_H_DESC : STX_DESC_BASE<"stx.h", store, v8i16, MSA128H>; 1887class STX_W_DESC : STX_DESC_BASE<"stx.w", store, v4i32, MSA128W>; 1888class STX_D_DESC : STX_DESC_BASE<"stx.d", store, v2i64, MSA128D>; 1889 1890class SUBS_S_B_DESC : MSA_3R_DESC_BASE<"subs_s.b", int_mips_subs_s_b, MSA128B>; 1891class SUBS_S_H_DESC : MSA_3R_DESC_BASE<"subs_s.h", int_mips_subs_s_h, MSA128H>; 1892class SUBS_S_W_DESC : MSA_3R_DESC_BASE<"subs_s.w", int_mips_subs_s_w, MSA128W>; 1893class SUBS_S_D_DESC : MSA_3R_DESC_BASE<"subs_s.d", int_mips_subs_s_d, MSA128D>; 1894 1895class SUBS_U_B_DESC : MSA_3R_DESC_BASE<"subs_u.b", int_mips_subs_u_b, MSA128B>; 1896class SUBS_U_H_DESC : MSA_3R_DESC_BASE<"subs_u.h", int_mips_subs_u_h, MSA128H>; 1897class SUBS_U_W_DESC : MSA_3R_DESC_BASE<"subs_u.w", int_mips_subs_u_w, MSA128W>; 1898class SUBS_U_D_DESC : MSA_3R_DESC_BASE<"subs_u.d", int_mips_subs_u_d, MSA128D>; 1899 1900class SUBSUS_U_B_DESC : MSA_3R_DESC_BASE<"subsus_u.b", int_mips_subsus_u_b, 1901 MSA128B>; 1902class SUBSUS_U_H_DESC : MSA_3R_DESC_BASE<"subsus_u.h", int_mips_subsus_u_h, 1903 MSA128H>; 1904class SUBSUS_U_W_DESC : MSA_3R_DESC_BASE<"subsus_u.w", int_mips_subsus_u_w, 1905 MSA128W>; 1906class SUBSUS_U_D_DESC : MSA_3R_DESC_BASE<"subsus_u.d", int_mips_subsus_u_d, 1907 MSA128D>; 1908 1909class SUBSUU_S_B_DESC : MSA_3R_DESC_BASE<"subsuu_s.b", int_mips_subsuu_s_b, 1910 MSA128B>; 1911class SUBSUU_S_H_DESC : MSA_3R_DESC_BASE<"subsuu_s.h", int_mips_subsuu_s_h, 1912 MSA128H>; 1913class SUBSUU_S_W_DESC : MSA_3R_DESC_BASE<"subsuu_s.w", int_mips_subsuu_s_w, 1914 MSA128W>; 1915class SUBSUU_S_D_DESC : MSA_3R_DESC_BASE<"subsuu_s.d", int_mips_subsuu_s_d, 1916 MSA128D>; 1917 1918class SUBV_B_DESC : MSA_3R_DESC_BASE<"subv.b", int_mips_subv_b, MSA128B>; 1919class SUBV_H_DESC : MSA_3R_DESC_BASE<"subv.h", int_mips_subv_h, MSA128H>; 1920class SUBV_W_DESC : MSA_3R_DESC_BASE<"subv.w", int_mips_subv_w, MSA128W>; 1921class SUBV_D_DESC : MSA_3R_DESC_BASE<"subv.d", int_mips_subv_d, MSA128D>; 1922 1923class SUBVI_B_DESC : MSA_I5_DESC_BASE<"subvi.b", int_mips_subvi_b, MSA128B>; 1924class SUBVI_H_DESC : MSA_I5_DESC_BASE<"subvi.h", int_mips_subvi_h, MSA128H>; 1925class SUBVI_W_DESC : MSA_I5_DESC_BASE<"subvi.w", int_mips_subvi_w, MSA128W>; 1926class SUBVI_D_DESC : MSA_I5_DESC_BASE<"subvi.d", int_mips_subvi_d, MSA128D>; 1927 1928class VSHF_B_DESC : MSA_3R_DESC_BASE<"vshf.b", int_mips_vshf_b, MSA128B>; 1929class VSHF_H_DESC : MSA_3R_DESC_BASE<"vshf.h", int_mips_vshf_h, MSA128H>; 1930class VSHF_W_DESC : MSA_3R_DESC_BASE<"vshf.w", int_mips_vshf_w, MSA128W>; 1931class VSHF_D_DESC : MSA_3R_DESC_BASE<"vshf.d", int_mips_vshf_d, MSA128D>; 1932 1933class XOR_V_DESC : MSA_VEC_DESC_BASE<"xor.v", int_mips_xor_v, 1934 MSA128B, MSA128B>; 1935 1936class XORI_B_DESC : MSA_I8_DESC_BASE<"xori.b", int_mips_xori_b, MSA128B>; 1937 1938// Instruction defs. 1939def ADD_A_B : ADD_A_B_ENC, ADD_A_B_DESC, Requires<[HasMSA]>; 1940def ADD_A_H : ADD_A_H_ENC, ADD_A_H_DESC, Requires<[HasMSA]>; 1941def ADD_A_W : ADD_A_W_ENC, ADD_A_W_DESC, Requires<[HasMSA]>; 1942def ADD_A_D : ADD_A_D_ENC, ADD_A_D_DESC, Requires<[HasMSA]>; 1943 1944def ADDS_A_B : ADDS_A_B_ENC, ADDS_A_B_DESC, Requires<[HasMSA]>; 1945def ADDS_A_H : ADDS_A_H_ENC, ADDS_A_H_DESC, Requires<[HasMSA]>; 1946def ADDS_A_W : ADDS_A_W_ENC, ADDS_A_W_DESC, Requires<[HasMSA]>; 1947def ADDS_A_D : ADDS_A_D_ENC, ADDS_A_D_DESC, Requires<[HasMSA]>; 1948 1949def ADDS_S_B : ADDS_S_B_ENC, ADDS_S_B_DESC, Requires<[HasMSA]>; 1950def ADDS_S_H : ADDS_S_H_ENC, ADDS_S_H_DESC, Requires<[HasMSA]>; 1951def ADDS_S_W : ADDS_S_W_ENC, ADDS_S_W_DESC, Requires<[HasMSA]>; 1952def ADDS_S_D : ADDS_S_D_ENC, ADDS_S_D_DESC, Requires<[HasMSA]>; 1953 1954def ADDS_U_B : ADDS_U_B_ENC, ADDS_U_B_DESC, Requires<[HasMSA]>; 1955def ADDS_U_H : ADDS_U_H_ENC, ADDS_U_H_DESC, Requires<[HasMSA]>; 1956def ADDS_U_W : ADDS_U_W_ENC, ADDS_U_W_DESC, Requires<[HasMSA]>; 1957def ADDS_U_D : ADDS_U_D_ENC, ADDS_U_D_DESC, Requires<[HasMSA]>; 1958 1959def ADDV_B : ADDV_B_ENC, ADDV_B_DESC, Requires<[HasMSA]>; 1960def ADDV_H : ADDV_H_ENC, ADDV_H_DESC, Requires<[HasMSA]>; 1961def ADDV_W : ADDV_W_ENC, ADDV_W_DESC, Requires<[HasMSA]>; 1962def ADDV_D : ADDV_D_ENC, ADDV_D_DESC, Requires<[HasMSA]>; 1963 1964def ADDVI_B : ADDVI_B_ENC, ADDVI_B_DESC, Requires<[HasMSA]>; 1965def ADDVI_H : ADDVI_H_ENC, ADDVI_H_DESC, Requires<[HasMSA]>; 1966def ADDVI_W : ADDVI_W_ENC, ADDVI_W_DESC, Requires<[HasMSA]>; 1967def ADDVI_D : ADDVI_D_ENC, ADDVI_D_DESC, Requires<[HasMSA]>; 1968 1969def AND_V : AND_V_ENC, AND_V_DESC, Requires<[HasMSA]>; 1970 1971def ANDI_B : ANDI_B_ENC, ANDI_B_DESC, Requires<[HasMSA]>; 1972 1973def ASUB_S_B : ASUB_S_B_ENC, ASUB_S_B_DESC, Requires<[HasMSA]>; 1974def ASUB_S_H : ASUB_S_H_ENC, ASUB_S_H_DESC, Requires<[HasMSA]>; 1975def ASUB_S_W : ASUB_S_W_ENC, ASUB_S_W_DESC, Requires<[HasMSA]>; 1976def ASUB_S_D : ASUB_S_D_ENC, ASUB_S_D_DESC, Requires<[HasMSA]>; 1977 1978def ASUB_U_B : ASUB_U_B_ENC, ASUB_U_B_DESC, Requires<[HasMSA]>; 1979def ASUB_U_H : ASUB_U_H_ENC, ASUB_U_H_DESC, Requires<[HasMSA]>; 1980def ASUB_U_W : ASUB_U_W_ENC, ASUB_U_W_DESC, Requires<[HasMSA]>; 1981def ASUB_U_D : ASUB_U_D_ENC, ASUB_U_D_DESC, Requires<[HasMSA]>; 1982 1983def AVE_S_B : AVE_S_B_ENC, AVE_S_B_DESC, Requires<[HasMSA]>; 1984def AVE_S_H : AVE_S_H_ENC, AVE_S_H_DESC, Requires<[HasMSA]>; 1985def AVE_S_W : AVE_S_W_ENC, AVE_S_W_DESC, Requires<[HasMSA]>; 1986def AVE_S_D : AVE_S_D_ENC, AVE_S_D_DESC, Requires<[HasMSA]>; 1987 1988def AVE_U_B : AVE_U_B_ENC, AVE_U_B_DESC, Requires<[HasMSA]>; 1989def AVE_U_H : AVE_U_H_ENC, AVE_U_H_DESC, Requires<[HasMSA]>; 1990def AVE_U_W : AVE_U_W_ENC, AVE_U_W_DESC, Requires<[HasMSA]>; 1991def AVE_U_D : AVE_U_D_ENC, AVE_U_D_DESC, Requires<[HasMSA]>; 1992 1993def AVER_S_B : AVER_S_B_ENC, AVER_S_B_DESC, Requires<[HasMSA]>; 1994def AVER_S_H : AVER_S_H_ENC, AVER_S_H_DESC, Requires<[HasMSA]>; 1995def AVER_S_W : AVER_S_W_ENC, AVER_S_W_DESC, Requires<[HasMSA]>; 1996def AVER_S_D : AVER_S_D_ENC, AVER_S_D_DESC, Requires<[HasMSA]>; 1997 1998def AVER_U_B : AVER_U_B_ENC, AVER_U_B_DESC, Requires<[HasMSA]>; 1999def AVER_U_H : AVER_U_H_ENC, AVER_U_H_DESC, Requires<[HasMSA]>; 2000def AVER_U_W : AVER_U_W_ENC, AVER_U_W_DESC, Requires<[HasMSA]>; 2001def AVER_U_D : AVER_U_D_ENC, AVER_U_D_DESC, Requires<[HasMSA]>; 2002 2003def BCLR_B : BCLR_B_ENC, BCLR_B_DESC, Requires<[HasMSA]>; 2004def BCLR_H : BCLR_H_ENC, BCLR_H_DESC, Requires<[HasMSA]>; 2005def BCLR_W : BCLR_W_ENC, BCLR_W_DESC, Requires<[HasMSA]>; 2006def BCLR_D : BCLR_D_ENC, BCLR_D_DESC, Requires<[HasMSA]>; 2007 2008def BCLRI_B : BCLRI_B_ENC, BCLRI_B_DESC, Requires<[HasMSA]>; 2009def BCLRI_H : BCLRI_H_ENC, BCLRI_H_DESC, Requires<[HasMSA]>; 2010def BCLRI_W : BCLRI_W_ENC, BCLRI_W_DESC, Requires<[HasMSA]>; 2011def BCLRI_D : BCLRI_D_ENC, BCLRI_D_DESC, Requires<[HasMSA]>; 2012 2013def BINSL_B : BINSL_B_ENC, BINSL_B_DESC, Requires<[HasMSA]>; 2014def BINSL_H : BINSL_H_ENC, BINSL_H_DESC, Requires<[HasMSA]>; 2015def BINSL_W : BINSL_W_ENC, BINSL_W_DESC, Requires<[HasMSA]>; 2016def BINSL_D : BINSL_D_ENC, BINSL_D_DESC, Requires<[HasMSA]>; 2017 2018def BINSLI_B : BINSLI_B_ENC, BINSLI_B_DESC, Requires<[HasMSA]>; 2019def BINSLI_H : BINSLI_H_ENC, BINSLI_H_DESC, Requires<[HasMSA]>; 2020def BINSLI_W : BINSLI_W_ENC, BINSLI_W_DESC, Requires<[HasMSA]>; 2021def BINSLI_D : BINSLI_D_ENC, BINSLI_D_DESC, Requires<[HasMSA]>; 2022 2023def BINSR_B : BINSR_B_ENC, BINSR_B_DESC, Requires<[HasMSA]>; 2024def BINSR_H : BINSR_H_ENC, BINSR_H_DESC, Requires<[HasMSA]>; 2025def BINSR_W : BINSR_W_ENC, BINSR_W_DESC, Requires<[HasMSA]>; 2026def BINSR_D : BINSR_D_ENC, BINSR_D_DESC, Requires<[HasMSA]>; 2027 2028def BINSRI_B : BINSRI_B_ENC, BINSRI_B_DESC, Requires<[HasMSA]>; 2029def BINSRI_H : BINSRI_H_ENC, BINSRI_H_DESC, Requires<[HasMSA]>; 2030def BINSRI_W : BINSRI_W_ENC, BINSRI_W_DESC, Requires<[HasMSA]>; 2031def BINSRI_D : BINSRI_D_ENC, BINSRI_D_DESC, Requires<[HasMSA]>; 2032 2033def BMNZ_V : BMNZ_V_ENC, BMNZ_V_DESC, Requires<[HasMSA]>; 2034 2035def BMNZI_B : BMNZI_B_ENC, BMNZI_B_DESC, Requires<[HasMSA]>; 2036 2037def BMZ_V : BMZ_V_ENC, BMZ_V_DESC, Requires<[HasMSA]>; 2038 2039def BMZI_B : BMZI_B_ENC, BMZI_B_DESC, Requires<[HasMSA]>; 2040 2041def BNEG_B : BNEG_B_ENC, BNEG_B_DESC, Requires<[HasMSA]>; 2042def BNEG_H : BNEG_H_ENC, BNEG_H_DESC, Requires<[HasMSA]>; 2043def BNEG_W : BNEG_W_ENC, BNEG_W_DESC, Requires<[HasMSA]>; 2044def BNEG_D : BNEG_D_ENC, BNEG_D_DESC, Requires<[HasMSA]>; 2045 2046def BNEGI_B : BNEGI_B_ENC, BNEGI_B_DESC, Requires<[HasMSA]>; 2047def BNEGI_H : BNEGI_H_ENC, BNEGI_H_DESC, Requires<[HasMSA]>; 2048def BNEGI_W : BNEGI_W_ENC, BNEGI_W_DESC, Requires<[HasMSA]>; 2049def BNEGI_D : BNEGI_D_ENC, BNEGI_D_DESC, Requires<[HasMSA]>; 2050 2051def BNZ_B : BNZ_B_ENC, BNZ_B_DESC, Requires<[HasMSA]>; 2052def BNZ_H : BNZ_H_ENC, BNZ_H_DESC, Requires<[HasMSA]>; 2053def BNZ_W : BNZ_W_ENC, BNZ_W_DESC, Requires<[HasMSA]>; 2054def BNZ_D : BNZ_D_ENC, BNZ_D_DESC, Requires<[HasMSA]>; 2055 2056def BNZ_V : BNZ_V_ENC, BNZ_V_DESC, Requires<[HasMSA]>; 2057 2058def BSEL_V : BSEL_V_ENC, BSEL_V_DESC, Requires<[HasMSA]>; 2059 2060def BSELI_B : BSELI_B_ENC, BSELI_B_DESC, Requires<[HasMSA]>; 2061 2062def BSET_B : BSET_B_ENC, BSET_B_DESC, Requires<[HasMSA]>; 2063def BSET_H : BSET_H_ENC, BSET_H_DESC, Requires<[HasMSA]>; 2064def BSET_W : BSET_W_ENC, BSET_W_DESC, Requires<[HasMSA]>; 2065def BSET_D : BSET_D_ENC, BSET_D_DESC, Requires<[HasMSA]>; 2066 2067def BSETI_B : BSETI_B_ENC, BSETI_B_DESC, Requires<[HasMSA]>; 2068def BSETI_H : BSETI_H_ENC, BSETI_H_DESC, Requires<[HasMSA]>; 2069def BSETI_W : BSETI_W_ENC, BSETI_W_DESC, Requires<[HasMSA]>; 2070def BSETI_D : BSETI_D_ENC, BSETI_D_DESC, Requires<[HasMSA]>; 2071 2072def BZ_B : BZ_B_ENC, BZ_B_DESC, Requires<[HasMSA]>; 2073def BZ_H : BZ_H_ENC, BZ_H_DESC, Requires<[HasMSA]>; 2074def BZ_W : BZ_W_ENC, BZ_W_DESC, Requires<[HasMSA]>; 2075def BZ_D : BZ_D_ENC, BZ_D_DESC, Requires<[HasMSA]>; 2076 2077def BZ_V : BZ_V_ENC, BZ_V_DESC, Requires<[HasMSA]>; 2078 2079def CEQ_B : CEQ_B_ENC, CEQ_B_DESC, Requires<[HasMSA]>; 2080def CEQ_H : CEQ_H_ENC, CEQ_H_DESC, Requires<[HasMSA]>; 2081def CEQ_W : CEQ_W_ENC, CEQ_W_DESC, Requires<[HasMSA]>; 2082def CEQ_D : CEQ_D_ENC, CEQ_D_DESC, Requires<[HasMSA]>; 2083 2084def CEQI_B : CEQI_B_ENC, CEQI_B_DESC, Requires<[HasMSA]>; 2085def CEQI_H : CEQI_H_ENC, CEQI_H_DESC, Requires<[HasMSA]>; 2086def CEQI_W : CEQI_W_ENC, CEQI_W_DESC, Requires<[HasMSA]>; 2087def CEQI_D : CEQI_D_ENC, CEQI_D_DESC, Requires<[HasMSA]>; 2088 2089def CFCMSA : CFCMSA_ENC, CFCMSA_DESC, Requires<[HasMSA]>; 2090 2091def CLE_S_B : CLE_S_B_ENC, CLE_S_B_DESC, Requires<[HasMSA]>; 2092def CLE_S_H : CLE_S_H_ENC, CLE_S_H_DESC, Requires<[HasMSA]>; 2093def CLE_S_W : CLE_S_W_ENC, CLE_S_W_DESC, Requires<[HasMSA]>; 2094def CLE_S_D : CLE_S_D_ENC, CLE_S_D_DESC, Requires<[HasMSA]>; 2095 2096def CLE_U_B : CLE_U_B_ENC, CLE_U_B_DESC, Requires<[HasMSA]>; 2097def CLE_U_H : CLE_U_H_ENC, CLE_U_H_DESC, Requires<[HasMSA]>; 2098def CLE_U_W : CLE_U_W_ENC, CLE_U_W_DESC, Requires<[HasMSA]>; 2099def CLE_U_D : CLE_U_D_ENC, CLE_U_D_DESC, Requires<[HasMSA]>; 2100 2101def CLEI_S_B : CLEI_S_B_ENC, CLEI_S_B_DESC, Requires<[HasMSA]>; 2102def CLEI_S_H : CLEI_S_H_ENC, CLEI_S_H_DESC, Requires<[HasMSA]>; 2103def CLEI_S_W : CLEI_S_W_ENC, CLEI_S_W_DESC, Requires<[HasMSA]>; 2104def CLEI_S_D : CLEI_S_D_ENC, CLEI_S_D_DESC, Requires<[HasMSA]>; 2105 2106def CLEI_U_B : CLEI_U_B_ENC, CLEI_U_B_DESC, Requires<[HasMSA]>; 2107def CLEI_U_H : CLEI_U_H_ENC, CLEI_U_H_DESC, Requires<[HasMSA]>; 2108def CLEI_U_W : CLEI_U_W_ENC, CLEI_U_W_DESC, Requires<[HasMSA]>; 2109def CLEI_U_D : CLEI_U_D_ENC, CLEI_U_D_DESC, Requires<[HasMSA]>; 2110 2111def CLT_S_B : CLT_S_B_ENC, CLT_S_B_DESC, Requires<[HasMSA]>; 2112def CLT_S_H : CLT_S_H_ENC, CLT_S_H_DESC, Requires<[HasMSA]>; 2113def CLT_S_W : CLT_S_W_ENC, CLT_S_W_DESC, Requires<[HasMSA]>; 2114def CLT_S_D : CLT_S_D_ENC, CLT_S_D_DESC, Requires<[HasMSA]>; 2115 2116def CLT_U_B : CLT_U_B_ENC, CLT_U_B_DESC, Requires<[HasMSA]>; 2117def CLT_U_H : CLT_U_H_ENC, CLT_U_H_DESC, Requires<[HasMSA]>; 2118def CLT_U_W : CLT_U_W_ENC, CLT_U_W_DESC, Requires<[HasMSA]>; 2119def CLT_U_D : CLT_U_D_ENC, CLT_U_D_DESC, Requires<[HasMSA]>; 2120 2121def CLTI_S_B : CLTI_S_B_ENC, CLTI_S_B_DESC, Requires<[HasMSA]>; 2122def CLTI_S_H : CLTI_S_H_ENC, CLTI_S_H_DESC, Requires<[HasMSA]>; 2123def CLTI_S_W : CLTI_S_W_ENC, CLTI_S_W_DESC, Requires<[HasMSA]>; 2124def CLTI_S_D : CLTI_S_D_ENC, CLTI_S_D_DESC, Requires<[HasMSA]>; 2125 2126def CLTI_U_B : CLTI_U_B_ENC, CLTI_U_B_DESC, Requires<[HasMSA]>; 2127def CLTI_U_H : CLTI_U_H_ENC, CLTI_U_H_DESC, Requires<[HasMSA]>; 2128def CLTI_U_W : CLTI_U_W_ENC, CLTI_U_W_DESC, Requires<[HasMSA]>; 2129def CLTI_U_D : CLTI_U_D_ENC, CLTI_U_D_DESC, Requires<[HasMSA]>; 2130 2131def COPY_S_B : COPY_S_B_ENC, COPY_S_B_DESC, Requires<[HasMSA]>; 2132def COPY_S_H : COPY_S_H_ENC, COPY_S_H_DESC, Requires<[HasMSA]>; 2133def COPY_S_W : COPY_S_W_ENC, COPY_S_W_DESC, Requires<[HasMSA]>; 2134 2135def COPY_U_B : COPY_U_B_ENC, COPY_U_B_DESC, Requires<[HasMSA]>; 2136def COPY_U_H : COPY_U_H_ENC, COPY_U_H_DESC, Requires<[HasMSA]>; 2137def COPY_U_W : COPY_U_W_ENC, COPY_U_W_DESC, Requires<[HasMSA]>; 2138 2139def CTCMSA : CTCMSA_ENC, CTCMSA_DESC, Requires<[HasMSA]>; 2140 2141def DIV_S_B : DIV_S_B_ENC, DIV_S_B_DESC, Requires<[HasMSA]>; 2142def DIV_S_H : DIV_S_H_ENC, DIV_S_H_DESC, Requires<[HasMSA]>; 2143def DIV_S_W : DIV_S_W_ENC, DIV_S_W_DESC, Requires<[HasMSA]>; 2144def DIV_S_D : DIV_S_D_ENC, DIV_S_D_DESC, Requires<[HasMSA]>; 2145 2146def DIV_U_B : DIV_U_B_ENC, DIV_U_B_DESC, Requires<[HasMSA]>; 2147def DIV_U_H : DIV_U_H_ENC, DIV_U_H_DESC, Requires<[HasMSA]>; 2148def DIV_U_W : DIV_U_W_ENC, DIV_U_W_DESC, Requires<[HasMSA]>; 2149def DIV_U_D : DIV_U_D_ENC, DIV_U_D_DESC, Requires<[HasMSA]>; 2150 2151def DOTP_S_B : DOTP_S_B_ENC, DOTP_S_B_DESC, Requires<[HasMSA]>; 2152def DOTP_S_H : DOTP_S_H_ENC, DOTP_S_H_DESC, Requires<[HasMSA]>; 2153def DOTP_S_W : DOTP_S_W_ENC, DOTP_S_W_DESC, Requires<[HasMSA]>; 2154def DOTP_S_D : DOTP_S_D_ENC, DOTP_S_D_DESC, Requires<[HasMSA]>; 2155 2156def DOTP_U_B : DOTP_U_B_ENC, DOTP_U_B_DESC, Requires<[HasMSA]>; 2157def DOTP_U_H : DOTP_U_H_ENC, DOTP_U_H_DESC, Requires<[HasMSA]>; 2158def DOTP_U_W : DOTP_U_W_ENC, DOTP_U_W_DESC, Requires<[HasMSA]>; 2159def DOTP_U_D : DOTP_U_D_ENC, DOTP_U_D_DESC, Requires<[HasMSA]>; 2160 2161def DPADD_S_H : DPADD_S_H_ENC, DPADD_S_H_DESC, Requires<[HasMSA]>; 2162def DPADD_S_W : DPADD_S_W_ENC, DPADD_S_W_DESC, Requires<[HasMSA]>; 2163def DPADD_S_D : DPADD_S_D_ENC, DPADD_S_D_DESC, Requires<[HasMSA]>; 2164 2165def DPADD_U_H : DPADD_U_H_ENC, DPADD_U_H_DESC, Requires<[HasMSA]>; 2166def DPADD_U_W : DPADD_U_W_ENC, DPADD_U_W_DESC, Requires<[HasMSA]>; 2167def DPADD_U_D : DPADD_U_D_ENC, DPADD_U_D_DESC, Requires<[HasMSA]>; 2168 2169def DPSUB_S_H : DPSUB_S_H_ENC, DPSUB_S_H_DESC, Requires<[HasMSA]>; 2170def DPSUB_S_W : DPSUB_S_W_ENC, DPSUB_S_W_DESC, Requires<[HasMSA]>; 2171def DPSUB_S_D : DPSUB_S_D_ENC, DPSUB_S_D_DESC, Requires<[HasMSA]>; 2172 2173def DPSUB_U_H : DPSUB_U_H_ENC, DPSUB_U_H_DESC, Requires<[HasMSA]>; 2174def DPSUB_U_W : DPSUB_U_W_ENC, DPSUB_U_W_DESC, Requires<[HasMSA]>; 2175def DPSUB_U_D : DPSUB_U_D_ENC, DPSUB_U_D_DESC, Requires<[HasMSA]>; 2176 2177def FADD_W : FADD_W_ENC, FADD_W_DESC, Requires<[HasMSA]>; 2178def FADD_D : FADD_D_ENC, FADD_D_DESC, Requires<[HasMSA]>; 2179 2180def FCAF_W : FCAF_W_ENC, FCAF_W_DESC, Requires<[HasMSA]>; 2181def FCAF_D : FCAF_D_ENC, FCAF_D_DESC, Requires<[HasMSA]>; 2182 2183def FCEQ_W : FCEQ_W_ENC, FCEQ_W_DESC, Requires<[HasMSA]>; 2184def FCEQ_D : FCEQ_D_ENC, FCEQ_D_DESC, Requires<[HasMSA]>; 2185 2186def FCLE_W : FCLE_W_ENC, FCLE_W_DESC, Requires<[HasMSA]>; 2187def FCLE_D : FCLE_D_ENC, FCLE_D_DESC, Requires<[HasMSA]>; 2188 2189def FCLT_W : FCLT_W_ENC, FCLT_W_DESC, Requires<[HasMSA]>; 2190def FCLT_D : FCLT_D_ENC, FCLT_D_DESC, Requires<[HasMSA]>; 2191 2192def FCLASS_W : FCLASS_W_ENC, FCLASS_W_DESC, Requires<[HasMSA]>; 2193def FCLASS_D : FCLASS_D_ENC, FCLASS_D_DESC, Requires<[HasMSA]>; 2194 2195def FCNE_W : FCNE_W_ENC, FCNE_W_DESC, Requires<[HasMSA]>; 2196def FCNE_D : FCNE_D_ENC, FCNE_D_DESC, Requires<[HasMSA]>; 2197 2198def FCOR_W : FCOR_W_ENC, FCOR_W_DESC, Requires<[HasMSA]>; 2199def FCOR_D : FCOR_D_ENC, FCOR_D_DESC, Requires<[HasMSA]>; 2200 2201def FCUEQ_W : FCUEQ_W_ENC, FCUEQ_W_DESC, Requires<[HasMSA]>; 2202def FCUEQ_D : FCUEQ_D_ENC, FCUEQ_D_DESC, Requires<[HasMSA]>; 2203 2204def FCULE_W : FCULE_W_ENC, FCULE_W_DESC, Requires<[HasMSA]>; 2205def FCULE_D : FCULE_D_ENC, FCULE_D_DESC, Requires<[HasMSA]>; 2206 2207def FCULT_W : FCULT_W_ENC, FCULT_W_DESC, Requires<[HasMSA]>; 2208def FCULT_D : FCULT_D_ENC, FCULT_D_DESC, Requires<[HasMSA]>; 2209 2210def FCUN_W : FCUN_W_ENC, FCUN_W_DESC, Requires<[HasMSA]>; 2211def FCUN_D : FCUN_D_ENC, FCUN_D_DESC, Requires<[HasMSA]>; 2212 2213def FCUNE_W : FCUNE_W_ENC, FCUNE_W_DESC, Requires<[HasMSA]>; 2214def FCUNE_D : FCUNE_D_ENC, FCUNE_D_DESC, Requires<[HasMSA]>; 2215 2216def FDIV_W : FDIV_W_ENC, FDIV_W_DESC, Requires<[HasMSA]>; 2217def FDIV_D : FDIV_D_ENC, FDIV_D_DESC, Requires<[HasMSA]>; 2218 2219def FEXDO_H : FEXDO_H_ENC, FEXDO_H_DESC, Requires<[HasMSA]>; 2220def FEXDO_W : FEXDO_W_ENC, FEXDO_W_DESC, Requires<[HasMSA]>; 2221 2222def FEXP2_W : FEXP2_W_ENC, FEXP2_W_DESC, Requires<[HasMSA]>; 2223def FEXP2_D : FEXP2_D_ENC, FEXP2_D_DESC, Requires<[HasMSA]>; 2224 2225def FEXUPL_W : FEXUPL_W_ENC, FEXUPL_W_DESC, Requires<[HasMSA]>; 2226def FEXUPL_D : FEXUPL_D_ENC, FEXUPL_D_DESC, Requires<[HasMSA]>; 2227 2228def FEXUPR_W : FEXUPR_W_ENC, FEXUPR_W_DESC, Requires<[HasMSA]>; 2229def FEXUPR_D : FEXUPR_D_ENC, FEXUPR_D_DESC, Requires<[HasMSA]>; 2230 2231def FFINT_S_W : FFINT_S_W_ENC, FFINT_S_W_DESC, Requires<[HasMSA]>; 2232def FFINT_S_D : FFINT_S_D_ENC, FFINT_S_D_DESC, Requires<[HasMSA]>; 2233 2234def FFINT_U_W : FFINT_U_W_ENC, FFINT_U_W_DESC, Requires<[HasMSA]>; 2235def FFINT_U_D : FFINT_U_D_ENC, FFINT_U_D_DESC, Requires<[HasMSA]>; 2236 2237def FFQL_W : FFQL_W_ENC, FFQL_W_DESC, Requires<[HasMSA]>; 2238def FFQL_D : FFQL_D_ENC, FFQL_D_DESC, Requires<[HasMSA]>; 2239 2240def FFQR_W : FFQR_W_ENC, FFQR_W_DESC, Requires<[HasMSA]>; 2241def FFQR_D : FFQR_D_ENC, FFQR_D_DESC, Requires<[HasMSA]>; 2242 2243def FILL_B : FILL_B_ENC, FILL_B_DESC, Requires<[HasMSA]>; 2244def FILL_H : FILL_H_ENC, FILL_H_DESC, Requires<[HasMSA]>; 2245def FILL_W : FILL_W_ENC, FILL_W_DESC, Requires<[HasMSA]>; 2246 2247def FLOG2_W : FLOG2_W_ENC, FLOG2_W_DESC, Requires<[HasMSA]>; 2248def FLOG2_D : FLOG2_D_ENC, FLOG2_D_DESC, Requires<[HasMSA]>; 2249 2250def FMADD_W : FMADD_W_ENC, FMADD_W_DESC, Requires<[HasMSA]>; 2251def FMADD_D : FMADD_D_ENC, FMADD_D_DESC, Requires<[HasMSA]>; 2252 2253def FMAX_W : FMAX_W_ENC, FMAX_W_DESC, Requires<[HasMSA]>; 2254def FMAX_D : FMAX_D_ENC, FMAX_D_DESC, Requires<[HasMSA]>; 2255 2256def FMAX_A_W : FMAX_A_W_ENC, FMAX_A_W_DESC, Requires<[HasMSA]>; 2257def FMAX_A_D : FMAX_A_D_ENC, FMAX_A_D_DESC, Requires<[HasMSA]>; 2258 2259def FMIN_W : FMIN_W_ENC, FMIN_W_DESC, Requires<[HasMSA]>; 2260def FMIN_D : FMIN_D_ENC, FMIN_D_DESC, Requires<[HasMSA]>; 2261 2262def FMIN_A_W : FMIN_A_W_ENC, FMIN_A_W_DESC, Requires<[HasMSA]>; 2263def FMIN_A_D : FMIN_A_D_ENC, FMIN_A_D_DESC, Requires<[HasMSA]>; 2264 2265def FMSUB_W : FMSUB_W_ENC, FMSUB_W_DESC, Requires<[HasMSA]>; 2266def FMSUB_D : FMSUB_D_ENC, FMSUB_D_DESC, Requires<[HasMSA]>; 2267 2268def FMUL_W : FMUL_W_ENC, FMUL_W_DESC, Requires<[HasMSA]>; 2269def FMUL_D : FMUL_D_ENC, FMUL_D_DESC, Requires<[HasMSA]>; 2270 2271def FRINT_W : FRINT_W_ENC, FRINT_W_DESC, Requires<[HasMSA]>; 2272def FRINT_D : FRINT_D_ENC, FRINT_D_DESC, Requires<[HasMSA]>; 2273 2274def FRCP_W : FRCP_W_ENC, FRCP_W_DESC, Requires<[HasMSA]>; 2275def FRCP_D : FRCP_D_ENC, FRCP_D_DESC, Requires<[HasMSA]>; 2276 2277def FRSQRT_W : FRSQRT_W_ENC, FRSQRT_W_DESC, Requires<[HasMSA]>; 2278def FRSQRT_D : FRSQRT_D_ENC, FRSQRT_D_DESC, Requires<[HasMSA]>; 2279 2280def FSAF_W : FSAF_W_ENC, FSAF_W_DESC, Requires<[HasMSA]>; 2281def FSAF_D : FSAF_D_ENC, FSAF_D_DESC, Requires<[HasMSA]>; 2282 2283def FSEQ_W : FSEQ_W_ENC, FSEQ_W_DESC, Requires<[HasMSA]>; 2284def FSEQ_D : FSEQ_D_ENC, FSEQ_D_DESC, Requires<[HasMSA]>; 2285 2286def FSLE_W : FSLE_W_ENC, FSLE_W_DESC, Requires<[HasMSA]>; 2287def FSLE_D : FSLE_D_ENC, FSLE_D_DESC, Requires<[HasMSA]>; 2288 2289def FSLT_W : FSLT_W_ENC, FSLT_W_DESC, Requires<[HasMSA]>; 2290def FSLT_D : FSLT_D_ENC, FSLT_D_DESC, Requires<[HasMSA]>; 2291 2292def FSNE_W : FSNE_W_ENC, FSNE_W_DESC, Requires<[HasMSA]>; 2293def FSNE_D : FSNE_D_ENC, FSNE_D_DESC, Requires<[HasMSA]>; 2294 2295def FSOR_W : FSOR_W_ENC, FSOR_W_DESC, Requires<[HasMSA]>; 2296def FSOR_D : FSOR_D_ENC, FSOR_D_DESC, Requires<[HasMSA]>; 2297 2298def FSQRT_W : FSQRT_W_ENC, FSQRT_W_DESC, Requires<[HasMSA]>; 2299def FSQRT_D : FSQRT_D_ENC, FSQRT_D_DESC, Requires<[HasMSA]>; 2300 2301def FSUB_W : FSUB_W_ENC, FSUB_W_DESC, Requires<[HasMSA]>; 2302def FSUB_D : FSUB_D_ENC, FSUB_D_DESC, Requires<[HasMSA]>; 2303 2304def FSUEQ_W : FSUEQ_W_ENC, FSUEQ_W_DESC, Requires<[HasMSA]>; 2305def FSUEQ_D : FSUEQ_D_ENC, FSUEQ_D_DESC, Requires<[HasMSA]>; 2306 2307def FSULE_W : FSULE_W_ENC, FSULE_W_DESC, Requires<[HasMSA]>; 2308def FSULE_D : FSULE_D_ENC, FSULE_D_DESC, Requires<[HasMSA]>; 2309 2310def FSULT_W : FSULT_W_ENC, FSULT_W_DESC, Requires<[HasMSA]>; 2311def FSULT_D : FSULT_D_ENC, FSULT_D_DESC, Requires<[HasMSA]>; 2312 2313def FSUN_W : FSUN_W_ENC, FSUN_W_DESC, Requires<[HasMSA]>; 2314def FSUN_D : FSUN_D_ENC, FSUN_D_DESC, Requires<[HasMSA]>; 2315 2316def FSUNE_W : FSUNE_W_ENC, FSUNE_W_DESC, Requires<[HasMSA]>; 2317def FSUNE_D : FSUNE_D_ENC, FSUNE_D_DESC, Requires<[HasMSA]>; 2318 2319def FTRUNC_S_W : FTRUNC_S_W_ENC, FTRUNC_S_W_DESC, Requires<[HasMSA]>; 2320def FTRUNC_S_D : FTRUNC_S_D_ENC, FTRUNC_S_D_DESC, Requires<[HasMSA]>; 2321 2322def FTRUNC_U_W : FTRUNC_U_W_ENC, FTRUNC_U_W_DESC, Requires<[HasMSA]>; 2323def FTRUNC_U_D : FTRUNC_U_D_ENC, FTRUNC_U_D_DESC, Requires<[HasMSA]>; 2324 2325def FTINT_S_W : FTINT_S_W_ENC, FTINT_S_W_DESC, Requires<[HasMSA]>; 2326def FTINT_S_D : FTINT_S_D_ENC, FTINT_S_D_DESC, Requires<[HasMSA]>; 2327 2328def FTINT_U_W : FTINT_U_W_ENC, FTINT_U_W_DESC, Requires<[HasMSA]>; 2329def FTINT_U_D : FTINT_U_D_ENC, FTINT_U_D_DESC, Requires<[HasMSA]>; 2330 2331def FTQ_H : FTQ_H_ENC, FTQ_H_DESC, Requires<[HasMSA]>; 2332def FTQ_W : FTQ_W_ENC, FTQ_W_DESC, Requires<[HasMSA]>; 2333 2334def HADD_S_H : HADD_S_H_ENC, HADD_S_H_DESC, Requires<[HasMSA]>; 2335def HADD_S_W : HADD_S_W_ENC, HADD_S_W_DESC, Requires<[HasMSA]>; 2336def HADD_S_D : HADD_S_D_ENC, HADD_S_D_DESC, Requires<[HasMSA]>; 2337 2338def HADD_U_H : HADD_U_H_ENC, HADD_U_H_DESC, Requires<[HasMSA]>; 2339def HADD_U_W : HADD_U_W_ENC, HADD_U_W_DESC, Requires<[HasMSA]>; 2340def HADD_U_D : HADD_U_D_ENC, HADD_U_D_DESC, Requires<[HasMSA]>; 2341 2342def HSUB_S_H : HSUB_S_H_ENC, HSUB_S_H_DESC, Requires<[HasMSA]>; 2343def HSUB_S_W : HSUB_S_W_ENC, HSUB_S_W_DESC, Requires<[HasMSA]>; 2344def HSUB_S_D : HSUB_S_D_ENC, HSUB_S_D_DESC, Requires<[HasMSA]>; 2345 2346def HSUB_U_H : HSUB_U_H_ENC, HSUB_U_H_DESC, Requires<[HasMSA]>; 2347def HSUB_U_W : HSUB_U_W_ENC, HSUB_U_W_DESC, Requires<[HasMSA]>; 2348def HSUB_U_D : HSUB_U_D_ENC, HSUB_U_D_DESC, Requires<[HasMSA]>; 2349 2350def ILVEV_B : ILVEV_B_ENC, ILVEV_B_DESC, Requires<[HasMSA]>; 2351def ILVEV_H : ILVEV_H_ENC, ILVEV_H_DESC, Requires<[HasMSA]>; 2352def ILVEV_W : ILVEV_W_ENC, ILVEV_W_DESC, Requires<[HasMSA]>; 2353def ILVEV_D : ILVEV_D_ENC, ILVEV_D_DESC, Requires<[HasMSA]>; 2354 2355def ILVL_B : ILVL_B_ENC, ILVL_B_DESC, Requires<[HasMSA]>; 2356def ILVL_H : ILVL_H_ENC, ILVL_H_DESC, Requires<[HasMSA]>; 2357def ILVL_W : ILVL_W_ENC, ILVL_W_DESC, Requires<[HasMSA]>; 2358def ILVL_D : ILVL_D_ENC, ILVL_D_DESC, Requires<[HasMSA]>; 2359 2360def ILVOD_B : ILVOD_B_ENC, ILVOD_B_DESC, Requires<[HasMSA]>; 2361def ILVOD_H : ILVOD_H_ENC, ILVOD_H_DESC, Requires<[HasMSA]>; 2362def ILVOD_W : ILVOD_W_ENC, ILVOD_W_DESC, Requires<[HasMSA]>; 2363def ILVOD_D : ILVOD_D_ENC, ILVOD_D_DESC, Requires<[HasMSA]>; 2364 2365def ILVR_B : ILVR_B_ENC, ILVR_B_DESC, Requires<[HasMSA]>; 2366def ILVR_H : ILVR_H_ENC, ILVR_H_DESC, Requires<[HasMSA]>; 2367def ILVR_W : ILVR_W_ENC, ILVR_W_DESC, Requires<[HasMSA]>; 2368def ILVR_D : ILVR_D_ENC, ILVR_D_DESC, Requires<[HasMSA]>; 2369 2370def INSERT_B : INSERT_B_ENC, INSERT_B_DESC, Requires<[HasMSA]>; 2371def INSERT_H : INSERT_H_ENC, INSERT_H_DESC, Requires<[HasMSA]>; 2372def INSERT_W : INSERT_W_ENC, INSERT_W_DESC, Requires<[HasMSA]>; 2373 2374def INSVE_B : INSVE_B_ENC, INSVE_B_DESC, Requires<[HasMSA]>; 2375def INSVE_H : INSVE_H_ENC, INSVE_H_DESC, Requires<[HasMSA]>; 2376def INSVE_W : INSVE_W_ENC, INSVE_W_DESC, Requires<[HasMSA]>; 2377def INSVE_D : INSVE_D_ENC, INSVE_D_DESC, Requires<[HasMSA]>; 2378 2379def LD_B: LD_B_ENC, LD_B_DESC, Requires<[HasMSA]>; 2380def LD_H: LD_H_ENC, LD_H_DESC, Requires<[HasMSA]>; 2381def LD_W: LD_W_ENC, LD_W_DESC, Requires<[HasMSA]>; 2382def LD_D: LD_D_ENC, LD_D_DESC, Requires<[HasMSA]>; 2383 2384def LDI_B : LDI_B_ENC, LDI_B_DESC, Requires<[HasMSA]>; 2385def LDI_H : LDI_H_ENC, LDI_H_DESC, Requires<[HasMSA]>; 2386def LDI_W : LDI_W_ENC, LDI_W_DESC, Requires<[HasMSA]>; 2387 2388def LDX_B: LDX_B_ENC, LDX_B_DESC, Requires<[HasMSA]>; 2389def LDX_H: LDX_H_ENC, LDX_H_DESC, Requires<[HasMSA]>; 2390def LDX_W: LDX_W_ENC, LDX_W_DESC, Requires<[HasMSA]>; 2391def LDX_D: LDX_D_ENC, LDX_D_DESC, Requires<[HasMSA]>; 2392 2393def MADD_Q_H : MADD_Q_H_ENC, MADD_Q_H_DESC, Requires<[HasMSA]>; 2394def MADD_Q_W : MADD_Q_W_ENC, MADD_Q_W_DESC, Requires<[HasMSA]>; 2395 2396def MADDR_Q_H : MADDR_Q_H_ENC, MADDR_Q_H_DESC, Requires<[HasMSA]>; 2397def MADDR_Q_W : MADDR_Q_W_ENC, MADDR_Q_W_DESC, Requires<[HasMSA]>; 2398 2399def MADDV_B : MADDV_B_ENC, MADDV_B_DESC, Requires<[HasMSA]>; 2400def MADDV_H : MADDV_H_ENC, MADDV_H_DESC, Requires<[HasMSA]>; 2401def MADDV_W : MADDV_W_ENC, MADDV_W_DESC, Requires<[HasMSA]>; 2402def MADDV_D : MADDV_D_ENC, MADDV_D_DESC, Requires<[HasMSA]>; 2403 2404def MAX_A_B : MAX_A_B_ENC, MAX_A_B_DESC, Requires<[HasMSA]>; 2405def MAX_A_H : MAX_A_H_ENC, MAX_A_H_DESC, Requires<[HasMSA]>; 2406def MAX_A_W : MAX_A_W_ENC, MAX_A_W_DESC, Requires<[HasMSA]>; 2407def MAX_A_D : MAX_A_D_ENC, MAX_A_D_DESC, Requires<[HasMSA]>; 2408 2409def MAX_S_B : MAX_S_B_ENC, MAX_S_B_DESC, Requires<[HasMSA]>; 2410def MAX_S_H : MAX_S_H_ENC, MAX_S_H_DESC, Requires<[HasMSA]>; 2411def MAX_S_W : MAX_S_W_ENC, MAX_S_W_DESC, Requires<[HasMSA]>; 2412def MAX_S_D : MAX_S_D_ENC, MAX_S_D_DESC, Requires<[HasMSA]>; 2413 2414def MAX_U_B : MAX_U_B_ENC, MAX_U_B_DESC, Requires<[HasMSA]>; 2415def MAX_U_H : MAX_U_H_ENC, MAX_U_H_DESC, Requires<[HasMSA]>; 2416def MAX_U_W : MAX_U_W_ENC, MAX_U_W_DESC, Requires<[HasMSA]>; 2417def MAX_U_D : MAX_U_D_ENC, MAX_U_D_DESC, Requires<[HasMSA]>; 2418 2419def MAXI_S_B : MAXI_S_B_ENC, MAXI_S_B_DESC, Requires<[HasMSA]>; 2420def MAXI_S_H : MAXI_S_H_ENC, MAXI_S_H_DESC, Requires<[HasMSA]>; 2421def MAXI_S_W : MAXI_S_W_ENC, MAXI_S_W_DESC, Requires<[HasMSA]>; 2422def MAXI_S_D : MAXI_S_D_ENC, MAXI_S_D_DESC, Requires<[HasMSA]>; 2423 2424def MAXI_U_B : MAXI_U_B_ENC, MAXI_U_B_DESC, Requires<[HasMSA]>; 2425def MAXI_U_H : MAXI_U_H_ENC, MAXI_U_H_DESC, Requires<[HasMSA]>; 2426def MAXI_U_W : MAXI_U_W_ENC, MAXI_U_W_DESC, Requires<[HasMSA]>; 2427def MAXI_U_D : MAXI_U_D_ENC, MAXI_U_D_DESC, Requires<[HasMSA]>; 2428 2429def MIN_A_B : MIN_A_B_ENC, MIN_A_B_DESC, Requires<[HasMSA]>; 2430def MIN_A_H : MIN_A_H_ENC, MIN_A_H_DESC, Requires<[HasMSA]>; 2431def MIN_A_W : MIN_A_W_ENC, MIN_A_W_DESC, Requires<[HasMSA]>; 2432def MIN_A_D : MIN_A_D_ENC, MIN_A_D_DESC, Requires<[HasMSA]>; 2433 2434def MIN_S_B : MIN_S_B_ENC, MIN_S_B_DESC, Requires<[HasMSA]>; 2435def MIN_S_H : MIN_S_H_ENC, MIN_S_H_DESC, Requires<[HasMSA]>; 2436def MIN_S_W : MIN_S_W_ENC, MIN_S_W_DESC, Requires<[HasMSA]>; 2437def MIN_S_D : MIN_S_D_ENC, MIN_S_D_DESC, Requires<[HasMSA]>; 2438 2439def MIN_U_B : MIN_U_B_ENC, MIN_U_B_DESC, Requires<[HasMSA]>; 2440def MIN_U_H : MIN_U_H_ENC, MIN_U_H_DESC, Requires<[HasMSA]>; 2441def MIN_U_W : MIN_U_W_ENC, MIN_U_W_DESC, Requires<[HasMSA]>; 2442def MIN_U_D : MIN_U_D_ENC, MIN_U_D_DESC, Requires<[HasMSA]>; 2443 2444def MINI_S_B : MINI_S_B_ENC, MINI_S_B_DESC, Requires<[HasMSA]>; 2445def MINI_S_H : MINI_S_H_ENC, MINI_S_H_DESC, Requires<[HasMSA]>; 2446def MINI_S_W : MINI_S_W_ENC, MINI_S_W_DESC, Requires<[HasMSA]>; 2447def MINI_S_D : MINI_S_D_ENC, MINI_S_D_DESC, Requires<[HasMSA]>; 2448 2449def MINI_U_B : MINI_U_B_ENC, MINI_U_B_DESC, Requires<[HasMSA]>; 2450def MINI_U_H : MINI_U_H_ENC, MINI_U_H_DESC, Requires<[HasMSA]>; 2451def MINI_U_W : MINI_U_W_ENC, MINI_U_W_DESC, Requires<[HasMSA]>; 2452def MINI_U_D : MINI_U_D_ENC, MINI_U_D_DESC, Requires<[HasMSA]>; 2453 2454def MOD_S_B : MOD_S_B_ENC, MOD_S_B_DESC, Requires<[HasMSA]>; 2455def MOD_S_H : MOD_S_H_ENC, MOD_S_H_DESC, Requires<[HasMSA]>; 2456def MOD_S_W : MOD_S_W_ENC, MOD_S_W_DESC, Requires<[HasMSA]>; 2457def MOD_S_D : MOD_S_D_ENC, MOD_S_D_DESC, Requires<[HasMSA]>; 2458 2459def MOD_U_B : MOD_U_B_ENC, MOD_U_B_DESC, Requires<[HasMSA]>; 2460def MOD_U_H : MOD_U_H_ENC, MOD_U_H_DESC, Requires<[HasMSA]>; 2461def MOD_U_W : MOD_U_W_ENC, MOD_U_W_DESC, Requires<[HasMSA]>; 2462def MOD_U_D : MOD_U_D_ENC, MOD_U_D_DESC, Requires<[HasMSA]>; 2463 2464def MOVE_V : MOVE_V_ENC, MOVE_V_DESC, Requires<[HasMSA]>; 2465 2466def MSUB_Q_H : MSUB_Q_H_ENC, MSUB_Q_H_DESC, Requires<[HasMSA]>; 2467def MSUB_Q_W : MSUB_Q_W_ENC, MSUB_Q_W_DESC, Requires<[HasMSA]>; 2468 2469def MSUBR_Q_H : MSUBR_Q_H_ENC, MSUBR_Q_H_DESC, Requires<[HasMSA]>; 2470def MSUBR_Q_W : MSUBR_Q_W_ENC, MSUBR_Q_W_DESC, Requires<[HasMSA]>; 2471 2472def MSUBV_B : MSUBV_B_ENC, MSUBV_B_DESC, Requires<[HasMSA]>; 2473def MSUBV_H : MSUBV_H_ENC, MSUBV_H_DESC, Requires<[HasMSA]>; 2474def MSUBV_W : MSUBV_W_ENC, MSUBV_W_DESC, Requires<[HasMSA]>; 2475def MSUBV_D : MSUBV_D_ENC, MSUBV_D_DESC, Requires<[HasMSA]>; 2476 2477def MUL_Q_H : MUL_Q_H_ENC, MUL_Q_H_DESC, Requires<[HasMSA]>; 2478def MUL_Q_W : MUL_Q_W_ENC, MUL_Q_W_DESC, Requires<[HasMSA]>; 2479 2480def MULR_Q_H : MULR_Q_H_ENC, MULR_Q_H_DESC, Requires<[HasMSA]>; 2481def MULR_Q_W : MULR_Q_W_ENC, MULR_Q_W_DESC, Requires<[HasMSA]>; 2482 2483def MULV_B : MULV_B_ENC, MULV_B_DESC, Requires<[HasMSA]>; 2484def MULV_H : MULV_H_ENC, MULV_H_DESC, Requires<[HasMSA]>; 2485def MULV_W : MULV_W_ENC, MULV_W_DESC, Requires<[HasMSA]>; 2486def MULV_D : MULV_D_ENC, MULV_D_DESC, Requires<[HasMSA]>; 2487 2488def NLOC_B : NLOC_B_ENC, NLOC_B_DESC, Requires<[HasMSA]>; 2489def NLOC_H : NLOC_H_ENC, NLOC_H_DESC, Requires<[HasMSA]>; 2490def NLOC_W : NLOC_W_ENC, NLOC_W_DESC, Requires<[HasMSA]>; 2491def NLOC_D : NLOC_D_ENC, NLOC_D_DESC, Requires<[HasMSA]>; 2492 2493def NLZC_B : NLZC_B_ENC, NLZC_B_DESC, Requires<[HasMSA]>; 2494def NLZC_H : NLZC_H_ENC, NLZC_H_DESC, Requires<[HasMSA]>; 2495def NLZC_W : NLZC_W_ENC, NLZC_W_DESC, Requires<[HasMSA]>; 2496def NLZC_D : NLZC_D_ENC, NLZC_D_DESC, Requires<[HasMSA]>; 2497 2498def NOR_V : NOR_V_ENC, NOR_V_DESC, Requires<[HasMSA]>; 2499 2500def NORI_B : NORI_B_ENC, NORI_B_DESC, Requires<[HasMSA]>; 2501 2502def OR_V : OR_V_ENC, OR_V_DESC, Requires<[HasMSA]>; 2503 2504def ORI_B : ORI_B_ENC, ORI_B_DESC, Requires<[HasMSA]>; 2505 2506def PCKEV_B : PCKEV_B_ENC, PCKEV_B_DESC, Requires<[HasMSA]>; 2507def PCKEV_H : PCKEV_H_ENC, PCKEV_H_DESC, Requires<[HasMSA]>; 2508def PCKEV_W : PCKEV_W_ENC, PCKEV_W_DESC, Requires<[HasMSA]>; 2509def PCKEV_D : PCKEV_D_ENC, PCKEV_D_DESC, Requires<[HasMSA]>; 2510 2511def PCKOD_B : PCKOD_B_ENC, PCKOD_B_DESC, Requires<[HasMSA]>; 2512def PCKOD_H : PCKOD_H_ENC, PCKOD_H_DESC, Requires<[HasMSA]>; 2513def PCKOD_W : PCKOD_W_ENC, PCKOD_W_DESC, Requires<[HasMSA]>; 2514def PCKOD_D : PCKOD_D_ENC, PCKOD_D_DESC, Requires<[HasMSA]>; 2515 2516def PCNT_B : PCNT_B_ENC, PCNT_B_DESC, Requires<[HasMSA]>; 2517def PCNT_H : PCNT_H_ENC, PCNT_H_DESC, Requires<[HasMSA]>; 2518def PCNT_W : PCNT_W_ENC, PCNT_W_DESC, Requires<[HasMSA]>; 2519def PCNT_D : PCNT_D_ENC, PCNT_D_DESC, Requires<[HasMSA]>; 2520 2521def SAT_S_B : SAT_S_B_ENC, SAT_S_B_DESC, Requires<[HasMSA]>; 2522def SAT_S_H : SAT_S_H_ENC, SAT_S_H_DESC, Requires<[HasMSA]>; 2523def SAT_S_W : SAT_S_W_ENC, SAT_S_W_DESC, Requires<[HasMSA]>; 2524def SAT_S_D : SAT_S_D_ENC, SAT_S_D_DESC, Requires<[HasMSA]>; 2525 2526def SAT_U_B : SAT_U_B_ENC, SAT_U_B_DESC, Requires<[HasMSA]>; 2527def SAT_U_H : SAT_U_H_ENC, SAT_U_H_DESC, Requires<[HasMSA]>; 2528def SAT_U_W : SAT_U_W_ENC, SAT_U_W_DESC, Requires<[HasMSA]>; 2529def SAT_U_D : SAT_U_D_ENC, SAT_U_D_DESC, Requires<[HasMSA]>; 2530 2531def SHF_B : SHF_B_ENC, SHF_B_DESC, Requires<[HasMSA]>; 2532def SHF_H : SHF_H_ENC, SHF_H_DESC, Requires<[HasMSA]>; 2533def SHF_W : SHF_W_ENC, SHF_W_DESC, Requires<[HasMSA]>; 2534 2535def SLD_B : SLD_B_ENC, SLD_B_DESC, Requires<[HasMSA]>; 2536def SLD_H : SLD_H_ENC, SLD_H_DESC, Requires<[HasMSA]>; 2537def SLD_W : SLD_W_ENC, SLD_W_DESC, Requires<[HasMSA]>; 2538def SLD_D : SLD_D_ENC, SLD_D_DESC, Requires<[HasMSA]>; 2539 2540def SLDI_B : SLDI_B_ENC, SLDI_B_DESC, Requires<[HasMSA]>; 2541def SLDI_H : SLDI_H_ENC, SLDI_H_DESC, Requires<[HasMSA]>; 2542def SLDI_W : SLDI_W_ENC, SLDI_W_DESC, Requires<[HasMSA]>; 2543def SLDI_D : SLDI_D_ENC, SLDI_D_DESC, Requires<[HasMSA]>; 2544 2545def SLL_B : SLL_B_ENC, SLL_B_DESC, Requires<[HasMSA]>; 2546def SLL_H : SLL_H_ENC, SLL_H_DESC, Requires<[HasMSA]>; 2547def SLL_W : SLL_W_ENC, SLL_W_DESC, Requires<[HasMSA]>; 2548def SLL_D : SLL_D_ENC, SLL_D_DESC, Requires<[HasMSA]>; 2549 2550def SLLI_B : SLLI_B_ENC, SLLI_B_DESC, Requires<[HasMSA]>; 2551def SLLI_H : SLLI_H_ENC, SLLI_H_DESC, Requires<[HasMSA]>; 2552def SLLI_W : SLLI_W_ENC, SLLI_W_DESC, Requires<[HasMSA]>; 2553def SLLI_D : SLLI_D_ENC, SLLI_D_DESC, Requires<[HasMSA]>; 2554 2555def SPLAT_B : SPLAT_B_ENC, SPLAT_B_DESC, Requires<[HasMSA]>; 2556def SPLAT_H : SPLAT_H_ENC, SPLAT_H_DESC, Requires<[HasMSA]>; 2557def SPLAT_W : SPLAT_W_ENC, SPLAT_W_DESC, Requires<[HasMSA]>; 2558def SPLAT_D : SPLAT_D_ENC, SPLAT_D_DESC, Requires<[HasMSA]>; 2559 2560def SPLATI_B : SPLATI_B_ENC, SPLATI_B_DESC, Requires<[HasMSA]>; 2561def SPLATI_H : SPLATI_H_ENC, SPLATI_H_DESC, Requires<[HasMSA]>; 2562def SPLATI_W : SPLATI_W_ENC, SPLATI_W_DESC, Requires<[HasMSA]>; 2563def SPLATI_D : SPLATI_D_ENC, SPLATI_D_DESC, Requires<[HasMSA]>; 2564 2565def SRA_B : SRA_B_ENC, SRA_B_DESC, Requires<[HasMSA]>; 2566def SRA_H : SRA_H_ENC, SRA_H_DESC, Requires<[HasMSA]>; 2567def SRA_W : SRA_W_ENC, SRA_W_DESC, Requires<[HasMSA]>; 2568def SRA_D : SRA_D_ENC, SRA_D_DESC, Requires<[HasMSA]>; 2569 2570def SRAI_B : SRAI_B_ENC, SRAI_B_DESC, Requires<[HasMSA]>; 2571def SRAI_H : SRAI_H_ENC, SRAI_H_DESC, Requires<[HasMSA]>; 2572def SRAI_W : SRAI_W_ENC, SRAI_W_DESC, Requires<[HasMSA]>; 2573def SRAI_D : SRAI_D_ENC, SRAI_D_DESC, Requires<[HasMSA]>; 2574 2575def SRAR_B : SRAR_B_ENC, SRAR_B_DESC, Requires<[HasMSA]>; 2576def SRAR_H : SRAR_H_ENC, SRAR_H_DESC, Requires<[HasMSA]>; 2577def SRAR_W : SRAR_W_ENC, SRAR_W_DESC, Requires<[HasMSA]>; 2578def SRAR_D : SRAR_D_ENC, SRAR_D_DESC, Requires<[HasMSA]>; 2579 2580def SRARI_B : SRARI_B_ENC, SRARI_B_DESC, Requires<[HasMSA]>; 2581def SRARI_H : SRARI_H_ENC, SRARI_H_DESC, Requires<[HasMSA]>; 2582def SRARI_W : SRARI_W_ENC, SRARI_W_DESC, Requires<[HasMSA]>; 2583def SRARI_D : SRARI_D_ENC, SRARI_D_DESC, Requires<[HasMSA]>; 2584 2585def SRL_B : SRL_B_ENC, SRL_B_DESC, Requires<[HasMSA]>; 2586def SRL_H : SRL_H_ENC, SRL_H_DESC, Requires<[HasMSA]>; 2587def SRL_W : SRL_W_ENC, SRL_W_DESC, Requires<[HasMSA]>; 2588def SRL_D : SRL_D_ENC, SRL_D_DESC, Requires<[HasMSA]>; 2589 2590def SRLI_B : SRLI_B_ENC, SRLI_B_DESC, Requires<[HasMSA]>; 2591def SRLI_H : SRLI_H_ENC, SRLI_H_DESC, Requires<[HasMSA]>; 2592def SRLI_W : SRLI_W_ENC, SRLI_W_DESC, Requires<[HasMSA]>; 2593def SRLI_D : SRLI_D_ENC, SRLI_D_DESC, Requires<[HasMSA]>; 2594 2595def SRLR_B : SRLR_B_ENC, SRLR_B_DESC, Requires<[HasMSA]>; 2596def SRLR_H : SRLR_H_ENC, SRLR_H_DESC, Requires<[HasMSA]>; 2597def SRLR_W : SRLR_W_ENC, SRLR_W_DESC, Requires<[HasMSA]>; 2598def SRLR_D : SRLR_D_ENC, SRLR_D_DESC, Requires<[HasMSA]>; 2599 2600def SRLRI_B : SRLRI_B_ENC, SRLRI_B_DESC, Requires<[HasMSA]>; 2601def SRLRI_H : SRLRI_H_ENC, SRLRI_H_DESC, Requires<[HasMSA]>; 2602def SRLRI_W : SRLRI_W_ENC, SRLRI_W_DESC, Requires<[HasMSA]>; 2603def SRLRI_D : SRLRI_D_ENC, SRLRI_D_DESC, Requires<[HasMSA]>; 2604 2605def ST_B: ST_B_ENC, ST_B_DESC, Requires<[HasMSA]>; 2606def ST_H: ST_H_ENC, ST_H_DESC, Requires<[HasMSA]>; 2607def ST_W: ST_W_ENC, ST_W_DESC, Requires<[HasMSA]>; 2608def ST_D: ST_D_ENC, ST_D_DESC, Requires<[HasMSA]>; 2609 2610def STX_B: STX_B_ENC, STX_B_DESC, Requires<[HasMSA]>; 2611def STX_H: STX_H_ENC, STX_H_DESC, Requires<[HasMSA]>; 2612def STX_W: STX_W_ENC, STX_W_DESC, Requires<[HasMSA]>; 2613def STX_D: STX_D_ENC, STX_D_DESC, Requires<[HasMSA]>; 2614 2615def SUBS_S_B : SUBS_S_B_ENC, SUBS_S_B_DESC, Requires<[HasMSA]>; 2616def SUBS_S_H : SUBS_S_H_ENC, SUBS_S_H_DESC, Requires<[HasMSA]>; 2617def SUBS_S_W : SUBS_S_W_ENC, SUBS_S_W_DESC, Requires<[HasMSA]>; 2618def SUBS_S_D : SUBS_S_D_ENC, SUBS_S_D_DESC, Requires<[HasMSA]>; 2619 2620def SUBS_U_B : SUBS_U_B_ENC, SUBS_U_B_DESC, Requires<[HasMSA]>; 2621def SUBS_U_H : SUBS_U_H_ENC, SUBS_U_H_DESC, Requires<[HasMSA]>; 2622def SUBS_U_W : SUBS_U_W_ENC, SUBS_U_W_DESC, Requires<[HasMSA]>; 2623def SUBS_U_D : SUBS_U_D_ENC, SUBS_U_D_DESC, Requires<[HasMSA]>; 2624 2625def SUBSUS_U_B : SUBSUS_U_B_ENC, SUBSUS_U_B_DESC, Requires<[HasMSA]>; 2626def SUBSUS_U_H : SUBSUS_U_H_ENC, SUBSUS_U_H_DESC, Requires<[HasMSA]>; 2627def SUBSUS_U_W : SUBSUS_U_W_ENC, SUBSUS_U_W_DESC, Requires<[HasMSA]>; 2628def SUBSUS_U_D : SUBSUS_U_D_ENC, SUBSUS_U_D_DESC, Requires<[HasMSA]>; 2629 2630def SUBSUU_S_B : SUBSUU_S_B_ENC, SUBSUU_S_B_DESC, Requires<[HasMSA]>; 2631def SUBSUU_S_H : SUBSUU_S_H_ENC, SUBSUU_S_H_DESC, Requires<[HasMSA]>; 2632def SUBSUU_S_W : SUBSUU_S_W_ENC, SUBSUU_S_W_DESC, Requires<[HasMSA]>; 2633def SUBSUU_S_D : SUBSUU_S_D_ENC, SUBSUU_S_D_DESC, Requires<[HasMSA]>; 2634 2635def SUBV_B : SUBV_B_ENC, SUBV_B_DESC, Requires<[HasMSA]>; 2636def SUBV_H : SUBV_H_ENC, SUBV_H_DESC, Requires<[HasMSA]>; 2637def SUBV_W : SUBV_W_ENC, SUBV_W_DESC, Requires<[HasMSA]>; 2638def SUBV_D : SUBV_D_ENC, SUBV_D_DESC, Requires<[HasMSA]>; 2639 2640def SUBVI_B : SUBVI_B_ENC, SUBVI_B_DESC, Requires<[HasMSA]>; 2641def SUBVI_H : SUBVI_H_ENC, SUBVI_H_DESC, Requires<[HasMSA]>; 2642def SUBVI_W : SUBVI_W_ENC, SUBVI_W_DESC, Requires<[HasMSA]>; 2643def SUBVI_D : SUBVI_D_ENC, SUBVI_D_DESC, Requires<[HasMSA]>; 2644 2645def VSHF_B : VSHF_B_ENC, VSHF_B_DESC, Requires<[HasMSA]>; 2646def VSHF_H : VSHF_H_ENC, VSHF_H_DESC, Requires<[HasMSA]>; 2647def VSHF_W : VSHF_W_ENC, VSHF_W_DESC, Requires<[HasMSA]>; 2648def VSHF_D : VSHF_D_ENC, VSHF_D_DESC, Requires<[HasMSA]>; 2649 2650def XOR_V : XOR_V_ENC, XOR_V_DESC, Requires<[HasMSA]>; 2651 2652def XORI_B : XORI_B_ENC, XORI_B_DESC, Requires<[HasMSA]>; 2653 2654// Patterns. 2655class MSAPat<dag pattern, dag result, list<Predicate> pred = [HasMSA]> : 2656 Pat<pattern, result>, Requires<pred>; 2657 2658def : MSAPat<(v16i8 (load addr:$addr)), (LD_B addr:$addr)>; 2659def : MSAPat<(v8i16 (load addr:$addr)), (LD_H addr:$addr)>; 2660def : MSAPat<(v4i32 (load addr:$addr)), (LD_W addr:$addr)>; 2661def : MSAPat<(v2i64 (load addr:$addr)), (LD_D addr:$addr)>; 2662def : MSAPat<(v8f16 (load addr:$addr)), (LD_H addr:$addr)>; 2663def : MSAPat<(v4f32 (load addr:$addr)), (LD_W addr:$addr)>; 2664def : MSAPat<(v2f64 (load addr:$addr)), (LD_D addr:$addr)>; 2665 2666def : MSAPat<(v8f16 (load addrRegImm:$addr)), (LD_H addrRegImm:$addr)>; 2667def : MSAPat<(v4f32 (load addrRegImm:$addr)), (LD_W addrRegImm:$addr)>; 2668def : MSAPat<(v2f64 (load addrRegImm:$addr)), (LD_D addrRegImm:$addr)>; 2669 2670def : MSAPat<(store (v16i8 MSA128B:$ws), addr:$addr), 2671 (ST_B MSA128B:$ws, addr:$addr)>; 2672def : MSAPat<(store (v8i16 MSA128H:$ws), addr:$addr), 2673 (ST_H MSA128H:$ws, addr:$addr)>; 2674def : MSAPat<(store (v4i32 MSA128W:$ws), addr:$addr), 2675 (ST_W MSA128W:$ws, addr:$addr)>; 2676def : MSAPat<(store (v2i64 MSA128D:$ws), addr:$addr), 2677 (ST_D MSA128D:$ws, addr:$addr)>; 2678def : MSAPat<(store (v8f16 MSA128H:$ws), addr:$addr), 2679 (ST_H MSA128H:$ws, addr:$addr)>; 2680def : MSAPat<(store (v4f32 MSA128W:$ws), addr:$addr), 2681 (ST_W MSA128W:$ws, addr:$addr)>; 2682def : MSAPat<(store (v2f64 MSA128D:$ws), addr:$addr), 2683 (ST_D MSA128D:$ws, addr:$addr)>; 2684 2685def ST_FH : MSAPat<(store (v8f16 MSA128H:$ws), addrRegImm:$addr), 2686 (ST_H MSA128H:$ws, addrRegImm:$addr)>; 2687def ST_FW : MSAPat<(store (v4f32 MSA128W:$ws), addrRegImm:$addr), 2688 (ST_W MSA128W:$ws, addrRegImm:$addr)>; 2689def ST_FD : MSAPat<(store (v2f64 MSA128D:$ws), addrRegImm:$addr), 2690 (ST_D MSA128D:$ws, addrRegImm:$addr)>; 2691 2692class MSABitconvertPat<ValueType DstVT, ValueType SrcVT, 2693 RegisterClass DstRC, list<Predicate> preds = [HasMSA]> : 2694 MSAPat<(DstVT (bitconvert SrcVT:$src)), 2695 (COPY_TO_REGCLASS SrcVT:$src, DstRC), preds>; 2696 2697// These are endian-independant because the element size doesnt change 2698def : MSABitconvertPat<v8i16, v8f16, MSA128H>; 2699def : MSABitconvertPat<v4i32, v4f32, MSA128W>; 2700def : MSABitconvertPat<v2i64, v2f64, MSA128D>; 2701def : MSABitconvertPat<v8f16, v8i16, MSA128H>; 2702def : MSABitconvertPat<v4f32, v4i32, MSA128W>; 2703def : MSABitconvertPat<v2f64, v2i64, MSA128D>; 2704 2705// Little endian bitcasts are always no-ops 2706def : MSABitconvertPat<v16i8, v8i16, MSA128B, [HasMSA, IsLE]>; 2707def : MSABitconvertPat<v16i8, v4i32, MSA128B, [HasMSA, IsLE]>; 2708def : MSABitconvertPat<v16i8, v2i64, MSA128B, [HasMSA, IsLE]>; 2709def : MSABitconvertPat<v16i8, v8f16, MSA128B, [HasMSA, IsLE]>; 2710def : MSABitconvertPat<v16i8, v4f32, MSA128B, [HasMSA, IsLE]>; 2711def : MSABitconvertPat<v16i8, v2f64, MSA128B, [HasMSA, IsLE]>; 2712 2713def : MSABitconvertPat<v8i16, v16i8, MSA128H, [HasMSA, IsLE]>; 2714def : MSABitconvertPat<v8i16, v4i32, MSA128H, [HasMSA, IsLE]>; 2715def : MSABitconvertPat<v8i16, v2i64, MSA128H, [HasMSA, IsLE]>; 2716def : MSABitconvertPat<v8i16, v4f32, MSA128H, [HasMSA, IsLE]>; 2717def : MSABitconvertPat<v8i16, v2f64, MSA128H, [HasMSA, IsLE]>; 2718 2719def : MSABitconvertPat<v4i32, v16i8, MSA128W, [HasMSA, IsLE]>; 2720def : MSABitconvertPat<v4i32, v8i16, MSA128W, [HasMSA, IsLE]>; 2721def : MSABitconvertPat<v4i32, v2i64, MSA128W, [HasMSA, IsLE]>; 2722def : MSABitconvertPat<v4i32, v8f16, MSA128W, [HasMSA, IsLE]>; 2723def : MSABitconvertPat<v4i32, v2f64, MSA128W, [HasMSA, IsLE]>; 2724 2725def : MSABitconvertPat<v2i64, v16i8, MSA128D, [HasMSA, IsLE]>; 2726def : MSABitconvertPat<v2i64, v8i16, MSA128D, [HasMSA, IsLE]>; 2727def : MSABitconvertPat<v2i64, v4i32, MSA128D, [HasMSA, IsLE]>; 2728def : MSABitconvertPat<v2i64, v8f16, MSA128D, [HasMSA, IsLE]>; 2729def : MSABitconvertPat<v2i64, v4f32, MSA128D, [HasMSA, IsLE]>; 2730 2731def : MSABitconvertPat<v4f32, v16i8, MSA128W, [HasMSA, IsLE]>; 2732def : MSABitconvertPat<v4f32, v8i16, MSA128W, [HasMSA, IsLE]>; 2733def : MSABitconvertPat<v4f32, v2i64, MSA128W, [HasMSA, IsLE]>; 2734def : MSABitconvertPat<v4f32, v8f16, MSA128W, [HasMSA, IsLE]>; 2735def : MSABitconvertPat<v4f32, v2f64, MSA128W, [HasMSA, IsLE]>; 2736 2737def : MSABitconvertPat<v2f64, v16i8, MSA128D, [HasMSA, IsLE]>; 2738def : MSABitconvertPat<v2f64, v8i16, MSA128D, [HasMSA, IsLE]>; 2739def : MSABitconvertPat<v2f64, v4i32, MSA128D, [HasMSA, IsLE]>; 2740def : MSABitconvertPat<v2f64, v8f16, MSA128D, [HasMSA, IsLE]>; 2741def : MSABitconvertPat<v2f64, v4f32, MSA128D, [HasMSA, IsLE]>; 2742 2743// Big endian bitcasts expand to shuffle instructions. 2744// This is because bitcast is defined to be a store/load sequence and the 2745// vector store/load instructions are mixed-endian with respect to the vector 2746// as a whole (little endian with respect to element order, but big endian 2747// elements). 2748 2749class MSABitconvertReverseQuartersPat<ValueType DstVT, ValueType SrcVT, 2750 RegisterClass DstRC, MSAInst Insn, 2751 RegisterClass ViaRC> : 2752 MSAPat<(DstVT (bitconvert SrcVT:$src)), 2753 (COPY_TO_REGCLASS (Insn (COPY_TO_REGCLASS SrcVT:$src, ViaRC), 27), 2754 DstRC), 2755 [HasMSA, IsBE]>; 2756 2757class MSABitconvertReverseHalvesPat<ValueType DstVT, ValueType SrcVT, 2758 RegisterClass DstRC, MSAInst Insn, 2759 RegisterClass ViaRC> : 2760 MSAPat<(DstVT (bitconvert SrcVT:$src)), 2761 (COPY_TO_REGCLASS (Insn (COPY_TO_REGCLASS SrcVT:$src, ViaRC), 177), 2762 DstRC), 2763 [HasMSA, IsBE]>; 2764 2765class MSABitconvertReverseBInHPat<ValueType DstVT, ValueType SrcVT, 2766 RegisterClass DstRC> : 2767 MSABitconvertReverseHalvesPat<DstVT, SrcVT, DstRC, SHF_B, MSA128B>; 2768 2769class MSABitconvertReverseBInWPat<ValueType DstVT, ValueType SrcVT, 2770 RegisterClass DstRC> : 2771 MSABitconvertReverseQuartersPat<DstVT, SrcVT, DstRC, SHF_B, MSA128B>; 2772 2773class MSABitconvertReverseBInDPat<ValueType DstVT, ValueType SrcVT, 2774 RegisterClass DstRC> : 2775 MSAPat<(DstVT (bitconvert SrcVT:$src)), 2776 (COPY_TO_REGCLASS 2777 (SHF_W 2778 (COPY_TO_REGCLASS 2779 (SHF_B (COPY_TO_REGCLASS SrcVT:$src, MSA128B), 27), 2780 MSA128W), 177), 2781 DstRC), 2782 [HasMSA, IsBE]>; 2783 2784class MSABitconvertReverseHInWPat<ValueType DstVT, ValueType SrcVT, 2785 RegisterClass DstRC> : 2786 MSABitconvertReverseHalvesPat<DstVT, SrcVT, DstRC, SHF_H, MSA128H>; 2787 2788class MSABitconvertReverseHInDPat<ValueType DstVT, ValueType SrcVT, 2789 RegisterClass DstRC> : 2790 MSABitconvertReverseQuartersPat<DstVT, SrcVT, DstRC, SHF_H, MSA128H>; 2791 2792class MSABitconvertReverseWInDPat<ValueType DstVT, ValueType SrcVT, 2793 RegisterClass DstRC> : 2794 MSABitconvertReverseHalvesPat<DstVT, SrcVT, DstRC, SHF_W, MSA128W>; 2795 2796def : MSABitconvertReverseBInHPat<v8i16, v16i8, MSA128H>; 2797def : MSABitconvertReverseBInHPat<v8f16, v16i8, MSA128H>; 2798def : MSABitconvertReverseBInWPat<v4i32, v16i8, MSA128W>; 2799def : MSABitconvertReverseBInWPat<v4f32, v16i8, MSA128W>; 2800def : MSABitconvertReverseBInDPat<v2i64, v16i8, MSA128D>; 2801def : MSABitconvertReverseBInDPat<v2f64, v16i8, MSA128D>; 2802 2803def : MSABitconvertReverseBInHPat<v16i8, v8i16, MSA128B>; 2804def : MSABitconvertReverseHInWPat<v4i32, v8i16, MSA128W>; 2805def : MSABitconvertReverseHInWPat<v4f32, v8i16, MSA128W>; 2806def : MSABitconvertReverseHInDPat<v2i64, v8i16, MSA128D>; 2807def : MSABitconvertReverseHInDPat<v2f64, v8i16, MSA128D>; 2808 2809def : MSABitconvertReverseBInHPat<v16i8, v8f16, MSA128B>; 2810def : MSABitconvertReverseHInWPat<v4i32, v8f16, MSA128W>; 2811def : MSABitconvertReverseHInWPat<v4f32, v8f16, MSA128W>; 2812def : MSABitconvertReverseHInDPat<v2i64, v8f16, MSA128D>; 2813def : MSABitconvertReverseHInDPat<v2f64, v8f16, MSA128D>; 2814 2815def : MSABitconvertReverseBInWPat<v16i8, v4i32, MSA128B>; 2816def : MSABitconvertReverseHInWPat<v8i16, v4i32, MSA128H>; 2817def : MSABitconvertReverseHInWPat<v8f16, v4i32, MSA128H>; 2818def : MSABitconvertReverseWInDPat<v2i64, v4i32, MSA128D>; 2819def : MSABitconvertReverseWInDPat<v2f64, v4i32, MSA128D>; 2820 2821def : MSABitconvertReverseBInWPat<v16i8, v4f32, MSA128B>; 2822def : MSABitconvertReverseHInWPat<v8i16, v4f32, MSA128H>; 2823def : MSABitconvertReverseHInWPat<v8f16, v4f32, MSA128H>; 2824def : MSABitconvertReverseWInDPat<v2i64, v4f32, MSA128D>; 2825def : MSABitconvertReverseWInDPat<v2f64, v4f32, MSA128D>; 2826 2827def : MSABitconvertReverseBInDPat<v16i8, v2i64, MSA128B>; 2828def : MSABitconvertReverseHInDPat<v8i16, v2i64, MSA128H>; 2829def : MSABitconvertReverseHInDPat<v8f16, v2i64, MSA128H>; 2830def : MSABitconvertReverseWInDPat<v4i32, v2i64, MSA128W>; 2831def : MSABitconvertReverseWInDPat<v4f32, v2i64, MSA128W>; 2832 2833def : MSABitconvertReverseBInDPat<v16i8, v2f64, MSA128B>; 2834def : MSABitconvertReverseHInDPat<v8i16, v2f64, MSA128H>; 2835def : MSABitconvertReverseHInDPat<v8f16, v2f64, MSA128H>; 2836def : MSABitconvertReverseWInDPat<v4i32, v2f64, MSA128W>; 2837def : MSABitconvertReverseWInDPat<v4f32, v2f64, MSA128W>; 2838 2839// Pseudos used to implement BNZ.df, and BZ.df 2840 2841class MSA_CBRANCH_PSEUDO_DESC_BASE<SDPatternOperator OpNode, ValueType TyNode, 2842 RegisterClass RCWS, 2843 InstrItinClass itin = NoItinerary> : 2844 MipsPseudo<(outs GPR32:$dst), 2845 (ins RCWS:$ws), 2846 [(set GPR32:$dst, (OpNode (TyNode RCWS:$ws)))]> { 2847 bit usesCustomInserter = 1; 2848} 2849 2850def SNZ_B_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllNonZero, v16i8, 2851 MSA128B, NoItinerary>; 2852def SNZ_H_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllNonZero, v8i16, 2853 MSA128H, NoItinerary>; 2854def SNZ_W_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllNonZero, v4i32, 2855 MSA128W, NoItinerary>; 2856def SNZ_D_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllNonZero, v2i64, 2857 MSA128D, NoItinerary>; 2858def SNZ_V_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAnyNonZero, v16i8, 2859 MSA128B, NoItinerary>; 2860 2861def SZ_B_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllZero, v16i8, 2862 MSA128B, NoItinerary>; 2863def SZ_H_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllZero, v8i16, 2864 MSA128H, NoItinerary>; 2865def SZ_W_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllZero, v4i32, 2866 MSA128W, NoItinerary>; 2867def SZ_D_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAllZero, v2i64, 2868 MSA128D, NoItinerary>; 2869def SZ_V_PSEUDO : MSA_CBRANCH_PSEUDO_DESC_BASE<MipsVAnyZero, v16i8, 2870 MSA128B, NoItinerary>; 2871