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