1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Copyright (c) 2021 Loongson Technology Corporation Limited 4 */ 5 6 DEF_HELPER_2(raise_exception, noreturn, env, i32) 7 8 DEF_HELPER_FLAGS_1(bitrev_w, TCG_CALL_NO_RWG_SE, tl, tl) 9 DEF_HELPER_FLAGS_1(bitrev_d, TCG_CALL_NO_RWG_SE, tl, tl) 10 DEF_HELPER_FLAGS_1(bitswap, TCG_CALL_NO_RWG_SE, tl, tl) 11 12 DEF_HELPER_FLAGS_3(asrtle_d, TCG_CALL_NO_WG, void, env, tl, tl) 13 DEF_HELPER_FLAGS_3(asrtgt_d, TCG_CALL_NO_WG, void, env, tl, tl) 14 15 DEF_HELPER_FLAGS_3(crc32, TCG_CALL_NO_RWG_SE, tl, tl, tl, tl) 16 DEF_HELPER_FLAGS_3(crc32c, TCG_CALL_NO_RWG_SE, tl, tl, tl, tl) 17 DEF_HELPER_FLAGS_2(cpucfg, TCG_CALL_NO_RWG_SE, tl, env, tl) 18 19 /* Floating-point helper */ 20 DEF_HELPER_FLAGS_3(fadd_s, TCG_CALL_NO_WG, i64, env, i64, i64) 21 DEF_HELPER_FLAGS_3(fadd_d, TCG_CALL_NO_WG, i64, env, i64, i64) 22 DEF_HELPER_FLAGS_3(fsub_s, TCG_CALL_NO_WG, i64, env, i64, i64) 23 DEF_HELPER_FLAGS_3(fsub_d, TCG_CALL_NO_WG, i64, env, i64, i64) 24 DEF_HELPER_FLAGS_3(fmul_s, TCG_CALL_NO_WG, i64, env, i64, i64) 25 DEF_HELPER_FLAGS_3(fmul_d, TCG_CALL_NO_WG, i64, env, i64, i64) 26 DEF_HELPER_FLAGS_3(fdiv_s, TCG_CALL_NO_WG, i64, env, i64, i64) 27 DEF_HELPER_FLAGS_3(fdiv_d, TCG_CALL_NO_WG, i64, env, i64, i64) 28 DEF_HELPER_FLAGS_3(fmax_s, TCG_CALL_NO_WG, i64, env, i64, i64) 29 DEF_HELPER_FLAGS_3(fmax_d, TCG_CALL_NO_WG, i64, env, i64, i64) 30 DEF_HELPER_FLAGS_3(fmin_s, TCG_CALL_NO_WG, i64, env, i64, i64) 31 DEF_HELPER_FLAGS_3(fmin_d, TCG_CALL_NO_WG, i64, env, i64, i64) 32 DEF_HELPER_FLAGS_3(fmaxa_s, TCG_CALL_NO_WG, i64, env, i64, i64) 33 DEF_HELPER_FLAGS_3(fmaxa_d, TCG_CALL_NO_WG, i64, env, i64, i64) 34 DEF_HELPER_FLAGS_3(fmina_s, TCG_CALL_NO_WG, i64, env, i64, i64) 35 DEF_HELPER_FLAGS_3(fmina_d, TCG_CALL_NO_WG, i64, env, i64, i64) 36 37 DEF_HELPER_FLAGS_5(fmuladd_s, TCG_CALL_NO_WG, i64, env, i64, i64, i64, i32) 38 DEF_HELPER_FLAGS_5(fmuladd_d, TCG_CALL_NO_WG, i64, env, i64, i64, i64, i32) 39 40 DEF_HELPER_FLAGS_3(fscaleb_s, TCG_CALL_NO_WG, i64, env, i64, i64) 41 DEF_HELPER_FLAGS_3(fscaleb_d, TCG_CALL_NO_WG, i64, env, i64, i64) 42 43 DEF_HELPER_FLAGS_2(flogb_s, TCG_CALL_NO_WG, i64, env, i64) 44 DEF_HELPER_FLAGS_2(flogb_d, TCG_CALL_NO_WG, i64, env, i64) 45 46 DEF_HELPER_FLAGS_2(fsqrt_s, TCG_CALL_NO_WG, i64, env, i64) 47 DEF_HELPER_FLAGS_2(fsqrt_d, TCG_CALL_NO_WG, i64, env, i64) 48 DEF_HELPER_FLAGS_2(frsqrt_s, TCG_CALL_NO_WG, i64, env, i64) 49 DEF_HELPER_FLAGS_2(frsqrt_d, TCG_CALL_NO_WG, i64, env, i64) 50 DEF_HELPER_FLAGS_2(frecip_s, TCG_CALL_NO_WG, i64, env, i64) 51 DEF_HELPER_FLAGS_2(frecip_d, TCG_CALL_NO_WG, i64, env, i64) 52 53 DEF_HELPER_FLAGS_2(fclass_s, TCG_CALL_NO_RWG_SE, i64, env, i64) 54 DEF_HELPER_FLAGS_2(fclass_d, TCG_CALL_NO_RWG_SE, i64, env, i64) 55 56 /* fcmp.cXXX.s */ 57 DEF_HELPER_4(fcmp_c_s, i64, env, i64, i64, i32) 58 /* fcmp.sXXX.s */ 59 DEF_HELPER_4(fcmp_s_s, i64, env, i64, i64, i32) 60 /* fcmp.cXXX.d */ 61 DEF_HELPER_4(fcmp_c_d, i64, env, i64, i64, i32) 62 /* fcmp.sXXX.d */ 63 DEF_HELPER_4(fcmp_s_d, i64, env, i64, i64, i32) 64 65 DEF_HELPER_2(fcvt_d_s, i64, env, i64) 66 DEF_HELPER_2(fcvt_s_d, i64, env, i64) 67 DEF_HELPER_2(ffint_d_w, i64, env, i64) 68 DEF_HELPER_2(ffint_d_l, i64, env, i64) 69 DEF_HELPER_2(ffint_s_w, i64, env, i64) 70 DEF_HELPER_2(ffint_s_l, i64, env, i64) 71 DEF_HELPER_2(ftintrm_l_s, i64, env, i64) 72 DEF_HELPER_2(ftintrm_l_d, i64, env, i64) 73 DEF_HELPER_2(ftintrm_w_s, i64, env, i64) 74 DEF_HELPER_2(ftintrm_w_d, i64, env, i64) 75 DEF_HELPER_2(ftintrp_l_s, i64, env, i64) 76 DEF_HELPER_2(ftintrp_l_d, i64, env, i64) 77 DEF_HELPER_2(ftintrp_w_s, i64, env, i64) 78 DEF_HELPER_2(ftintrp_w_d, i64, env, i64) 79 DEF_HELPER_2(ftintrz_l_s, i64, env, i64) 80 DEF_HELPER_2(ftintrz_l_d, i64, env, i64) 81 DEF_HELPER_2(ftintrz_w_s, i64, env, i64) 82 DEF_HELPER_2(ftintrz_w_d, i64, env, i64) 83 DEF_HELPER_2(ftintrne_l_s, i64, env, i64) 84 DEF_HELPER_2(ftintrne_l_d, i64, env, i64) 85 DEF_HELPER_2(ftintrne_w_s, i64, env, i64) 86 DEF_HELPER_2(ftintrne_w_d, i64, env, i64) 87 DEF_HELPER_2(ftint_l_s, i64, env, i64) 88 DEF_HELPER_2(ftint_l_d, i64, env, i64) 89 DEF_HELPER_2(ftint_w_s, i64, env, i64) 90 DEF_HELPER_2(ftint_w_d, i64, env, i64) 91 DEF_HELPER_2(frint_s, i64, env, i64) 92 DEF_HELPER_2(frint_d, i64, env, i64) 93 94 DEF_HELPER_FLAGS_1(set_rounding_mode, TCG_CALL_NO_RWG, void, env) 95 96 DEF_HELPER_1(rdtime_d, i64, env) 97 98 #ifndef CONFIG_USER_ONLY 99 /* CSRs helper */ 100 DEF_HELPER_1(csrrd_pgd, i64, env) 101 DEF_HELPER_1(csrrd_cpuid, i64, env) 102 DEF_HELPER_1(csrrd_tval, i64, env) 103 DEF_HELPER_2(csrwr_estat, i64, env, tl) 104 DEF_HELPER_2(csrwr_asid, i64, env, tl) 105 DEF_HELPER_2(csrwr_tcfg, i64, env, tl) 106 DEF_HELPER_2(csrwr_ticlr, i64, env, tl) 107 DEF_HELPER_2(iocsrrd_b, i64, env, tl) 108 DEF_HELPER_2(iocsrrd_h, i64, env, tl) 109 DEF_HELPER_2(iocsrrd_w, i64, env, tl) 110 DEF_HELPER_2(iocsrrd_d, i64, env, tl) 111 DEF_HELPER_3(iocsrwr_b, void, env, tl, tl) 112 DEF_HELPER_3(iocsrwr_h, void, env, tl, tl) 113 DEF_HELPER_3(iocsrwr_w, void, env, tl, tl) 114 DEF_HELPER_3(iocsrwr_d, void, env, tl, tl) 115 116 /* TLB helper */ 117 DEF_HELPER_1(tlbwr, void, env) 118 DEF_HELPER_1(tlbfill, void, env) 119 DEF_HELPER_1(tlbsrch, void, env) 120 DEF_HELPER_1(tlbrd, void, env) 121 DEF_HELPER_1(tlbclr, void, env) 122 DEF_HELPER_1(tlbflush, void, env) 123 DEF_HELPER_1(invtlb_all, void, env) 124 DEF_HELPER_2(invtlb_all_g, void, env, i32) 125 DEF_HELPER_2(invtlb_all_asid, void, env, tl) 126 DEF_HELPER_3(invtlb_page_asid, void, env, tl, tl) 127 DEF_HELPER_3(invtlb_page_asid_or_g, void, env, tl, tl) 128 129 DEF_HELPER_4(lddir, tl, env, tl, tl, i32) 130 DEF_HELPER_4(ldpte, void, env, tl, tl, i32) 131 DEF_HELPER_1(ertn, void, env) 132 DEF_HELPER_1(idle, void, env) 133 #endif 134 135 /* LoongArch LSX */ 136 DEF_HELPER_4(vhaddw_h_b, void, env, i32, i32, i32) 137 DEF_HELPER_4(vhaddw_w_h, void, env, i32, i32, i32) 138 DEF_HELPER_4(vhaddw_d_w, void, env, i32, i32, i32) 139 DEF_HELPER_4(vhaddw_q_d, void, env, i32, i32, i32) 140 DEF_HELPER_4(vhaddw_hu_bu, void, env, i32, i32, i32) 141 DEF_HELPER_4(vhaddw_wu_hu, void, env, i32, i32, i32) 142 DEF_HELPER_4(vhaddw_du_wu, void, env, i32, i32, i32) 143 DEF_HELPER_4(vhaddw_qu_du, void, env, i32, i32, i32) 144 DEF_HELPER_4(vhsubw_h_b, void, env, i32, i32, i32) 145 DEF_HELPER_4(vhsubw_w_h, void, env, i32, i32, i32) 146 DEF_HELPER_4(vhsubw_d_w, void, env, i32, i32, i32) 147 DEF_HELPER_4(vhsubw_q_d, void, env, i32, i32, i32) 148 DEF_HELPER_4(vhsubw_hu_bu, void, env, i32, i32, i32) 149 DEF_HELPER_4(vhsubw_wu_hu, void, env, i32, i32, i32) 150 DEF_HELPER_4(vhsubw_du_wu, void, env, i32, i32, i32) 151 DEF_HELPER_4(vhsubw_qu_du, void, env, i32, i32, i32) 152 153 DEF_HELPER_FLAGS_4(vaddwev_h_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 154 DEF_HELPER_FLAGS_4(vaddwev_w_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 155 DEF_HELPER_FLAGS_4(vaddwev_d_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 156 DEF_HELPER_FLAGS_4(vaddwev_q_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 157 DEF_HELPER_FLAGS_4(vaddwod_h_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 158 DEF_HELPER_FLAGS_4(vaddwod_w_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 159 DEF_HELPER_FLAGS_4(vaddwod_d_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 160 DEF_HELPER_FLAGS_4(vaddwod_q_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 161 162 DEF_HELPER_FLAGS_4(vsubwev_h_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 163 DEF_HELPER_FLAGS_4(vsubwev_w_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 164 DEF_HELPER_FLAGS_4(vsubwev_d_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 165 DEF_HELPER_FLAGS_4(vsubwev_q_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 166 DEF_HELPER_FLAGS_4(vsubwod_h_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 167 DEF_HELPER_FLAGS_4(vsubwod_w_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 168 DEF_HELPER_FLAGS_4(vsubwod_d_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 169 DEF_HELPER_FLAGS_4(vsubwod_q_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 170 171 DEF_HELPER_FLAGS_4(vaddwev_h_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 172 DEF_HELPER_FLAGS_4(vaddwev_w_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 173 DEF_HELPER_FLAGS_4(vaddwev_d_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 174 DEF_HELPER_FLAGS_4(vaddwev_q_du, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 175 DEF_HELPER_FLAGS_4(vaddwod_h_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 176 DEF_HELPER_FLAGS_4(vaddwod_w_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 177 DEF_HELPER_FLAGS_4(vaddwod_d_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 178 DEF_HELPER_FLAGS_4(vaddwod_q_du, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 179 180 DEF_HELPER_FLAGS_4(vsubwev_h_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 181 DEF_HELPER_FLAGS_4(vsubwev_w_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 182 DEF_HELPER_FLAGS_4(vsubwev_d_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 183 DEF_HELPER_FLAGS_4(vsubwev_q_du, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 184 DEF_HELPER_FLAGS_4(vsubwod_h_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 185 DEF_HELPER_FLAGS_4(vsubwod_w_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 186 DEF_HELPER_FLAGS_4(vsubwod_d_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 187 DEF_HELPER_FLAGS_4(vsubwod_q_du, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 188 189 DEF_HELPER_FLAGS_4(vaddwev_h_bu_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 190 DEF_HELPER_FLAGS_4(vaddwev_w_hu_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 191 DEF_HELPER_FLAGS_4(vaddwev_d_wu_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 192 DEF_HELPER_FLAGS_4(vaddwev_q_du_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 193 DEF_HELPER_FLAGS_4(vaddwod_h_bu_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 194 DEF_HELPER_FLAGS_4(vaddwod_w_hu_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 195 DEF_HELPER_FLAGS_4(vaddwod_d_wu_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 196 DEF_HELPER_FLAGS_4(vaddwod_q_du_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 197 198 DEF_HELPER_FLAGS_4(vavg_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 199 DEF_HELPER_FLAGS_4(vavg_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 200 DEF_HELPER_FLAGS_4(vavg_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 201 DEF_HELPER_FLAGS_4(vavg_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 202 DEF_HELPER_FLAGS_4(vavg_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 203 DEF_HELPER_FLAGS_4(vavg_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 204 DEF_HELPER_FLAGS_4(vavg_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 205 DEF_HELPER_FLAGS_4(vavg_du, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 206 207 DEF_HELPER_FLAGS_4(vavgr_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 208 DEF_HELPER_FLAGS_4(vavgr_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 209 DEF_HELPER_FLAGS_4(vavgr_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 210 DEF_HELPER_FLAGS_4(vavgr_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 211 DEF_HELPER_FLAGS_4(vavgr_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 212 DEF_HELPER_FLAGS_4(vavgr_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 213 DEF_HELPER_FLAGS_4(vavgr_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 214 DEF_HELPER_FLAGS_4(vavgr_du, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 215 216 DEF_HELPER_FLAGS_4(vabsd_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 217 DEF_HELPER_FLAGS_4(vabsd_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 218 DEF_HELPER_FLAGS_4(vabsd_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 219 DEF_HELPER_FLAGS_4(vabsd_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 220 DEF_HELPER_FLAGS_4(vabsd_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 221 DEF_HELPER_FLAGS_4(vabsd_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 222 DEF_HELPER_FLAGS_4(vabsd_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 223 DEF_HELPER_FLAGS_4(vabsd_du, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 224 225 DEF_HELPER_FLAGS_4(vadda_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 226 DEF_HELPER_FLAGS_4(vadda_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 227 DEF_HELPER_FLAGS_4(vadda_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 228 DEF_HELPER_FLAGS_4(vadda_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 229 230 DEF_HELPER_FLAGS_4(vmini_b, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 231 DEF_HELPER_FLAGS_4(vmini_h, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 232 DEF_HELPER_FLAGS_4(vmini_w, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 233 DEF_HELPER_FLAGS_4(vmini_d, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 234 DEF_HELPER_FLAGS_4(vmini_bu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 235 DEF_HELPER_FLAGS_4(vmini_hu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 236 DEF_HELPER_FLAGS_4(vmini_wu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 237 DEF_HELPER_FLAGS_4(vmini_du, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 238 239 DEF_HELPER_FLAGS_4(vmaxi_b, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 240 DEF_HELPER_FLAGS_4(vmaxi_h, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 241 DEF_HELPER_FLAGS_4(vmaxi_w, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 242 DEF_HELPER_FLAGS_4(vmaxi_d, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 243 DEF_HELPER_FLAGS_4(vmaxi_bu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 244 DEF_HELPER_FLAGS_4(vmaxi_hu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 245 DEF_HELPER_FLAGS_4(vmaxi_wu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 246 DEF_HELPER_FLAGS_4(vmaxi_du, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 247 248 DEF_HELPER_FLAGS_4(vmuh_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 249 DEF_HELPER_FLAGS_4(vmuh_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 250 DEF_HELPER_FLAGS_4(vmuh_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 251 DEF_HELPER_FLAGS_4(vmuh_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 252 DEF_HELPER_FLAGS_4(vmuh_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 253 DEF_HELPER_FLAGS_4(vmuh_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 254 DEF_HELPER_FLAGS_4(vmuh_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 255 DEF_HELPER_FLAGS_4(vmuh_du, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 256 257 DEF_HELPER_FLAGS_4(vmulwev_h_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 258 DEF_HELPER_FLAGS_4(vmulwev_w_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 259 DEF_HELPER_FLAGS_4(vmulwev_d_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 260 DEF_HELPER_FLAGS_4(vmulwod_h_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 261 DEF_HELPER_FLAGS_4(vmulwod_w_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 262 DEF_HELPER_FLAGS_4(vmulwod_d_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 263 264 DEF_HELPER_FLAGS_4(vmulwev_h_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 265 DEF_HELPER_FLAGS_4(vmulwev_w_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 266 DEF_HELPER_FLAGS_4(vmulwev_d_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 267 DEF_HELPER_FLAGS_4(vmulwod_h_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 268 DEF_HELPER_FLAGS_4(vmulwod_w_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 269 DEF_HELPER_FLAGS_4(vmulwod_d_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 270 271 DEF_HELPER_FLAGS_4(vmulwev_h_bu_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 272 DEF_HELPER_FLAGS_4(vmulwev_w_hu_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 273 DEF_HELPER_FLAGS_4(vmulwev_d_wu_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 274 DEF_HELPER_FLAGS_4(vmulwod_h_bu_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 275 DEF_HELPER_FLAGS_4(vmulwod_w_hu_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 276 DEF_HELPER_FLAGS_4(vmulwod_d_wu_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 277 278 DEF_HELPER_FLAGS_4(vmadd_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 279 DEF_HELPER_FLAGS_4(vmadd_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 280 DEF_HELPER_FLAGS_4(vmadd_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 281 DEF_HELPER_FLAGS_4(vmadd_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 282 DEF_HELPER_FLAGS_4(vmsub_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 283 DEF_HELPER_FLAGS_4(vmsub_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 284 DEF_HELPER_FLAGS_4(vmsub_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 285 DEF_HELPER_FLAGS_4(vmsub_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 286 287 DEF_HELPER_FLAGS_4(vmaddwev_h_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 288 DEF_HELPER_FLAGS_4(vmaddwev_w_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 289 DEF_HELPER_FLAGS_4(vmaddwev_d_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 290 DEF_HELPER_FLAGS_4(vmaddwod_h_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 291 DEF_HELPER_FLAGS_4(vmaddwod_w_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 292 DEF_HELPER_FLAGS_4(vmaddwod_d_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 293 294 DEF_HELPER_FLAGS_4(vmaddwev_h_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 295 DEF_HELPER_FLAGS_4(vmaddwev_w_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 296 DEF_HELPER_FLAGS_4(vmaddwev_d_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 297 DEF_HELPER_FLAGS_4(vmaddwod_h_bu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 298 DEF_HELPER_FLAGS_4(vmaddwod_w_hu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 299 DEF_HELPER_FLAGS_4(vmaddwod_d_wu, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 300 301 DEF_HELPER_FLAGS_4(vmaddwev_h_bu_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 302 DEF_HELPER_FLAGS_4(vmaddwev_w_hu_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 303 DEF_HELPER_FLAGS_4(vmaddwev_d_wu_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 304 DEF_HELPER_FLAGS_4(vmaddwod_h_bu_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 305 DEF_HELPER_FLAGS_4(vmaddwod_w_hu_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 306 DEF_HELPER_FLAGS_4(vmaddwod_d_wu_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 307 308 DEF_HELPER_4(vdiv_b, void, env, i32, i32, i32) 309 DEF_HELPER_4(vdiv_h, void, env, i32, i32, i32) 310 DEF_HELPER_4(vdiv_w, void, env, i32, i32, i32) 311 DEF_HELPER_4(vdiv_d, void, env, i32, i32, i32) 312 DEF_HELPER_4(vdiv_bu, void, env, i32, i32, i32) 313 DEF_HELPER_4(vdiv_hu, void, env, i32, i32, i32) 314 DEF_HELPER_4(vdiv_wu, void, env, i32, i32, i32) 315 DEF_HELPER_4(vdiv_du, void, env, i32, i32, i32) 316 DEF_HELPER_4(vmod_b, void, env, i32, i32, i32) 317 DEF_HELPER_4(vmod_h, void, env, i32, i32, i32) 318 DEF_HELPER_4(vmod_w, void, env, i32, i32, i32) 319 DEF_HELPER_4(vmod_d, void, env, i32, i32, i32) 320 DEF_HELPER_4(vmod_bu, void, env, i32, i32, i32) 321 DEF_HELPER_4(vmod_hu, void, env, i32, i32, i32) 322 DEF_HELPER_4(vmod_wu, void, env, i32, i32, i32) 323 DEF_HELPER_4(vmod_du, void, env, i32, i32, i32) 324 325 DEF_HELPER_FLAGS_4(vsat_b, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 326 DEF_HELPER_FLAGS_4(vsat_h, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 327 DEF_HELPER_FLAGS_4(vsat_w, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 328 DEF_HELPER_FLAGS_4(vsat_d, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 329 DEF_HELPER_FLAGS_4(vsat_bu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 330 DEF_HELPER_FLAGS_4(vsat_hu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 331 DEF_HELPER_FLAGS_4(vsat_wu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 332 DEF_HELPER_FLAGS_4(vsat_du, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 333 334 DEF_HELPER_3(vexth_h_b, void, env, i32, i32) 335 DEF_HELPER_3(vexth_w_h, void, env, i32, i32) 336 DEF_HELPER_3(vexth_d_w, void, env, i32, i32) 337 DEF_HELPER_3(vexth_q_d, void, env, i32, i32) 338 DEF_HELPER_3(vexth_hu_bu, void, env, i32, i32) 339 DEF_HELPER_3(vexth_wu_hu, void, env, i32, i32) 340 DEF_HELPER_3(vexth_du_wu, void, env, i32, i32) 341 DEF_HELPER_3(vexth_qu_du, void, env, i32, i32) 342 343 DEF_HELPER_FLAGS_4(vsigncov_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 344 DEF_HELPER_FLAGS_4(vsigncov_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 345 DEF_HELPER_FLAGS_4(vsigncov_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 346 DEF_HELPER_FLAGS_4(vsigncov_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 347 348 DEF_HELPER_3(vmskltz_b, void, env, i32, i32) 349 DEF_HELPER_3(vmskltz_h, void, env, i32, i32) 350 DEF_HELPER_3(vmskltz_w, void, env, i32, i32) 351 DEF_HELPER_3(vmskltz_d, void, env, i32, i32) 352 DEF_HELPER_3(vmskgez_b, void, env, i32, i32) 353 DEF_HELPER_3(vmsknz_b, void, env, i32,i32) 354 355 DEF_HELPER_FLAGS_4(vnori_b, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 356 357 DEF_HELPER_4(vsllwil_h_b, void, env, i32, i32, i32) 358 DEF_HELPER_4(vsllwil_w_h, void, env, i32, i32, i32) 359 DEF_HELPER_4(vsllwil_d_w, void, env, i32, i32, i32) 360 DEF_HELPER_3(vextl_q_d, void, env, i32, i32) 361 DEF_HELPER_4(vsllwil_hu_bu, void, env, i32, i32, i32) 362 DEF_HELPER_4(vsllwil_wu_hu, void, env, i32, i32, i32) 363 DEF_HELPER_4(vsllwil_du_wu, void, env, i32, i32, i32) 364 DEF_HELPER_3(vextl_qu_du, void, env, i32, i32) 365 366 DEF_HELPER_4(vsrlr_b, void, env, i32, i32, i32) 367 DEF_HELPER_4(vsrlr_h, void, env, i32, i32, i32) 368 DEF_HELPER_4(vsrlr_w, void, env, i32, i32, i32) 369 DEF_HELPER_4(vsrlr_d, void, env, i32, i32, i32) 370 DEF_HELPER_4(vsrlri_b, void, env, i32, i32, i32) 371 DEF_HELPER_4(vsrlri_h, void, env, i32, i32, i32) 372 DEF_HELPER_4(vsrlri_w, void, env, i32, i32, i32) 373 DEF_HELPER_4(vsrlri_d, void, env, i32, i32, i32) 374 375 DEF_HELPER_4(vsrar_b, void, env, i32, i32, i32) 376 DEF_HELPER_4(vsrar_h, void, env, i32, i32, i32) 377 DEF_HELPER_4(vsrar_w, void, env, i32, i32, i32) 378 DEF_HELPER_4(vsrar_d, void, env, i32, i32, i32) 379 DEF_HELPER_4(vsrari_b, void, env, i32, i32, i32) 380 DEF_HELPER_4(vsrari_h, void, env, i32, i32, i32) 381 DEF_HELPER_4(vsrari_w, void, env, i32, i32, i32) 382 DEF_HELPER_4(vsrari_d, void, env, i32, i32, i32) 383 384 DEF_HELPER_4(vsrln_b_h, void, env, i32, i32, i32) 385 DEF_HELPER_4(vsrln_h_w, void, env, i32, i32, i32) 386 DEF_HELPER_4(vsrln_w_d, void, env, i32, i32, i32) 387 DEF_HELPER_4(vsran_b_h, void, env, i32, i32, i32) 388 DEF_HELPER_4(vsran_h_w, void, env, i32, i32, i32) 389 DEF_HELPER_4(vsran_w_d, void, env, i32, i32, i32) 390 391 DEF_HELPER_4(vsrlni_b_h, void, env, i32, i32, i32) 392 DEF_HELPER_4(vsrlni_h_w, void, env, i32, i32, i32) 393 DEF_HELPER_4(vsrlni_w_d, void, env, i32, i32, i32) 394 DEF_HELPER_4(vsrlni_d_q, void, env, i32, i32, i32) 395 DEF_HELPER_4(vsrani_b_h, void, env, i32, i32, i32) 396 DEF_HELPER_4(vsrani_h_w, void, env, i32, i32, i32) 397 DEF_HELPER_4(vsrani_w_d, void, env, i32, i32, i32) 398 DEF_HELPER_4(vsrani_d_q, void, env, i32, i32, i32) 399 400 DEF_HELPER_4(vsrlrn_b_h, void, env, i32, i32, i32) 401 DEF_HELPER_4(vsrlrn_h_w, void, env, i32, i32, i32) 402 DEF_HELPER_4(vsrlrn_w_d, void, env, i32, i32, i32) 403 DEF_HELPER_4(vsrarn_b_h, void, env, i32, i32, i32) 404 DEF_HELPER_4(vsrarn_h_w, void, env, i32, i32, i32) 405 DEF_HELPER_4(vsrarn_w_d, void, env, i32, i32, i32) 406 407 DEF_HELPER_4(vsrlrni_b_h, void, env, i32, i32, i32) 408 DEF_HELPER_4(vsrlrni_h_w, void, env, i32, i32, i32) 409 DEF_HELPER_4(vsrlrni_w_d, void, env, i32, i32, i32) 410 DEF_HELPER_4(vsrlrni_d_q, void, env, i32, i32, i32) 411 DEF_HELPER_4(vsrarni_b_h, void, env, i32, i32, i32) 412 DEF_HELPER_4(vsrarni_h_w, void, env, i32, i32, i32) 413 DEF_HELPER_4(vsrarni_w_d, void, env, i32, i32, i32) 414 DEF_HELPER_4(vsrarni_d_q, void, env, i32, i32, i32) 415 416 DEF_HELPER_4(vssrln_b_h, void, env, i32, i32, i32) 417 DEF_HELPER_4(vssrln_h_w, void, env, i32, i32, i32) 418 DEF_HELPER_4(vssrln_w_d, void, env, i32, i32, i32) 419 DEF_HELPER_4(vssran_b_h, void, env, i32, i32, i32) 420 DEF_HELPER_4(vssran_h_w, void, env, i32, i32, i32) 421 DEF_HELPER_4(vssran_w_d, void, env, i32, i32, i32) 422 DEF_HELPER_4(vssrln_bu_h, void, env, i32, i32, i32) 423 DEF_HELPER_4(vssrln_hu_w, void, env, i32, i32, i32) 424 DEF_HELPER_4(vssrln_wu_d, void, env, i32, i32, i32) 425 DEF_HELPER_4(vssran_bu_h, void, env, i32, i32, i32) 426 DEF_HELPER_4(vssran_hu_w, void, env, i32, i32, i32) 427 DEF_HELPER_4(vssran_wu_d, void, env, i32, i32, i32) 428 429 DEF_HELPER_4(vssrlni_b_h, void, env, i32, i32, i32) 430 DEF_HELPER_4(vssrlni_h_w, void, env, i32, i32, i32) 431 DEF_HELPER_4(vssrlni_w_d, void, env, i32, i32, i32) 432 DEF_HELPER_4(vssrlni_d_q, void, env, i32, i32, i32) 433 DEF_HELPER_4(vssrani_b_h, void, env, i32, i32, i32) 434 DEF_HELPER_4(vssrani_h_w, void, env, i32, i32, i32) 435 DEF_HELPER_4(vssrani_w_d, void, env, i32, i32, i32) 436 DEF_HELPER_4(vssrani_d_q, void, env, i32, i32, i32) 437 DEF_HELPER_4(vssrlni_bu_h, void, env, i32, i32, i32) 438 DEF_HELPER_4(vssrlni_hu_w, void, env, i32, i32, i32) 439 DEF_HELPER_4(vssrlni_wu_d, void, env, i32, i32, i32) 440 DEF_HELPER_4(vssrlni_du_q, void, env, i32, i32, i32) 441 DEF_HELPER_4(vssrani_bu_h, void, env, i32, i32, i32) 442 DEF_HELPER_4(vssrani_hu_w, void, env, i32, i32, i32) 443 DEF_HELPER_4(vssrani_wu_d, void, env, i32, i32, i32) 444 DEF_HELPER_4(vssrani_du_q, void, env, i32, i32, i32) 445 446 DEF_HELPER_4(vssrlrn_b_h, void, env, i32, i32, i32) 447 DEF_HELPER_4(vssrlrn_h_w, void, env, i32, i32, i32) 448 DEF_HELPER_4(vssrlrn_w_d, void, env, i32, i32, i32) 449 DEF_HELPER_4(vssrarn_b_h, void, env, i32, i32, i32) 450 DEF_HELPER_4(vssrarn_h_w, void, env, i32, i32, i32) 451 DEF_HELPER_4(vssrarn_w_d, void, env, i32, i32, i32) 452 DEF_HELPER_4(vssrlrn_bu_h, void, env, i32, i32, i32) 453 DEF_HELPER_4(vssrlrn_hu_w, void, env, i32, i32, i32) 454 DEF_HELPER_4(vssrlrn_wu_d, void, env, i32, i32, i32) 455 DEF_HELPER_4(vssrarn_bu_h, void, env, i32, i32, i32) 456 DEF_HELPER_4(vssrarn_hu_w, void, env, i32, i32, i32) 457 DEF_HELPER_4(vssrarn_wu_d, void, env, i32, i32, i32) 458 459 DEF_HELPER_4(vssrlrni_b_h, void, env, i32, i32, i32) 460 DEF_HELPER_4(vssrlrni_h_w, void, env, i32, i32, i32) 461 DEF_HELPER_4(vssrlrni_w_d, void, env, i32, i32, i32) 462 DEF_HELPER_4(vssrlrni_d_q, void, env, i32, i32, i32) 463 DEF_HELPER_4(vssrarni_b_h, void, env, i32, i32, i32) 464 DEF_HELPER_4(vssrarni_h_w, void, env, i32, i32, i32) 465 DEF_HELPER_4(vssrarni_w_d, void, env, i32, i32, i32) 466 DEF_HELPER_4(vssrarni_d_q, void, env, i32, i32, i32) 467 DEF_HELPER_4(vssrlrni_bu_h, void, env, i32, i32, i32) 468 DEF_HELPER_4(vssrlrni_hu_w, void, env, i32, i32, i32) 469 DEF_HELPER_4(vssrlrni_wu_d, void, env, i32, i32, i32) 470 DEF_HELPER_4(vssrlrni_du_q, void, env, i32, i32, i32) 471 DEF_HELPER_4(vssrarni_bu_h, void, env, i32, i32, i32) 472 DEF_HELPER_4(vssrarni_hu_w, void, env, i32, i32, i32) 473 DEF_HELPER_4(vssrarni_wu_d, void, env, i32, i32, i32) 474 DEF_HELPER_4(vssrarni_du_q, void, env, i32, i32, i32) 475 476 DEF_HELPER_3(vclo_b, void, env, i32, i32) 477 DEF_HELPER_3(vclo_h, void, env, i32, i32) 478 DEF_HELPER_3(vclo_w, void, env, i32, i32) 479 DEF_HELPER_3(vclo_d, void, env, i32, i32) 480 DEF_HELPER_3(vclz_b, void, env, i32, i32) 481 DEF_HELPER_3(vclz_h, void, env, i32, i32) 482 DEF_HELPER_3(vclz_w, void, env, i32, i32) 483 DEF_HELPER_3(vclz_d, void, env, i32, i32) 484 485 DEF_HELPER_3(vpcnt_b, void, env, i32, i32) 486 DEF_HELPER_3(vpcnt_h, void, env, i32, i32) 487 DEF_HELPER_3(vpcnt_w, void, env, i32, i32) 488 DEF_HELPER_3(vpcnt_d, void, env, i32, i32) 489 490 DEF_HELPER_FLAGS_4(vbitclr_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 491 DEF_HELPER_FLAGS_4(vbitclr_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 492 DEF_HELPER_FLAGS_4(vbitclr_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 493 DEF_HELPER_FLAGS_4(vbitclr_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 494 DEF_HELPER_FLAGS_4(vbitclri_b, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 495 DEF_HELPER_FLAGS_4(vbitclri_h, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 496 DEF_HELPER_FLAGS_4(vbitclri_w, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 497 DEF_HELPER_FLAGS_4(vbitclri_d, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 498 499 DEF_HELPER_FLAGS_4(vbitset_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 500 DEF_HELPER_FLAGS_4(vbitset_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 501 DEF_HELPER_FLAGS_4(vbitset_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 502 DEF_HELPER_FLAGS_4(vbitset_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 503 DEF_HELPER_FLAGS_4(vbitseti_b, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 504 DEF_HELPER_FLAGS_4(vbitseti_h, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 505 DEF_HELPER_FLAGS_4(vbitseti_w, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 506 DEF_HELPER_FLAGS_4(vbitseti_d, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 507 508 DEF_HELPER_FLAGS_4(vbitrev_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 509 DEF_HELPER_FLAGS_4(vbitrev_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 510 DEF_HELPER_FLAGS_4(vbitrev_w, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 511 DEF_HELPER_FLAGS_4(vbitrev_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 512 DEF_HELPER_FLAGS_4(vbitrevi_b, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 513 DEF_HELPER_FLAGS_4(vbitrevi_h, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 514 DEF_HELPER_FLAGS_4(vbitrevi_w, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 515 DEF_HELPER_FLAGS_4(vbitrevi_d, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 516 517 DEF_HELPER_4(vfrstp_b, void, env, i32, i32, i32) 518 DEF_HELPER_4(vfrstp_h, void, env, i32, i32, i32) 519 DEF_HELPER_4(vfrstpi_b, void, env, i32, i32, i32) 520 DEF_HELPER_4(vfrstpi_h, void, env, i32, i32, i32) 521 522 DEF_HELPER_4(vfadd_s, void, env, i32, i32, i32) 523 DEF_HELPER_4(vfadd_d, void, env, i32, i32, i32) 524 DEF_HELPER_4(vfsub_s, void, env, i32, i32, i32) 525 DEF_HELPER_4(vfsub_d, void, env, i32, i32, i32) 526 DEF_HELPER_4(vfmul_s, void, env, i32, i32, i32) 527 DEF_HELPER_4(vfmul_d, void, env, i32, i32, i32) 528 DEF_HELPER_4(vfdiv_s, void, env, i32, i32, i32) 529 DEF_HELPER_4(vfdiv_d, void, env, i32, i32, i32) 530 531 DEF_HELPER_5(vfmadd_s, void, env, i32, i32, i32, i32) 532 DEF_HELPER_5(vfmadd_d, void, env, i32, i32, i32, i32) 533 DEF_HELPER_5(vfmsub_s, void, env, i32, i32, i32, i32) 534 DEF_HELPER_5(vfmsub_d, void, env, i32, i32, i32, i32) 535 DEF_HELPER_5(vfnmadd_s, void, env, i32, i32, i32, i32) 536 DEF_HELPER_5(vfnmadd_d, void, env, i32, i32, i32, i32) 537 DEF_HELPER_5(vfnmsub_s, void, env, i32, i32, i32, i32) 538 DEF_HELPER_5(vfnmsub_d, void, env, i32, i32, i32, i32) 539 540 DEF_HELPER_4(vfmax_s, void, env, i32, i32, i32) 541 DEF_HELPER_4(vfmax_d, void, env, i32, i32, i32) 542 DEF_HELPER_4(vfmin_s, void, env, i32, i32, i32) 543 DEF_HELPER_4(vfmin_d, void, env, i32, i32, i32) 544 545 DEF_HELPER_4(vfmaxa_s, void, env, i32, i32, i32) 546 DEF_HELPER_4(vfmaxa_d, void, env, i32, i32, i32) 547 DEF_HELPER_4(vfmina_s, void, env, i32, i32, i32) 548 DEF_HELPER_4(vfmina_d, void, env, i32, i32, i32) 549 550 DEF_HELPER_3(vflogb_s, void, env, i32, i32) 551 DEF_HELPER_3(vflogb_d, void, env, i32, i32) 552 553 DEF_HELPER_3(vfclass_s, void, env, i32, i32) 554 DEF_HELPER_3(vfclass_d, void, env, i32, i32) 555 556 DEF_HELPER_3(vfsqrt_s, void, env, i32, i32) 557 DEF_HELPER_3(vfsqrt_d, void, env, i32, i32) 558 DEF_HELPER_3(vfrecip_s, void, env, i32, i32) 559 DEF_HELPER_3(vfrecip_d, void, env, i32, i32) 560 DEF_HELPER_3(vfrsqrt_s, void, env, i32, i32) 561 DEF_HELPER_3(vfrsqrt_d, void, env, i32, i32) 562 563 DEF_HELPER_3(vfcvtl_s_h, void, env, i32, i32) 564 DEF_HELPER_3(vfcvth_s_h, void, env, i32, i32) 565 DEF_HELPER_3(vfcvtl_d_s, void, env, i32, i32) 566 DEF_HELPER_3(vfcvth_d_s, void, env, i32, i32) 567 DEF_HELPER_4(vfcvt_h_s, void, env, i32, i32, i32) 568 DEF_HELPER_4(vfcvt_s_d, void, env, i32, i32, i32) 569 570 DEF_HELPER_3(vfrintrne_s, void, env, i32, i32) 571 DEF_HELPER_3(vfrintrne_d, void, env, i32, i32) 572 DEF_HELPER_3(vfrintrz_s, void, env, i32, i32) 573 DEF_HELPER_3(vfrintrz_d, void, env, i32, i32) 574 DEF_HELPER_3(vfrintrp_s, void, env, i32, i32) 575 DEF_HELPER_3(vfrintrp_d, void, env, i32, i32) 576 DEF_HELPER_3(vfrintrm_s, void, env, i32, i32) 577 DEF_HELPER_3(vfrintrm_d, void, env, i32, i32) 578 DEF_HELPER_3(vfrint_s, void, env, i32, i32) 579 DEF_HELPER_3(vfrint_d, void, env, i32, i32) 580 581 DEF_HELPER_3(vftintrne_w_s, void, env, i32, i32) 582 DEF_HELPER_3(vftintrne_l_d, void, env, i32, i32) 583 DEF_HELPER_3(vftintrz_w_s, void, env, i32, i32) 584 DEF_HELPER_3(vftintrz_l_d, void, env, i32, i32) 585 DEF_HELPER_3(vftintrp_w_s, void, env, i32, i32) 586 DEF_HELPER_3(vftintrp_l_d, void, env, i32, i32) 587 DEF_HELPER_3(vftintrm_w_s, void, env, i32, i32) 588 DEF_HELPER_3(vftintrm_l_d, void, env, i32, i32) 589 DEF_HELPER_3(vftint_w_s, void, env, i32, i32) 590 DEF_HELPER_3(vftint_l_d, void, env, i32, i32) 591 DEF_HELPER_3(vftintrz_wu_s, void, env, i32, i32) 592 DEF_HELPER_3(vftintrz_lu_d, void, env, i32, i32) 593 DEF_HELPER_3(vftint_wu_s, void, env, i32, i32) 594 DEF_HELPER_3(vftint_lu_d, void, env, i32, i32) 595 DEF_HELPER_4(vftintrne_w_d, void, env, i32, i32, i32) 596 DEF_HELPER_4(vftintrz_w_d, void, env, i32, i32, i32) 597 DEF_HELPER_4(vftintrp_w_d, void, env, i32, i32, i32) 598 DEF_HELPER_4(vftintrm_w_d, void, env, i32, i32, i32) 599 DEF_HELPER_4(vftint_w_d, void, env, i32, i32, i32) 600 DEF_HELPER_3(vftintrnel_l_s, void, env, i32, i32) 601 DEF_HELPER_3(vftintrneh_l_s, void, env, i32, i32) 602 DEF_HELPER_3(vftintrzl_l_s, void, env, i32, i32) 603 DEF_HELPER_3(vftintrzh_l_s, void, env, i32, i32) 604 DEF_HELPER_3(vftintrpl_l_s, void, env, i32, i32) 605 DEF_HELPER_3(vftintrph_l_s, void, env, i32, i32) 606 DEF_HELPER_3(vftintrml_l_s, void, env, i32, i32) 607 DEF_HELPER_3(vftintrmh_l_s, void, env, i32, i32) 608 DEF_HELPER_3(vftintl_l_s, void, env, i32, i32) 609 DEF_HELPER_3(vftinth_l_s, void, env, i32, i32) 610 611 DEF_HELPER_3(vffint_s_w, void, env, i32, i32) 612 DEF_HELPER_3(vffint_d_l, void, env, i32, i32) 613 DEF_HELPER_3(vffint_s_wu, void, env, i32, i32) 614 DEF_HELPER_3(vffint_d_lu, void, env, i32, i32) 615 DEF_HELPER_3(vffintl_d_w, void, env, i32, i32) 616 DEF_HELPER_3(vffinth_d_w, void, env, i32, i32) 617 DEF_HELPER_4(vffint_s_l, void, env, i32, i32, i32) 618 619 DEF_HELPER_FLAGS_4(vseqi_b, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 620 DEF_HELPER_FLAGS_4(vseqi_h, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 621 DEF_HELPER_FLAGS_4(vseqi_w, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 622 DEF_HELPER_FLAGS_4(vseqi_d, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 623 624 DEF_HELPER_FLAGS_4(vslei_b, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 625 DEF_HELPER_FLAGS_4(vslei_h, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 626 DEF_HELPER_FLAGS_4(vslei_w, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 627 DEF_HELPER_FLAGS_4(vslei_d, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 628 DEF_HELPER_FLAGS_4(vslei_bu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 629 DEF_HELPER_FLAGS_4(vslei_hu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 630 DEF_HELPER_FLAGS_4(vslei_wu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 631 DEF_HELPER_FLAGS_4(vslei_du, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 632 633 DEF_HELPER_FLAGS_4(vslti_b, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 634 DEF_HELPER_FLAGS_4(vslti_h, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 635 DEF_HELPER_FLAGS_4(vslti_w, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 636 DEF_HELPER_FLAGS_4(vslti_d, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 637 DEF_HELPER_FLAGS_4(vslti_bu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 638 DEF_HELPER_FLAGS_4(vslti_hu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 639 DEF_HELPER_FLAGS_4(vslti_wu, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 640 DEF_HELPER_FLAGS_4(vslti_du, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 641 642 DEF_HELPER_5(vfcmp_c_s, void, env, i32, i32, i32, i32) 643 DEF_HELPER_5(vfcmp_s_s, void, env, i32, i32, i32, i32) 644 DEF_HELPER_5(vfcmp_c_d, void, env, i32, i32, i32, i32) 645 DEF_HELPER_5(vfcmp_s_d, void, env, i32, i32, i32, i32) 646 647 DEF_HELPER_FLAGS_4(vbitseli_b, TCG_CALL_NO_RWG, void, ptr, ptr, i64, i32) 648 649 DEF_HELPER_3(vsetanyeqz_b, void, env, i32, i32) 650 DEF_HELPER_3(vsetanyeqz_h, void, env, i32, i32) 651 DEF_HELPER_3(vsetanyeqz_w, void, env, i32, i32) 652 DEF_HELPER_3(vsetanyeqz_d, void, env, i32, i32) 653 DEF_HELPER_3(vsetallnez_b, void, env, i32, i32) 654 DEF_HELPER_3(vsetallnez_h, void, env, i32, i32) 655 DEF_HELPER_3(vsetallnez_w, void, env, i32, i32) 656 DEF_HELPER_3(vsetallnez_d, void, env, i32, i32) 657 658 DEF_HELPER_4(vpackev_b, void, env, i32, i32, i32) 659 DEF_HELPER_4(vpackev_h, void, env, i32, i32, i32) 660 DEF_HELPER_4(vpackev_w, void, env, i32, i32, i32) 661 DEF_HELPER_4(vpackev_d, void, env, i32, i32, i32) 662 DEF_HELPER_4(vpackod_b, void, env, i32, i32, i32) 663 DEF_HELPER_4(vpackod_h, void, env, i32, i32, i32) 664 DEF_HELPER_4(vpackod_w, void, env, i32, i32, i32) 665 DEF_HELPER_4(vpackod_d, void, env, i32, i32, i32) 666 667 DEF_HELPER_4(vpickev_b, void, env, i32, i32, i32) 668 DEF_HELPER_4(vpickev_h, void, env, i32, i32, i32) 669 DEF_HELPER_4(vpickev_w, void, env, i32, i32, i32) 670 DEF_HELPER_4(vpickev_d, void, env, i32, i32, i32) 671 DEF_HELPER_4(vpickod_b, void, env, i32, i32, i32) 672 DEF_HELPER_4(vpickod_h, void, env, i32, i32, i32) 673 DEF_HELPER_4(vpickod_w, void, env, i32, i32, i32) 674 DEF_HELPER_4(vpickod_d, void, env, i32, i32, i32) 675 676 DEF_HELPER_4(vilvl_b, void, env, i32, i32, i32) 677 DEF_HELPER_4(vilvl_h, void, env, i32, i32, i32) 678 DEF_HELPER_4(vilvl_w, void, env, i32, i32, i32) 679 DEF_HELPER_4(vilvl_d, void, env, i32, i32, i32) 680 DEF_HELPER_4(vilvh_b, void, env, i32, i32, i32) 681 DEF_HELPER_4(vilvh_h, void, env, i32, i32, i32) 682 DEF_HELPER_4(vilvh_w, void, env, i32, i32, i32) 683 DEF_HELPER_4(vilvh_d, void, env, i32, i32, i32) 684 685 DEF_HELPER_5(vshuf_b, void, env, i32, i32, i32, i32) 686 DEF_HELPER_4(vshuf_h, void, env, i32, i32, i32) 687 DEF_HELPER_4(vshuf_w, void, env, i32, i32, i32) 688 DEF_HELPER_4(vshuf_d, void, env, i32, i32, i32) 689 DEF_HELPER_4(vshuf4i_b, void, env, i32, i32, i32) 690 DEF_HELPER_4(vshuf4i_h, void, env, i32, i32, i32) 691 DEF_HELPER_4(vshuf4i_w, void, env, i32, i32, i32) 692 DEF_HELPER_4(vshuf4i_d, void, env, i32, i32, i32) 693 694 DEF_HELPER_4(vpermi_w, void, env, i32, i32, i32) 695 696 DEF_HELPER_4(vextrins_b, void, env, i32, i32, i32) 697 DEF_HELPER_4(vextrins_h, void, env, i32, i32, i32) 698 DEF_HELPER_4(vextrins_w, void, env, i32, i32, i32) 699 DEF_HELPER_4(vextrins_d, void, env, i32, i32, i32) 700