1 DEF_HELPER_FLAGS_3(raise_exception_err, TCG_CALL_NO_WG, noreturn, env, i32, i32) 2 DEF_HELPER_FLAGS_2(raise_exception, TCG_CALL_NO_WG, noreturn, env, i32) 3 DEF_HELPER_FLAGS_4(tw, TCG_CALL_NO_WG, void, env, tl, tl, i32) 4 #if defined(TARGET_PPC64) 5 DEF_HELPER_FLAGS_4(td, TCG_CALL_NO_WG, void, env, tl, tl, i32) 6 #endif 7 DEF_HELPER_4(HASHST, void, env, tl, tl, tl) 8 DEF_HELPER_4(HASHCHK, void, env, tl, tl, tl) 9 DEF_HELPER_4(HASHSTP, void, env, tl, tl, tl) 10 DEF_HELPER_4(HASHCHKP, void, env, tl, tl, tl) 11 #if !defined(CONFIG_USER_ONLY) 12 DEF_HELPER_2(store_msr, void, env, tl) 13 DEF_HELPER_1(ppc_maybe_interrupt, void, env) 14 DEF_HELPER_1(rfi, void, env) 15 DEF_HELPER_1(40x_rfci, void, env) 16 DEF_HELPER_1(rfci, void, env) 17 DEF_HELPER_1(rfdi, void, env) 18 DEF_HELPER_1(rfmci, void, env) 19 #if defined(TARGET_PPC64) 20 DEF_HELPER_2(scv, noreturn, env, i32) 21 DEF_HELPER_2(pminsn, void, env, i32) 22 DEF_HELPER_1(rfid, void, env) 23 DEF_HELPER_1(rfscv, void, env) 24 DEF_HELPER_1(hrfid, void, env) 25 DEF_HELPER_2(rfebb, void, env, tl) 26 DEF_HELPER_2(store_lpcr, void, env, tl) 27 DEF_HELPER_2(store_pcr, void, env, tl) 28 DEF_HELPER_2(store_mmcr0, void, env, tl) 29 DEF_HELPER_2(store_mmcr1, void, env, tl) 30 DEF_HELPER_3(store_pmc, void, env, i32, i64) 31 DEF_HELPER_2(read_pmc, tl, env, i32) 32 DEF_HELPER_2(insns_inc, void, env, i32) 33 DEF_HELPER_1(handle_pmc5_overflow, void, env) 34 #endif 35 DEF_HELPER_1(check_tlb_flush_local, void, env) 36 DEF_HELPER_1(check_tlb_flush_global, void, env) 37 #endif 38 39 DEF_HELPER_3(lmw, void, env, tl, i32) 40 DEF_HELPER_FLAGS_3(stmw, TCG_CALL_NO_WG, void, env, tl, i32) 41 DEF_HELPER_4(lsw, void, env, tl, i32, i32) 42 DEF_HELPER_5(lswx, void, env, tl, i32, i32, i32) 43 DEF_HELPER_FLAGS_4(stsw, TCG_CALL_NO_WG, void, env, tl, i32, i32) 44 DEF_HELPER_FLAGS_3(dcbz, TCG_CALL_NO_WG, void, env, tl, i32) 45 DEF_HELPER_FLAGS_3(dcbzep, TCG_CALL_NO_WG, void, env, tl, i32) 46 DEF_HELPER_FLAGS_2(icbi, TCG_CALL_NO_WG, void, env, tl) 47 DEF_HELPER_FLAGS_2(icbiep, TCG_CALL_NO_WG, void, env, tl) 48 DEF_HELPER_5(lscbx, tl, env, tl, i32, i32, i32) 49 50 #if defined(TARGET_PPC64) 51 DEF_HELPER_4(divdeu, i64, env, i64, i64, i32) 52 DEF_HELPER_4(divde, i64, env, i64, i64, i32) 53 #endif 54 DEF_HELPER_4(divweu, tl, env, tl, tl, i32) 55 DEF_HELPER_4(divwe, tl, env, tl, tl, i32) 56 57 DEF_HELPER_FLAGS_1(popcntb, TCG_CALL_NO_RWG_SE, tl, tl) 58 DEF_HELPER_FLAGS_2(cmpb, TCG_CALL_NO_RWG_SE, tl, tl, tl) 59 DEF_HELPER_3(sraw, tl, env, tl, tl) 60 DEF_HELPER_FLAGS_2(CFUGED, TCG_CALL_NO_RWG_SE, i64, i64, i64) 61 DEF_HELPER_FLAGS_2(PDEPD, TCG_CALL_NO_RWG_SE, i64, i64, i64) 62 DEF_HELPER_FLAGS_2(PEXTD, TCG_CALL_NO_RWG_SE, i64, i64, i64) 63 DEF_HELPER_FLAGS_1(CDTBCD, TCG_CALL_NO_RWG_SE, tl, tl) 64 DEF_HELPER_FLAGS_1(CBCDTD, TCG_CALL_NO_RWG_SE, tl, tl) 65 #if defined(TARGET_PPC64) 66 DEF_HELPER_FLAGS_2(cmpeqb, TCG_CALL_NO_RWG_SE, i32, tl, tl) 67 DEF_HELPER_FLAGS_1(popcntw, TCG_CALL_NO_RWG_SE, tl, tl) 68 DEF_HELPER_FLAGS_2(bpermd, TCG_CALL_NO_RWG_SE, i64, i64, i64) 69 DEF_HELPER_3(srad, tl, env, tl, tl) 70 DEF_HELPER_FLAGS_0(darn32, TCG_CALL_NO_RWG, tl) 71 DEF_HELPER_FLAGS_0(darn64, TCG_CALL_NO_RWG, tl) 72 #endif 73 74 DEF_HELPER_FLAGS_1(cntlsw32, TCG_CALL_NO_RWG_SE, i32, i32) 75 DEF_HELPER_FLAGS_1(cntlzw32, TCG_CALL_NO_RWG_SE, i32, i32) 76 DEF_HELPER_FLAGS_2(brinc, TCG_CALL_NO_RWG_SE, tl, tl, tl) 77 78 DEF_HELPER_1(float_check_status, void, env) 79 DEF_HELPER_1(fpscr_check_status, void, env) 80 DEF_HELPER_1(reset_fpstatus, void, env) 81 DEF_HELPER_2(compute_fprf_float64, void, env, i64) 82 DEF_HELPER_3(store_fpscr, void, env, i64, i32) 83 DEF_HELPER_2(fpscr_clrbit, void, env, i32) 84 DEF_HELPER_2(fpscr_setbit, void, env, i32) 85 DEF_HELPER_FLAGS_1(todouble, TCG_CALL_NO_RWG_SE, i64, i32) 86 DEF_HELPER_FLAGS_1(tosingle, TCG_CALL_NO_RWG_SE, i32, i64) 87 88 DEF_HELPER_4(fcmpo, void, env, i64, i64, i32) 89 DEF_HELPER_4(fcmpu, void, env, i64, i64, i32) 90 91 DEF_HELPER_2(fctiw, i64, env, i64) 92 DEF_HELPER_2(fctiwu, i64, env, i64) 93 DEF_HELPER_2(fctiwz, i64, env, i64) 94 DEF_HELPER_2(fctiwuz, i64, env, i64) 95 DEF_HELPER_2(fcfid, i64, env, i64) 96 DEF_HELPER_2(fcfidu, i64, env, i64) 97 DEF_HELPER_2(fcfids, i64, env, i64) 98 DEF_HELPER_2(fcfidus, i64, env, i64) 99 DEF_HELPER_2(fctid, i64, env, i64) 100 DEF_HELPER_2(fctidu, i64, env, i64) 101 DEF_HELPER_2(fctidz, i64, env, i64) 102 DEF_HELPER_2(fctiduz, i64, env, i64) 103 DEF_HELPER_2(frsp, i64, env, i64) 104 DEF_HELPER_2(frin, i64, env, i64) 105 DEF_HELPER_2(friz, i64, env, i64) 106 DEF_HELPER_2(frip, i64, env, i64) 107 DEF_HELPER_2(frim, i64, env, i64) 108 109 DEF_HELPER_3(fadd, f64, env, f64, f64) 110 DEF_HELPER_3(fadds, f64, env, f64, f64) 111 DEF_HELPER_3(fsub, f64, env, f64, f64) 112 DEF_HELPER_3(fsubs, f64, env, f64, f64) 113 DEF_HELPER_3(fmul, f64, env, f64, f64) 114 DEF_HELPER_3(fmuls, f64, env, f64, f64) 115 DEF_HELPER_3(fdiv, f64, env, f64, f64) 116 DEF_HELPER_3(fdivs, f64, env, f64, f64) 117 DEF_HELPER_4(fmadd, i64, env, i64, i64, i64) 118 DEF_HELPER_4(fmsub, i64, env, i64, i64, i64) 119 DEF_HELPER_4(fnmadd, i64, env, i64, i64, i64) 120 DEF_HELPER_4(fnmsub, i64, env, i64, i64, i64) 121 DEF_HELPER_4(fmadds, i64, env, i64, i64, i64) 122 DEF_HELPER_4(fmsubs, i64, env, i64, i64, i64) 123 DEF_HELPER_4(fnmadds, i64, env, i64, i64, i64) 124 DEF_HELPER_4(fnmsubs, i64, env, i64, i64, i64) 125 DEF_HELPER_2(FSQRT, f64, env, f64) 126 DEF_HELPER_2(FSQRTS, f64, env, f64) 127 DEF_HELPER_2(fre, i64, env, i64) 128 DEF_HELPER_2(fres, i64, env, i64) 129 DEF_HELPER_2(frsqrte, i64, env, i64) 130 DEF_HELPER_2(frsqrtes, i64, env, i64) 131 DEF_HELPER_FLAGS_3(FSEL, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64) 132 133 DEF_HELPER_FLAGS_2(ftdiv, TCG_CALL_NO_RWG_SE, i32, i64, i64) 134 DEF_HELPER_FLAGS_1(ftsqrt, TCG_CALL_NO_RWG_SE, i32, i64) 135 136 #define dh_alias_avr ptr 137 #define dh_ctype_avr ppc_avr_t * 138 #define dh_typecode_avr dh_typecode_ptr 139 140 #define dh_alias_vsr ptr 141 #define dh_ctype_vsr ppc_vsr_t * 142 #define dh_typecode_vsr dh_typecode_ptr 143 144 #define dh_alias_acc ptr 145 #define dh_ctype_acc ppc_acc_t * 146 #define dh_typecode_acc dh_typecode_ptr 147 148 DEF_HELPER_FLAGS_4(VAVGUB, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 149 DEF_HELPER_FLAGS_4(VAVGUH, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 150 DEF_HELPER_FLAGS_4(VAVGUW, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 151 DEF_HELPER_FLAGS_4(VABSDUB, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 152 DEF_HELPER_FLAGS_4(VABSDUH, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 153 DEF_HELPER_FLAGS_4(VABSDUW, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 154 DEF_HELPER_FLAGS_4(VAVGSB, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 155 DEF_HELPER_FLAGS_4(VAVGSH, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 156 DEF_HELPER_FLAGS_4(VAVGSW, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 157 DEF_HELPER_4(vcmpeqfp, void, env, avr, avr, avr) 158 DEF_HELPER_4(vcmpgefp, void, env, avr, avr, avr) 159 DEF_HELPER_4(vcmpgtfp, void, env, avr, avr, avr) 160 DEF_HELPER_4(vcmpbfp, void, env, avr, avr, avr) 161 DEF_HELPER_FLAGS_4(VCMPNEZB, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 162 DEF_HELPER_FLAGS_4(VCMPNEZH, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 163 DEF_HELPER_FLAGS_4(VCMPNEZW, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 164 DEF_HELPER_4(vcmpeqfp_dot, void, env, avr, avr, avr) 165 DEF_HELPER_4(vcmpgefp_dot, void, env, avr, avr, avr) 166 DEF_HELPER_4(vcmpgtfp_dot, void, env, avr, avr, avr) 167 DEF_HELPER_4(vcmpbfp_dot, void, env, avr, avr, avr) 168 DEF_HELPER_FLAGS_3(vmrglb, TCG_CALL_NO_RWG, void, avr, avr, avr) 169 DEF_HELPER_FLAGS_3(vmrglh, TCG_CALL_NO_RWG, void, avr, avr, avr) 170 DEF_HELPER_FLAGS_3(vmrglw, TCG_CALL_NO_RWG, void, avr, avr, avr) 171 DEF_HELPER_FLAGS_3(vmrghb, TCG_CALL_NO_RWG, void, avr, avr, avr) 172 DEF_HELPER_FLAGS_3(vmrghh, TCG_CALL_NO_RWG, void, avr, avr, avr) 173 DEF_HELPER_FLAGS_3(vmrghw, TCG_CALL_NO_RWG, void, avr, avr, avr) 174 DEF_HELPER_FLAGS_3(VMULESB, TCG_CALL_NO_RWG, void, avr, avr, avr) 175 DEF_HELPER_FLAGS_3(VMULESH, TCG_CALL_NO_RWG, void, avr, avr, avr) 176 DEF_HELPER_FLAGS_3(VMULESW, TCG_CALL_NO_RWG, void, avr, avr, avr) 177 DEF_HELPER_FLAGS_3(VMULEUB, TCG_CALL_NO_RWG, void, avr, avr, avr) 178 DEF_HELPER_FLAGS_3(VMULEUH, TCG_CALL_NO_RWG, void, avr, avr, avr) 179 DEF_HELPER_FLAGS_3(VMULEUW, TCG_CALL_NO_RWG, void, avr, avr, avr) 180 DEF_HELPER_FLAGS_3(VMULOSB, TCG_CALL_NO_RWG, void, avr, avr, avr) 181 DEF_HELPER_FLAGS_3(VMULOSH, TCG_CALL_NO_RWG, void, avr, avr, avr) 182 DEF_HELPER_FLAGS_3(VMULOSW, TCG_CALL_NO_RWG, void, avr, avr, avr) 183 DEF_HELPER_FLAGS_3(VMULOUB, TCG_CALL_NO_RWG, void, avr, avr, avr) 184 DEF_HELPER_FLAGS_3(VMULOUH, TCG_CALL_NO_RWG, void, avr, avr, avr) 185 DEF_HELPER_FLAGS_3(VMULOUW, TCG_CALL_NO_RWG, void, avr, avr, avr) 186 DEF_HELPER_FLAGS_3(VDIVSQ, TCG_CALL_NO_RWG, void, avr, avr, avr) 187 DEF_HELPER_FLAGS_3(VDIVUQ, TCG_CALL_NO_RWG, void, avr, avr, avr) 188 DEF_HELPER_FLAGS_3(VDIVESD, TCG_CALL_NO_RWG, void, avr, avr, avr) 189 DEF_HELPER_FLAGS_3(VDIVEUD, TCG_CALL_NO_RWG, void, avr, avr, avr) 190 DEF_HELPER_FLAGS_3(VDIVESQ, TCG_CALL_NO_RWG, void, avr, avr, avr) 191 DEF_HELPER_FLAGS_3(VDIVEUQ, TCG_CALL_NO_RWG, void, avr, avr, avr) 192 DEF_HELPER_FLAGS_3(VMODSQ, TCG_CALL_NO_RWG, void, avr, avr, avr) 193 DEF_HELPER_FLAGS_3(VMODUQ, TCG_CALL_NO_RWG, void, avr, avr, avr) 194 DEF_HELPER_FLAGS_3(vslo, TCG_CALL_NO_RWG, void, avr, avr, avr) 195 DEF_HELPER_FLAGS_3(vsro, TCG_CALL_NO_RWG, void, avr, avr, avr) 196 DEF_HELPER_FLAGS_3(vsrv, TCG_CALL_NO_RWG, void, avr, avr, avr) 197 DEF_HELPER_FLAGS_3(vslv, TCG_CALL_NO_RWG, void, avr, avr, avr) 198 DEF_HELPER_FLAGS_3(VPRTYBQ, TCG_CALL_NO_RWG, void, avr, avr, i32) 199 DEF_HELPER_FLAGS_5(vaddsbs, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 200 DEF_HELPER_FLAGS_5(vaddshs, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 201 DEF_HELPER_FLAGS_5(vaddsws, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 202 DEF_HELPER_FLAGS_5(vsubsbs, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 203 DEF_HELPER_FLAGS_5(vsubshs, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 204 DEF_HELPER_FLAGS_5(vsubsws, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 205 DEF_HELPER_FLAGS_5(vaddubs, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 206 DEF_HELPER_FLAGS_5(vadduhs, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 207 DEF_HELPER_FLAGS_5(vadduws, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 208 DEF_HELPER_FLAGS_5(vsububs, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 209 DEF_HELPER_FLAGS_5(vsubuhs, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 210 DEF_HELPER_FLAGS_5(vsubuws, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 211 DEF_HELPER_FLAGS_3(VADDUQM, TCG_CALL_NO_RWG, void, avr, avr, avr) 212 DEF_HELPER_FLAGS_4(VADDECUQ, TCG_CALL_NO_RWG, void, avr, avr, avr, avr) 213 DEF_HELPER_FLAGS_4(VADDEUQM, TCG_CALL_NO_RWG, void, avr, avr, avr, avr) 214 DEF_HELPER_FLAGS_3(VADDCUQ, TCG_CALL_NO_RWG, void, avr, avr, avr) 215 DEF_HELPER_FLAGS_3(VSUBUQM, TCG_CALL_NO_RWG, void, avr, avr, avr) 216 DEF_HELPER_FLAGS_4(VSUBECUQ, TCG_CALL_NO_RWG, void, avr, avr, avr, avr) 217 DEF_HELPER_FLAGS_4(VSUBEUQM, TCG_CALL_NO_RWG, void, avr, avr, avr, avr) 218 DEF_HELPER_FLAGS_3(VSUBCUQ, TCG_CALL_NO_RWG, void, avr, avr, avr) 219 DEF_HELPER_FLAGS_4(vsldoi, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 220 DEF_HELPER_FLAGS_3(vextractub, TCG_CALL_NO_RWG, void, avr, avr, i32) 221 DEF_HELPER_FLAGS_3(vextractuh, TCG_CALL_NO_RWG, void, avr, avr, i32) 222 DEF_HELPER_FLAGS_3(vextractuw, TCG_CALL_NO_RWG, void, avr, avr, i32) 223 DEF_HELPER_FLAGS_3(vextractd, TCG_CALL_NO_RWG, void, avr, avr, i32) 224 DEF_HELPER_4(VINSBLX, void, env, avr, i64, tl) 225 DEF_HELPER_4(VINSHLX, void, env, avr, i64, tl) 226 DEF_HELPER_4(VINSWLX, void, env, avr, i64, tl) 227 DEF_HELPER_4(VINSDLX, void, env, avr, i64, tl) 228 DEF_HELPER_FLAGS_2(VSTRIBL, TCG_CALL_NO_RWG, i32, avr, avr) 229 DEF_HELPER_FLAGS_2(VSTRIBR, TCG_CALL_NO_RWG, i32, avr, avr) 230 DEF_HELPER_FLAGS_2(VSTRIHL, TCG_CALL_NO_RWG, i32, avr, avr) 231 DEF_HELPER_FLAGS_2(VSTRIHR, TCG_CALL_NO_RWG, i32, avr, avr) 232 DEF_HELPER_FLAGS_2(vupkhpx, TCG_CALL_NO_RWG, void, avr, avr) 233 DEF_HELPER_FLAGS_2(vupklpx, TCG_CALL_NO_RWG, void, avr, avr) 234 DEF_HELPER_FLAGS_2(vupkhsb, TCG_CALL_NO_RWG, void, avr, avr) 235 DEF_HELPER_FLAGS_2(vupkhsh, TCG_CALL_NO_RWG, void, avr, avr) 236 DEF_HELPER_FLAGS_2(vupkhsw, TCG_CALL_NO_RWG, void, avr, avr) 237 DEF_HELPER_FLAGS_2(vupklsb, TCG_CALL_NO_RWG, void, avr, avr) 238 DEF_HELPER_FLAGS_2(vupklsh, TCG_CALL_NO_RWG, void, avr, avr) 239 DEF_HELPER_FLAGS_2(vupklsw, TCG_CALL_NO_RWG, void, avr, avr) 240 DEF_HELPER_FLAGS_4(VMSUMUBM, TCG_CALL_NO_RWG, void, avr, avr, avr, avr) 241 DEF_HELPER_FLAGS_4(VMSUMMBM, TCG_CALL_NO_RWG, void, avr, avr, avr, avr) 242 DEF_HELPER_FLAGS_4(VPERM, TCG_CALL_NO_RWG, void, avr, avr, avr, avr) 243 DEF_HELPER_FLAGS_4(VPERMR, TCG_CALL_NO_RWG, void, avr, avr, avr, avr) 244 DEF_HELPER_4(vpkshss, void, env, avr, avr, avr) 245 DEF_HELPER_4(vpkshus, void, env, avr, avr, avr) 246 DEF_HELPER_4(vpkswss, void, env, avr, avr, avr) 247 DEF_HELPER_4(vpkswus, void, env, avr, avr, avr) 248 DEF_HELPER_4(vpksdss, void, env, avr, avr, avr) 249 DEF_HELPER_4(vpksdus, void, env, avr, avr, avr) 250 DEF_HELPER_4(vpkuhus, void, env, avr, avr, avr) 251 DEF_HELPER_4(vpkuwus, void, env, avr, avr, avr) 252 DEF_HELPER_4(vpkudus, void, env, avr, avr, avr) 253 DEF_HELPER_4(vpkuhum, void, env, avr, avr, avr) 254 DEF_HELPER_4(vpkuwum, void, env, avr, avr, avr) 255 DEF_HELPER_4(vpkudum, void, env, avr, avr, avr) 256 DEF_HELPER_FLAGS_3(vpkpx, TCG_CALL_NO_RWG, void, avr, avr, avr) 257 DEF_HELPER_5(VMHADDSHS, void, env, avr, avr, avr, avr) 258 DEF_HELPER_5(VMHRADDSHS, void, env, avr, avr, avr, avr) 259 DEF_HELPER_FLAGS_4(VMSUMUHM, TCG_CALL_NO_RWG, void, avr, avr, avr, avr) 260 DEF_HELPER_5(VMSUMUHS, void, env, avr, avr, avr, avr) 261 DEF_HELPER_FLAGS_4(VMSUMSHM, TCG_CALL_NO_RWG, void, avr, avr, avr, avr) 262 DEF_HELPER_5(VMSUMSHS, void, env, avr, avr, avr, avr) 263 DEF_HELPER_FLAGS_5(VMLADDUHM, TCG_CALL_NO_RWG, void, avr, avr, avr, avr, i32) 264 DEF_HELPER_FLAGS_2(mtvscr, TCG_CALL_NO_RWG, void, env, i32) 265 DEF_HELPER_FLAGS_1(mfvscr, TCG_CALL_NO_RWG, i32, env) 266 DEF_HELPER_3(lvebx, void, env, avr, tl) 267 DEF_HELPER_3(lvehx, void, env, avr, tl) 268 DEF_HELPER_3(lvewx, void, env, avr, tl) 269 DEF_HELPER_3(stvebx, void, env, avr, tl) 270 DEF_HELPER_3(stvehx, void, env, avr, tl) 271 DEF_HELPER_3(stvewx, void, env, avr, tl) 272 #if defined(TARGET_PPC64) 273 DEF_HELPER_4(lxvl, void, env, tl, vsr, tl) 274 DEF_HELPER_4(lxvll, void, env, tl, vsr, tl) 275 DEF_HELPER_4(stxvl, void, env, tl, vsr, tl) 276 DEF_HELPER_4(stxvll, void, env, tl, vsr, tl) 277 #endif 278 DEF_HELPER_4(vsumsws, void, env, avr, avr, avr) 279 DEF_HELPER_4(vsum2sws, void, env, avr, avr, avr) 280 DEF_HELPER_4(vsum4sbs, void, env, avr, avr, avr) 281 DEF_HELPER_4(vsum4shs, void, env, avr, avr, avr) 282 DEF_HELPER_4(vsum4ubs, void, env, avr, avr, avr) 283 DEF_HELPER_4(vaddfp, void, env, avr, avr, avr) 284 DEF_HELPER_4(vsubfp, void, env, avr, avr, avr) 285 DEF_HELPER_4(vmaxfp, void, env, avr, avr, avr) 286 DEF_HELPER_4(vminfp, void, env, avr, avr, avr) 287 DEF_HELPER_3(vrefp, void, env, avr, avr) 288 DEF_HELPER_3(vrsqrtefp, void, env, avr, avr) 289 DEF_HELPER_FLAGS_4(VRLWMI, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 290 DEF_HELPER_FLAGS_4(VRLDMI, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 291 DEF_HELPER_FLAGS_4(VRLDNM, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 292 DEF_HELPER_FLAGS_4(VRLWNM, TCG_CALL_NO_RWG, void, avr, avr, avr, i32) 293 DEF_HELPER_5(vmaddfp, void, env, avr, avr, avr, avr) 294 DEF_HELPER_5(vnmsubfp, void, env, avr, avr, avr, avr) 295 DEF_HELPER_3(vexptefp, void, env, avr, avr) 296 DEF_HELPER_3(vlogefp, void, env, avr, avr) 297 DEF_HELPER_3(vrfim, void, env, avr, avr) 298 DEF_HELPER_3(vrfin, void, env, avr, avr) 299 DEF_HELPER_3(vrfip, void, env, avr, avr) 300 DEF_HELPER_3(vrfiz, void, env, avr, avr) 301 DEF_HELPER_4(vcfux, void, env, avr, avr, i32) 302 DEF_HELPER_4(vcfsx, void, env, avr, avr, i32) 303 DEF_HELPER_4(vctuxs, void, env, avr, avr, i32) 304 DEF_HELPER_4(vctsxs, void, env, avr, avr, i32) 305 306 DEF_HELPER_FLAGS_2(vclzb, TCG_CALL_NO_RWG, void, avr, avr) 307 DEF_HELPER_FLAGS_2(vclzh, TCG_CALL_NO_RWG, void, avr, avr) 308 DEF_HELPER_FLAGS_2(vctzb, TCG_CALL_NO_RWG, void, avr, avr) 309 DEF_HELPER_FLAGS_2(vctzh, TCG_CALL_NO_RWG, void, avr, avr) 310 DEF_HELPER_FLAGS_2(vctzw, TCG_CALL_NO_RWG, void, avr, avr) 311 DEF_HELPER_FLAGS_2(vctzd, TCG_CALL_NO_RWG, void, avr, avr) 312 DEF_HELPER_FLAGS_2(vpopcntb, TCG_CALL_NO_RWG, void, avr, avr) 313 DEF_HELPER_FLAGS_2(vpopcnth, TCG_CALL_NO_RWG, void, avr, avr) 314 DEF_HELPER_FLAGS_2(vpopcntw, TCG_CALL_NO_RWG, void, avr, avr) 315 DEF_HELPER_FLAGS_2(vpopcntd, TCG_CALL_NO_RWG, void, avr, avr) 316 DEF_HELPER_FLAGS_1(vclzlsbb, TCG_CALL_NO_RWG, tl, avr) 317 DEF_HELPER_FLAGS_1(vctzlsbb, TCG_CALL_NO_RWG, tl, avr) 318 DEF_HELPER_FLAGS_3(vbpermd, TCG_CALL_NO_RWG, void, avr, avr, avr) 319 DEF_HELPER_FLAGS_3(vbpermq, TCG_CALL_NO_RWG, void, avr, avr, avr) 320 DEF_HELPER_FLAGS_3(vpmsumb, TCG_CALL_NO_RWG, void, avr, avr, avr) 321 DEF_HELPER_FLAGS_3(vpmsumh, TCG_CALL_NO_RWG, void, avr, avr, avr) 322 DEF_HELPER_FLAGS_3(vpmsumw, TCG_CALL_NO_RWG, void, avr, avr, avr) 323 DEF_HELPER_FLAGS_3(VPMSUMD, TCG_CALL_NO_RWG, void, avr, avr, avr) 324 DEF_HELPER_FLAGS_2(vextublx, TCG_CALL_NO_RWG, tl, tl, avr) 325 DEF_HELPER_FLAGS_2(vextuhlx, TCG_CALL_NO_RWG, tl, tl, avr) 326 DEF_HELPER_FLAGS_2(vextuwlx, TCG_CALL_NO_RWG, tl, tl, avr) 327 DEF_HELPER_FLAGS_2(vextubrx, TCG_CALL_NO_RWG, tl, tl, avr) 328 DEF_HELPER_FLAGS_2(vextuhrx, TCG_CALL_NO_RWG, tl, tl, avr) 329 DEF_HELPER_FLAGS_2(vextuwrx, TCG_CALL_NO_RWG, tl, tl, avr) 330 DEF_HELPER_5(VEXTDUBVLX, void, env, avr, avr, avr, tl) 331 DEF_HELPER_5(VEXTDUHVLX, void, env, avr, avr, avr, tl) 332 DEF_HELPER_5(VEXTDUWVLX, void, env, avr, avr, avr, tl) 333 DEF_HELPER_5(VEXTDDVLX, void, env, avr, avr, avr, tl) 334 335 DEF_HELPER_FLAGS_2(vsbox, TCG_CALL_NO_RWG, void, avr, avr) 336 DEF_HELPER_FLAGS_3(vcipher, TCG_CALL_NO_RWG, void, avr, avr, avr) 337 DEF_HELPER_FLAGS_3(vcipherlast, TCG_CALL_NO_RWG, void, avr, avr, avr) 338 DEF_HELPER_FLAGS_3(vncipher, TCG_CALL_NO_RWG, void, avr, avr, avr) 339 DEF_HELPER_FLAGS_3(vncipherlast, TCG_CALL_NO_RWG, void, avr, avr, avr) 340 DEF_HELPER_FLAGS_3(vshasigmaw, TCG_CALL_NO_RWG, void, avr, avr, i32) 341 DEF_HELPER_FLAGS_3(vshasigmad, TCG_CALL_NO_RWG, void, avr, avr, i32) 342 DEF_HELPER_FLAGS_4(vpermxor, TCG_CALL_NO_RWG, void, avr, avr, avr, avr) 343 344 DEF_HELPER_FLAGS_4(bcdadd, TCG_CALL_NO_RWG, i32, avr, avr, avr, i32) 345 DEF_HELPER_FLAGS_4(bcdsub, TCG_CALL_NO_RWG, i32, avr, avr, avr, i32) 346 DEF_HELPER_FLAGS_3(bcdcfn, TCG_CALL_NO_RWG, i32, avr, avr, i32) 347 DEF_HELPER_FLAGS_3(bcdctn, TCG_CALL_NO_RWG, i32, avr, avr, i32) 348 DEF_HELPER_FLAGS_3(bcdcfz, TCG_CALL_NO_RWG, i32, avr, avr, i32) 349 DEF_HELPER_FLAGS_3(bcdctz, TCG_CALL_NO_RWG, i32, avr, avr, i32) 350 DEF_HELPER_FLAGS_3(bcdcfsq, TCG_CALL_NO_RWG, i32, avr, avr, i32) 351 DEF_HELPER_FLAGS_3(bcdctsq, TCG_CALL_NO_RWG, i32, avr, avr, i32) 352 DEF_HELPER_FLAGS_4(bcdcpsgn, TCG_CALL_NO_RWG, i32, avr, avr, avr, i32) 353 DEF_HELPER_FLAGS_3(bcdsetsgn, TCG_CALL_NO_RWG, i32, avr, avr, i32) 354 DEF_HELPER_FLAGS_4(bcds, TCG_CALL_NO_RWG, i32, avr, avr, avr, i32) 355 DEF_HELPER_FLAGS_4(bcdus, TCG_CALL_NO_RWG, i32, avr, avr, avr, i32) 356 DEF_HELPER_FLAGS_4(bcdsr, TCG_CALL_NO_RWG, i32, avr, avr, avr, i32) 357 DEF_HELPER_FLAGS_4(bcdtrunc, TCG_CALL_NO_RWG, i32, avr, avr, avr, i32) 358 DEF_HELPER_FLAGS_4(bcdutrunc, TCG_CALL_NO_RWG, i32, avr, avr, avr, i32) 359 360 DEF_HELPER_4(xsadddp, void, env, vsr, vsr, vsr) 361 DEF_HELPER_5(xsaddqp, void, env, i32, vsr, vsr, vsr) 362 DEF_HELPER_4(xssubdp, void, env, vsr, vsr, vsr) 363 DEF_HELPER_4(xsmuldp, void, env, vsr, vsr, vsr) 364 DEF_HELPER_5(xsmulqp, void, env, i32, vsr, vsr, vsr) 365 DEF_HELPER_4(xsdivdp, void, env, vsr, vsr, vsr) 366 DEF_HELPER_5(xsdivqp, void, env, i32, vsr, vsr, vsr) 367 DEF_HELPER_3(xsredp, void, env, vsr, vsr) 368 DEF_HELPER_3(xssqrtdp, void, env, vsr, vsr) 369 DEF_HELPER_3(xsrsqrtedp, void, env, vsr, vsr) 370 DEF_HELPER_4(xstdivdp, void, env, i32, vsr, vsr) 371 DEF_HELPER_3(xstsqrtdp, void, env, i32, vsr) 372 DEF_HELPER_5(XSMADDDP, void, env, vsr, vsr, vsr, vsr) 373 DEF_HELPER_5(XSMSUBDP, void, env, vsr, vsr, vsr, vsr) 374 DEF_HELPER_5(XSNMADDDP, void, env, vsr, vsr, vsr, vsr) 375 DEF_HELPER_5(XSNMSUBDP, void, env, vsr, vsr, vsr, vsr) 376 DEF_HELPER_4(XSCMPEQDP, void, env, vsr, vsr, vsr) 377 DEF_HELPER_4(XSCMPGTDP, void, env, vsr, vsr, vsr) 378 DEF_HELPER_4(XSCMPGEDP, void, env, vsr, vsr, vsr) 379 DEF_HELPER_4(XSCMPEQQP, void, env, vsr, vsr, vsr) 380 DEF_HELPER_4(XSCMPGTQP, void, env, vsr, vsr, vsr) 381 DEF_HELPER_4(XSCMPGEQP, void, env, vsr, vsr, vsr) 382 DEF_HELPER_4(xscmpexpdp, void, env, i32, vsr, vsr) 383 DEF_HELPER_4(xscmpexpqp, void, env, i32, vsr, vsr) 384 DEF_HELPER_4(xscmpodp, void, env, i32, vsr, vsr) 385 DEF_HELPER_4(xscmpudp, void, env, i32, vsr, vsr) 386 DEF_HELPER_4(xscmpoqp, void, env, i32, vsr, vsr) 387 DEF_HELPER_4(xscmpuqp, void, env, i32, vsr, vsr) 388 DEF_HELPER_4(xsmaxdp, void, env, vsr, vsr, vsr) 389 DEF_HELPER_4(xsmindp, void, env, vsr, vsr, vsr) 390 DEF_HELPER_4(XSMAXCDP, void, env, vsr, vsr, vsr) 391 DEF_HELPER_4(XSMINCDP, void, env, vsr, vsr, vsr) 392 DEF_HELPER_4(XSMAXJDP, void, env, vsr, vsr, vsr) 393 DEF_HELPER_4(XSMINJDP, void, env, vsr, vsr, vsr) 394 DEF_HELPER_4(XSMAXCQP, void, env, vsr, vsr, vsr) 395 DEF_HELPER_4(XSMINCQP, void, env, vsr, vsr, vsr) 396 DEF_HELPER_3(xscvdphp, void, env, vsr, vsr) 397 DEF_HELPER_4(xscvdpqp, void, env, i32, vsr, vsr) 398 DEF_HELPER_3(xscvdpsp, void, env, vsr, vsr) 399 DEF_HELPER_2(xscvdpspn, i64, env, i64) 400 DEF_HELPER_4(XSCVQPDP, void, env, i32, vsr, vsr) 401 DEF_HELPER_4(xscvqpsdz, void, env, i32, vsr, vsr) 402 DEF_HELPER_4(xscvqpswz, void, env, i32, vsr, vsr) 403 DEF_HELPER_4(xscvqpudz, void, env, i32, vsr, vsr) 404 DEF_HELPER_4(xscvqpuwz, void, env, i32, vsr, vsr) 405 DEF_HELPER_3(XSCVQPUQZ, void, env, vsr, vsr) 406 DEF_HELPER_3(XSCVQPSQZ, void, env, vsr, vsr) 407 DEF_HELPER_3(XSCVUQQP, void, env, vsr, vsr) 408 DEF_HELPER_3(XSCVSQQP, void, env, vsr, vsr) 409 DEF_HELPER_3(xscvhpdp, void, env, vsr, vsr) 410 DEF_HELPER_4(xscvsdqp, void, env, i32, vsr, vsr) 411 DEF_HELPER_3(xscvspdp, void, env, vsr, vsr) 412 DEF_HELPER_FLAGS_1(XSCVSPDPN, TCG_CALL_NO_RWG_SE, i64, i64) 413 DEF_HELPER_3(xscvdpsxds, void, env, vsr, vsr) 414 DEF_HELPER_3(xscvdpsxws, void, env, vsr, vsr) 415 DEF_HELPER_3(xscvdpuxds, void, env, vsr, vsr) 416 DEF_HELPER_3(xscvdpuxws, void, env, vsr, vsr) 417 DEF_HELPER_3(xscvsxddp, void, env, vsr, vsr) 418 DEF_HELPER_3(xscvuxdsp, void, env, vsr, vsr) 419 DEF_HELPER_3(xscvsxdsp, void, env, vsr, vsr) 420 DEF_HELPER_4(xscvudqp, void, env, i32, vsr, vsr) 421 DEF_HELPER_3(xscvuxddp, void, env, vsr, vsr) 422 DEF_HELPER_4(XSTSTDCSP, void, env, i32, i32, vsr) 423 DEF_HELPER_4(XSTSTDCDP, void, env, i32, i32, vsr) 424 DEF_HELPER_4(XSTSTDCQP, void, env, i32, i32, vsr) 425 DEF_HELPER_3(xsrdpi, void, env, vsr, vsr) 426 DEF_HELPER_3(xsrdpic, void, env, vsr, vsr) 427 DEF_HELPER_3(xsrdpim, void, env, vsr, vsr) 428 DEF_HELPER_3(xsrdpip, void, env, vsr, vsr) 429 DEF_HELPER_3(xsrdpiz, void, env, vsr, vsr) 430 DEF_HELPER_4(xsrqpi, void, env, i32, vsr, vsr) 431 DEF_HELPER_4(xsrqpxp, void, env, i32, vsr, vsr) 432 DEF_HELPER_4(xssqrtqp, void, env, i32, vsr, vsr) 433 DEF_HELPER_5(xssubqp, void, env, i32, vsr, vsr, vsr) 434 435 DEF_HELPER_4(xsaddsp, void, env, vsr, vsr, vsr) 436 DEF_HELPER_4(xssubsp, void, env, vsr, vsr, vsr) 437 DEF_HELPER_4(xsmulsp, void, env, vsr, vsr, vsr) 438 DEF_HELPER_4(xsdivsp, void, env, vsr, vsr, vsr) 439 DEF_HELPER_3(xsresp, void, env, vsr, vsr) 440 DEF_HELPER_2(xsrsp, i64, env, i64) 441 DEF_HELPER_3(xssqrtsp, void, env, vsr, vsr) 442 DEF_HELPER_3(xsrsqrtesp, void, env, vsr, vsr) 443 DEF_HELPER_5(XSMADDSP, void, env, vsr, vsr, vsr, vsr) 444 DEF_HELPER_5(XSMSUBSP, void, env, vsr, vsr, vsr, vsr) 445 DEF_HELPER_5(XSNMADDSP, void, env, vsr, vsr, vsr, vsr) 446 DEF_HELPER_5(XSNMSUBSP, void, env, vsr, vsr, vsr, vsr) 447 448 DEF_HELPER_5(XSMADDQP, void, env, vsr, vsr, vsr, vsr) 449 DEF_HELPER_5(XSMADDQPO, void, env, vsr, vsr, vsr, vsr) 450 DEF_HELPER_5(XSMSUBQP, void, env, vsr, vsr, vsr, vsr) 451 DEF_HELPER_5(XSMSUBQPO, void, env, vsr, vsr, vsr, vsr) 452 DEF_HELPER_5(XSNMADDQP, void, env, vsr, vsr, vsr, vsr) 453 DEF_HELPER_5(XSNMADDQPO, void, env, vsr, vsr, vsr, vsr) 454 DEF_HELPER_5(XSNMSUBQP, void, env, vsr, vsr, vsr, vsr) 455 DEF_HELPER_5(XSNMSUBQPO, void, env, vsr, vsr, vsr, vsr) 456 457 DEF_HELPER_4(xvadddp, void, env, vsr, vsr, vsr) 458 DEF_HELPER_4(xvsubdp, void, env, vsr, vsr, vsr) 459 DEF_HELPER_4(xvmuldp, void, env, vsr, vsr, vsr) 460 DEF_HELPER_4(xvdivdp, void, env, vsr, vsr, vsr) 461 DEF_HELPER_3(xvredp, void, env, vsr, vsr) 462 DEF_HELPER_3(xvsqrtdp, void, env, vsr, vsr) 463 DEF_HELPER_3(xvrsqrtedp, void, env, vsr, vsr) 464 DEF_HELPER_4(xvtdivdp, void, env, i32, vsr, vsr) 465 DEF_HELPER_3(xvtsqrtdp, void, env, i32, vsr) 466 DEF_HELPER_5(xvmadddp, void, env, vsr, vsr, vsr, vsr) 467 DEF_HELPER_5(xvmsubdp, void, env, vsr, vsr, vsr, vsr) 468 DEF_HELPER_5(xvnmadddp, void, env, vsr, vsr, vsr, vsr) 469 DEF_HELPER_5(xvnmsubdp, void, env, vsr, vsr, vsr, vsr) 470 DEF_HELPER_4(xvmaxdp, void, env, vsr, vsr, vsr) 471 DEF_HELPER_4(xvmindp, void, env, vsr, vsr, vsr) 472 DEF_HELPER_FLAGS_4(xvcmpeqdp, TCG_CALL_NO_RWG, i32, env, vsr, vsr, vsr) 473 DEF_HELPER_FLAGS_4(xvcmpgedp, TCG_CALL_NO_RWG, i32, env, vsr, vsr, vsr) 474 DEF_HELPER_FLAGS_4(xvcmpgtdp, TCG_CALL_NO_RWG, i32, env, vsr, vsr, vsr) 475 DEF_HELPER_FLAGS_4(xvcmpnedp, TCG_CALL_NO_RWG, i32, env, vsr, vsr, vsr) 476 DEF_HELPER_3(xvcvdpsp, void, env, vsr, vsr) 477 DEF_HELPER_3(xvcvdpsxds, void, env, vsr, vsr) 478 DEF_HELPER_3(xvcvdpsxws, void, env, vsr, vsr) 479 DEF_HELPER_3(xvcvdpuxds, void, env, vsr, vsr) 480 DEF_HELPER_3(xvcvdpuxws, void, env, vsr, vsr) 481 DEF_HELPER_3(xvcvsxddp, void, env, vsr, vsr) 482 DEF_HELPER_3(xvcvuxddp, void, env, vsr, vsr) 483 DEF_HELPER_3(xvcvsxwdp, void, env, vsr, vsr) 484 DEF_HELPER_3(xvcvuxwdp, void, env, vsr, vsr) 485 DEF_HELPER_3(xvrdpi, void, env, vsr, vsr) 486 DEF_HELPER_3(xvrdpic, void, env, vsr, vsr) 487 DEF_HELPER_3(xvrdpim, void, env, vsr, vsr) 488 DEF_HELPER_3(xvrdpip, void, env, vsr, vsr) 489 DEF_HELPER_3(xvrdpiz, void, env, vsr, vsr) 490 491 DEF_HELPER_4(xvaddsp, void, env, vsr, vsr, vsr) 492 DEF_HELPER_4(xvsubsp, void, env, vsr, vsr, vsr) 493 DEF_HELPER_4(xvmulsp, void, env, vsr, vsr, vsr) 494 DEF_HELPER_4(xvdivsp, void, env, vsr, vsr, vsr) 495 DEF_HELPER_3(xvresp, void, env, vsr, vsr) 496 DEF_HELPER_3(xvsqrtsp, void, env, vsr, vsr) 497 DEF_HELPER_3(xvrsqrtesp, void, env, vsr, vsr) 498 DEF_HELPER_4(xvtdivsp, void, env, i32, vsr, vsr) 499 DEF_HELPER_3(xvtsqrtsp, void, env, i32, vsr) 500 DEF_HELPER_5(xvmaddsp, void, env, vsr, vsr, vsr, vsr) 501 DEF_HELPER_5(xvmsubsp, void, env, vsr, vsr, vsr, vsr) 502 DEF_HELPER_5(xvnmaddsp, void, env, vsr, vsr, vsr, vsr) 503 DEF_HELPER_5(xvnmsubsp, void, env, vsr, vsr, vsr, vsr) 504 DEF_HELPER_4(xvmaxsp, void, env, vsr, vsr, vsr) 505 DEF_HELPER_4(xvminsp, void, env, vsr, vsr, vsr) 506 DEF_HELPER_FLAGS_4(xvcmpeqsp, TCG_CALL_NO_RWG, i32, env, vsr, vsr, vsr) 507 DEF_HELPER_FLAGS_4(xvcmpgesp, TCG_CALL_NO_RWG, i32, env, vsr, vsr, vsr) 508 DEF_HELPER_FLAGS_4(xvcmpgtsp, TCG_CALL_NO_RWG, i32, env, vsr, vsr, vsr) 509 DEF_HELPER_FLAGS_4(xvcmpnesp, TCG_CALL_NO_RWG, i32, env, vsr, vsr, vsr) 510 DEF_HELPER_3(xvcvspdp, void, env, vsr, vsr) 511 DEF_HELPER_3(xvcvsphp, void, env, vsr, vsr) 512 DEF_HELPER_3(xvcvhpsp, void, env, vsr, vsr) 513 DEF_HELPER_3(XVCVSPBF16, void, env, vsr, vsr) 514 DEF_HELPER_3(xvcvspsxds, void, env, vsr, vsr) 515 DEF_HELPER_3(xvcvspsxws, void, env, vsr, vsr) 516 DEF_HELPER_3(xvcvspuxds, void, env, vsr, vsr) 517 DEF_HELPER_3(xvcvspuxws, void, env, vsr, vsr) 518 DEF_HELPER_3(xvcvsxdsp, void, env, vsr, vsr) 519 DEF_HELPER_3(xvcvuxdsp, void, env, vsr, vsr) 520 DEF_HELPER_3(xvcvsxwsp, void, env, vsr, vsr) 521 DEF_HELPER_3(xvcvuxwsp, void, env, vsr, vsr) 522 DEF_HELPER_FLAGS_4(XVTSTDCSP, TCG_CALL_NO_RWG, void, vsr, vsr, i64, i32) 523 DEF_HELPER_FLAGS_4(XVTSTDCDP, TCG_CALL_NO_RWG, void, vsr, vsr, i64, i32) 524 DEF_HELPER_3(xvrspi, void, env, vsr, vsr) 525 DEF_HELPER_3(xvrspic, void, env, vsr, vsr) 526 DEF_HELPER_3(xvrspim, void, env, vsr, vsr) 527 DEF_HELPER_3(xvrspip, void, env, vsr, vsr) 528 DEF_HELPER_3(xvrspiz, void, env, vsr, vsr) 529 DEF_HELPER_FLAGS_2(XXGENPCVBM_be_exp, TCG_CALL_NO_RWG, void, vsr, avr) 530 DEF_HELPER_FLAGS_2(XXGENPCVBM_be_comp, TCG_CALL_NO_RWG, void, vsr, avr) 531 DEF_HELPER_FLAGS_2(XXGENPCVBM_le_exp, TCG_CALL_NO_RWG, void, vsr, avr) 532 DEF_HELPER_FLAGS_2(XXGENPCVBM_le_comp, TCG_CALL_NO_RWG, void, vsr, avr) 533 DEF_HELPER_FLAGS_2(XXGENPCVHM_be_exp, TCG_CALL_NO_RWG, void, vsr, avr) 534 DEF_HELPER_FLAGS_2(XXGENPCVHM_be_comp, TCG_CALL_NO_RWG, void, vsr, avr) 535 DEF_HELPER_FLAGS_2(XXGENPCVHM_le_exp, TCG_CALL_NO_RWG, void, vsr, avr) 536 DEF_HELPER_FLAGS_2(XXGENPCVHM_le_comp, TCG_CALL_NO_RWG, void, vsr, avr) 537 DEF_HELPER_FLAGS_2(XXGENPCVWM_be_exp, TCG_CALL_NO_RWG, void, vsr, avr) 538 DEF_HELPER_FLAGS_2(XXGENPCVWM_be_comp, TCG_CALL_NO_RWG, void, vsr, avr) 539 DEF_HELPER_FLAGS_2(XXGENPCVWM_le_exp, TCG_CALL_NO_RWG, void, vsr, avr) 540 DEF_HELPER_FLAGS_2(XXGENPCVWM_le_comp, TCG_CALL_NO_RWG, void, vsr, avr) 541 DEF_HELPER_FLAGS_2(XXGENPCVDM_be_exp, TCG_CALL_NO_RWG, void, vsr, avr) 542 DEF_HELPER_FLAGS_2(XXGENPCVDM_be_comp, TCG_CALL_NO_RWG, void, vsr, avr) 543 DEF_HELPER_FLAGS_2(XXGENPCVDM_le_exp, TCG_CALL_NO_RWG, void, vsr, avr) 544 DEF_HELPER_FLAGS_2(XXGENPCVDM_le_comp, TCG_CALL_NO_RWG, void, vsr, avr) 545 DEF_HELPER_FLAGS_3(XXEXTRACTUW, TCG_CALL_NO_RWG, void, vsr, vsr, i32) 546 DEF_HELPER_FLAGS_5(XXPERMX, TCG_CALL_NO_RWG, void, vsr, vsr, vsr, vsr, tl) 547 DEF_HELPER_FLAGS_3(XXINSERTW, TCG_CALL_NO_RWG, void, vsr, vsr, i32) 548 DEF_HELPER_FLAGS_2(XVXSIGSP, TCG_CALL_NO_RWG, void, vsr, vsr) 549 DEF_HELPER_FLAGS_5(XXEVAL, TCG_CALL_NO_RWG, void, vsr, vsr, vsr, vsr, i32) 550 DEF_HELPER_FLAGS_5(XXBLENDVB, TCG_CALL_NO_RWG, void, vsr, vsr, vsr, vsr, i32) 551 DEF_HELPER_FLAGS_5(XXBLENDVH, TCG_CALL_NO_RWG, void, vsr, vsr, vsr, vsr, i32) 552 DEF_HELPER_FLAGS_5(XXBLENDVW, TCG_CALL_NO_RWG, void, vsr, vsr, vsr, vsr, i32) 553 DEF_HELPER_FLAGS_5(XXBLENDVD, TCG_CALL_NO_RWG, void, vsr, vsr, vsr, vsr, i32) 554 DEF_HELPER_5(XVI4GER8, void, env, vsr, vsr, acc, i32) 555 DEF_HELPER_5(XVI4GER8PP, void, env, vsr, vsr, acc, i32) 556 DEF_HELPER_5(XVI8GER4, void, env, vsr, vsr, acc, i32) 557 DEF_HELPER_5(XVI8GER4PP, void, env, vsr, vsr, acc, i32) 558 DEF_HELPER_5(XVI8GER4SPP, void, env, vsr, vsr, acc, i32) 559 DEF_HELPER_5(XVI16GER2, void, env, vsr, vsr, acc, i32) 560 DEF_HELPER_5(XVI16GER2S, void, env, vsr, vsr, acc, i32) 561 DEF_HELPER_5(XVI16GER2PP, void, env, vsr, vsr, acc, i32) 562 DEF_HELPER_5(XVI16GER2SPP, void, env, vsr, vsr, acc, i32) 563 DEF_HELPER_5(XVF16GER2, void, env, vsr, vsr, acc, i32) 564 DEF_HELPER_5(XVF16GER2PP, void, env, vsr, vsr, acc, i32) 565 DEF_HELPER_5(XVF16GER2PN, void, env, vsr, vsr, acc, i32) 566 DEF_HELPER_5(XVF16GER2NP, void, env, vsr, vsr, acc, i32) 567 DEF_HELPER_5(XVF16GER2NN, void, env, vsr, vsr, acc, i32) 568 DEF_HELPER_5(XVBF16GER2, void, env, vsr, vsr, acc, i32) 569 DEF_HELPER_5(XVBF16GER2PP, void, env, vsr, vsr, acc, i32) 570 DEF_HELPER_5(XVBF16GER2PN, void, env, vsr, vsr, acc, i32) 571 DEF_HELPER_5(XVBF16GER2NP, void, env, vsr, vsr, acc, i32) 572 DEF_HELPER_5(XVBF16GER2NN, void, env, vsr, vsr, acc, i32) 573 DEF_HELPER_5(XVF32GER, void, env, vsr, vsr, acc, i32) 574 DEF_HELPER_5(XVF32GERPP, void, env, vsr, vsr, acc, i32) 575 DEF_HELPER_5(XVF32GERPN, void, env, vsr, vsr, acc, i32) 576 DEF_HELPER_5(XVF32GERNP, void, env, vsr, vsr, acc, i32) 577 DEF_HELPER_5(XVF32GERNN, void, env, vsr, vsr, acc, i32) 578 DEF_HELPER_5(XVF64GER, void, env, vsr, vsr, acc, i32) 579 DEF_HELPER_5(XVF64GERPP, void, env, vsr, vsr, acc, i32) 580 DEF_HELPER_5(XVF64GERPN, void, env, vsr, vsr, acc, i32) 581 DEF_HELPER_5(XVF64GERNP, void, env, vsr, vsr, acc, i32) 582 DEF_HELPER_5(XVF64GERNN, void, env, vsr, vsr, acc, i32) 583 584 DEF_HELPER_2(efscfsi, i32, env, i32) 585 DEF_HELPER_2(efscfui, i32, env, i32) 586 DEF_HELPER_2(efscfuf, i32, env, i32) 587 DEF_HELPER_2(efscfsf, i32, env, i32) 588 DEF_HELPER_2(efsctsi, i32, env, i32) 589 DEF_HELPER_2(efsctui, i32, env, i32) 590 DEF_HELPER_2(efsctsiz, i32, env, i32) 591 DEF_HELPER_2(efsctuiz, i32, env, i32) 592 DEF_HELPER_2(efsctsf, i32, env, i32) 593 DEF_HELPER_2(efsctuf, i32, env, i32) 594 DEF_HELPER_2(evfscfsi, i64, env, i64) 595 DEF_HELPER_2(evfscfui, i64, env, i64) 596 DEF_HELPER_2(evfscfuf, i64, env, i64) 597 DEF_HELPER_2(evfscfsf, i64, env, i64) 598 DEF_HELPER_2(evfsctsi, i64, env, i64) 599 DEF_HELPER_2(evfsctui, i64, env, i64) 600 DEF_HELPER_2(evfsctsiz, i64, env, i64) 601 DEF_HELPER_2(evfsctuiz, i64, env, i64) 602 DEF_HELPER_2(evfsctsf, i64, env, i64) 603 DEF_HELPER_2(evfsctuf, i64, env, i64) 604 DEF_HELPER_3(efsadd, i32, env, i32, i32) 605 DEF_HELPER_3(efssub, i32, env, i32, i32) 606 DEF_HELPER_3(efsmul, i32, env, i32, i32) 607 DEF_HELPER_3(efsdiv, i32, env, i32, i32) 608 DEF_HELPER_3(evfsadd, i64, env, i64, i64) 609 DEF_HELPER_3(evfssub, i64, env, i64, i64) 610 DEF_HELPER_3(evfsmul, i64, env, i64, i64) 611 DEF_HELPER_3(evfsdiv, i64, env, i64, i64) 612 DEF_HELPER_3(efststlt, i32, env, i32, i32) 613 DEF_HELPER_3(efststgt, i32, env, i32, i32) 614 DEF_HELPER_3(efststeq, i32, env, i32, i32) 615 DEF_HELPER_3(efscmplt, i32, env, i32, i32) 616 DEF_HELPER_3(efscmpgt, i32, env, i32, i32) 617 DEF_HELPER_3(efscmpeq, i32, env, i32, i32) 618 DEF_HELPER_3(evfststlt, i32, env, i64, i64) 619 DEF_HELPER_3(evfststgt, i32, env, i64, i64) 620 DEF_HELPER_3(evfststeq, i32, env, i64, i64) 621 DEF_HELPER_3(evfscmplt, i32, env, i64, i64) 622 DEF_HELPER_3(evfscmpgt, i32, env, i64, i64) 623 DEF_HELPER_3(evfscmpeq, i32, env, i64, i64) 624 DEF_HELPER_2(efdcfsi, i64, env, i32) 625 DEF_HELPER_2(efdcfsid, i64, env, i64) 626 DEF_HELPER_2(efdcfui, i64, env, i32) 627 DEF_HELPER_2(efdcfuid, i64, env, i64) 628 DEF_HELPER_2(efdctsi, i32, env, i64) 629 DEF_HELPER_2(efdctui, i32, env, i64) 630 DEF_HELPER_2(efdctsiz, i32, env, i64) 631 DEF_HELPER_2(efdctsidz, i64, env, i64) 632 DEF_HELPER_2(efdctuiz, i32, env, i64) 633 DEF_HELPER_2(efdctuidz, i64, env, i64) 634 DEF_HELPER_2(efdcfsf, i64, env, i32) 635 DEF_HELPER_2(efdcfuf, i64, env, i32) 636 DEF_HELPER_2(efdctsf, i32, env, i64) 637 DEF_HELPER_2(efdctuf, i32, env, i64) 638 DEF_HELPER_2(efscfd, i32, env, i64) 639 DEF_HELPER_2(efdcfs, i64, env, i32) 640 DEF_HELPER_3(efdadd, i64, env, i64, i64) 641 DEF_HELPER_3(efdsub, i64, env, i64, i64) 642 DEF_HELPER_3(efdmul, i64, env, i64, i64) 643 DEF_HELPER_3(efddiv, i64, env, i64, i64) 644 DEF_HELPER_3(efdtstlt, i32, env, i64, i64) 645 DEF_HELPER_3(efdtstgt, i32, env, i64, i64) 646 DEF_HELPER_3(efdtsteq, i32, env, i64, i64) 647 DEF_HELPER_3(efdcmplt, i32, env, i64, i64) 648 DEF_HELPER_3(efdcmpgt, i32, env, i64, i64) 649 DEF_HELPER_3(efdcmpeq, i32, env, i64, i64) 650 651 #if !defined(CONFIG_USER_ONLY) 652 DEF_HELPER_2(4xx_tlbre_hi, tl, env, tl) 653 DEF_HELPER_2(4xx_tlbre_lo, tl, env, tl) 654 DEF_HELPER_3(4xx_tlbwe_hi, void, env, tl, tl) 655 DEF_HELPER_3(4xx_tlbwe_lo, void, env, tl, tl) 656 DEF_HELPER_2(4xx_tlbsx, tl, env, tl) 657 DEF_HELPER_3(440_tlbre, tl, env, i32, tl) 658 DEF_HELPER_4(440_tlbwe, void, env, i32, tl, tl) 659 DEF_HELPER_2(440_tlbsx, tl, env, tl) 660 DEF_HELPER_1(booke206_tlbre, void, env) 661 DEF_HELPER_1(booke206_tlbwe, void, env) 662 DEF_HELPER_2(booke206_tlbsx, void, env, tl) 663 DEF_HELPER_2(booke206_tlbivax, void, env, tl) 664 DEF_HELPER_2(booke206_tlbilx0, void, env, tl) 665 DEF_HELPER_2(booke206_tlbilx1, void, env, tl) 666 DEF_HELPER_2(booke206_tlbilx3, void, env, tl) 667 DEF_HELPER_2(booke206_tlbflush, void, env, tl) 668 DEF_HELPER_3(booke_setpid, void, env, i32, tl) 669 DEF_HELPER_2(booke_set_eplc, void, env, tl) 670 DEF_HELPER_2(booke_set_epsc, void, env, tl) 671 DEF_HELPER_2(6xx_tlbd, void, env, tl) 672 DEF_HELPER_2(6xx_tlbi, void, env, tl) 673 DEF_HELPER_FLAGS_1(tlbia, TCG_CALL_NO_RWG, void, env) 674 DEF_HELPER_FLAGS_2(tlbie, TCG_CALL_NO_RWG, void, env, tl) 675 DEF_HELPER_FLAGS_2(tlbiva, TCG_CALL_NO_RWG, void, env, tl) 676 #if defined(TARGET_PPC64) 677 DEF_HELPER_FLAGS_4(tlbie_isa300, TCG_CALL_NO_WG, void, \ 678 env, tl, tl, i32) 679 DEF_HELPER_FLAGS_3(SLBMTE, TCG_CALL_NO_RWG, void, env, tl, tl) 680 DEF_HELPER_2(SLBMFEE, tl, env, tl) 681 DEF_HELPER_2(SLBMFEV, tl, env, tl) 682 DEF_HELPER_2(SLBFEE, tl, env, tl) 683 DEF_HELPER_FLAGS_2(SLBIA, TCG_CALL_NO_RWG, void, env, i32) 684 DEF_HELPER_FLAGS_3(SLBIAG, TCG_CALL_NO_RWG, void, env, tl, i32) 685 DEF_HELPER_FLAGS_2(SLBIE, TCG_CALL_NO_RWG, void, env, tl) 686 DEF_HELPER_FLAGS_2(SLBIEG, TCG_CALL_NO_RWG, void, env, tl) 687 #endif 688 DEF_HELPER_FLAGS_2(load_sr, TCG_CALL_NO_RWG, tl, env, tl) 689 DEF_HELPER_FLAGS_3(store_sr, TCG_CALL_NO_RWG, void, env, tl, tl) 690 691 DEF_HELPER_1(msgsnd, void, tl) 692 DEF_HELPER_2(msgclr, void, env, tl) 693 DEF_HELPER_1(book3s_msgsnd, void, tl) 694 DEF_HELPER_2(book3s_msgclr, void, env, tl) 695 #endif 696 697 DEF_HELPER_4(dlmzb, tl, env, tl, tl, i32) 698 #if !defined(CONFIG_USER_ONLY) 699 DEF_HELPER_2(rac, tl, env, tl) 700 701 DEF_HELPER_2(load_dcr, tl, env, tl) 702 DEF_HELPER_3(store_dcr, void, env, tl, tl) 703 #endif 704 705 DEF_HELPER_2(load_dump_spr, void, env, i32) 706 DEF_HELPER_2(store_dump_spr, void, env, i32) 707 DEF_HELPER_4(fscr_facility_check, void, env, i32, i32, i32) 708 DEF_HELPER_4(msr_facility_check, void, env, i32, i32, i32) 709 DEF_HELPER_FLAGS_1(load_tbl, TCG_CALL_NO_RWG, tl, env) 710 DEF_HELPER_FLAGS_1(load_tbu, TCG_CALL_NO_RWG, tl, env) 711 DEF_HELPER_FLAGS_1(load_atbl, TCG_CALL_NO_RWG, tl, env) 712 DEF_HELPER_FLAGS_1(load_atbu, TCG_CALL_NO_RWG, tl, env) 713 DEF_HELPER_FLAGS_1(load_vtb, TCG_CALL_NO_RWG, tl, env) 714 #if !defined(CONFIG_USER_ONLY) 715 #if defined(TARGET_PPC64) 716 DEF_HELPER_FLAGS_1(load_purr, TCG_CALL_NO_RWG, tl, env) 717 DEF_HELPER_FLAGS_2(store_purr, TCG_CALL_NO_RWG, void, env, tl) 718 DEF_HELPER_2(store_ptcr, void, env, tl) 719 DEF_HELPER_FLAGS_1(load_dpdes, TCG_CALL_NO_RWG, tl, env) 720 DEF_HELPER_FLAGS_2(store_dpdes, TCG_CALL_NO_RWG, void, env, tl) 721 DEF_HELPER_2(book3s_msgsndp, void, env, tl) 722 DEF_HELPER_2(book3s_msgclrp, void, env, tl) 723 #endif 724 DEF_HELPER_2(store_sdr1, void, env, tl) 725 DEF_HELPER_2(store_pidr, void, env, tl) 726 DEF_HELPER_2(store_lpidr, void, env, tl) 727 DEF_HELPER_FLAGS_2(store_tbl, TCG_CALL_NO_RWG, void, env, tl) 728 DEF_HELPER_FLAGS_2(store_tbu, TCG_CALL_NO_RWG, void, env, tl) 729 DEF_HELPER_FLAGS_2(store_atbl, TCG_CALL_NO_RWG, void, env, tl) 730 DEF_HELPER_FLAGS_2(store_atbu, TCG_CALL_NO_RWG, void, env, tl) 731 DEF_HELPER_FLAGS_1(load_decr, TCG_CALL_NO_RWG, tl, env) 732 DEF_HELPER_FLAGS_2(store_decr, TCG_CALL_NO_RWG, void, env, tl) 733 DEF_HELPER_FLAGS_1(load_hdecr, TCG_CALL_NO_RWG, tl, env) 734 DEF_HELPER_FLAGS_2(store_hdecr, TCG_CALL_NO_RWG, void, env, tl) 735 DEF_HELPER_FLAGS_2(store_vtb, TCG_CALL_NO_RWG, void, env, tl) 736 DEF_HELPER_FLAGS_2(store_tbu40, TCG_CALL_NO_RWG, void, env, tl) 737 DEF_HELPER_FLAGS_1(load_40x_pit, TCG_CALL_NO_RWG, tl, env) 738 DEF_HELPER_FLAGS_2(store_40x_pit, TCG_CALL_NO_RWG, void, env, tl) 739 DEF_HELPER_FLAGS_2(store_40x_tcr, TCG_CALL_NO_RWG, void, env, tl) 740 DEF_HELPER_FLAGS_2(store_40x_tsr, TCG_CALL_NO_RWG, void, env, tl) 741 DEF_HELPER_2(store_40x_pid, void, env, tl) 742 DEF_HELPER_2(store_40x_dbcr0, void, env, tl) 743 DEF_HELPER_2(store_40x_sler, void, env, tl) 744 DEF_HELPER_FLAGS_2(store_booke_tcr, TCG_CALL_NO_RWG, void, env, tl) 745 DEF_HELPER_FLAGS_2(store_booke_tsr, TCG_CALL_NO_RWG, void, env, tl) 746 DEF_HELPER_3(store_ibatl, void, env, i32, tl) 747 DEF_HELPER_3(store_ibatu, void, env, i32, tl) 748 DEF_HELPER_3(store_dbatl, void, env, i32, tl) 749 DEF_HELPER_3(store_dbatu, void, env, i32, tl) 750 #endif 751 752 #define dh_alias_fprp ptr 753 #define dh_ctype_fprp ppc_fprp_t * 754 #define dh_typecode_fprp dh_typecode_ptr 755 756 DEF_HELPER_4(DADD, void, env, fprp, fprp, fprp) 757 DEF_HELPER_4(DADDQ, void, env, fprp, fprp, fprp) 758 DEF_HELPER_4(DSUB, void, env, fprp, fprp, fprp) 759 DEF_HELPER_4(DSUBQ, void, env, fprp, fprp, fprp) 760 DEF_HELPER_4(DMUL, void, env, fprp, fprp, fprp) 761 DEF_HELPER_4(DMULQ, void, env, fprp, fprp, fprp) 762 DEF_HELPER_4(DDIV, void, env, fprp, fprp, fprp) 763 DEF_HELPER_4(DDIVQ, void, env, fprp, fprp, fprp) 764 DEF_HELPER_3(DCMPO, i32, env, fprp, fprp) 765 DEF_HELPER_3(DCMPOQ, i32, env, fprp, fprp) 766 DEF_HELPER_3(DCMPU, i32, env, fprp, fprp) 767 DEF_HELPER_3(DCMPUQ, i32, env, fprp, fprp) 768 DEF_HELPER_3(DTSTDC, i32, env, fprp, i32) 769 DEF_HELPER_3(DTSTDCQ, i32, env, fprp, i32) 770 DEF_HELPER_3(DTSTDG, i32, env, fprp, i32) 771 DEF_HELPER_3(DTSTDGQ, i32, env, fprp, i32) 772 DEF_HELPER_3(DTSTEX, i32, env, fprp, fprp) 773 DEF_HELPER_3(DTSTEXQ, i32, env, fprp, fprp) 774 DEF_HELPER_3(DTSTSF, i32, env, fprp, fprp) 775 DEF_HELPER_3(DTSTSFQ, i32, env, fprp, fprp) 776 DEF_HELPER_3(DTSTSFI, i32, env, i32, fprp) 777 DEF_HELPER_3(DTSTSFIQ, i32, env, i32, fprp) 778 DEF_HELPER_5(DQUAI, void, env, fprp, fprp, i32, i32) 779 DEF_HELPER_5(DQUAIQ, void, env, fprp, fprp, i32, i32) 780 DEF_HELPER_5(DQUA, void, env, fprp, fprp, fprp, i32) 781 DEF_HELPER_5(DQUAQ, void, env, fprp, fprp, fprp, i32) 782 DEF_HELPER_5(DRRND, void, env, fprp, fprp, fprp, i32) 783 DEF_HELPER_5(DRRNDQ, void, env, fprp, fprp, fprp, i32) 784 DEF_HELPER_5(DRINTX, void, env, fprp, fprp, i32, i32) 785 DEF_HELPER_5(DRINTXQ, void, env, fprp, fprp, i32, i32) 786 DEF_HELPER_5(DRINTN, void, env, fprp, fprp, i32, i32) 787 DEF_HELPER_5(DRINTNQ, void, env, fprp, fprp, i32, i32) 788 DEF_HELPER_3(DCTDP, void, env, fprp, fprp) 789 DEF_HELPER_3(DCTQPQ, void, env, fprp, fprp) 790 DEF_HELPER_3(DRSP, void, env, fprp, fprp) 791 DEF_HELPER_3(DRDPQ, void, env, fprp, fprp) 792 DEF_HELPER_3(DCFFIX, void, env, fprp, fprp) 793 DEF_HELPER_3(DCFFIXQ, void, env, fprp, fprp) 794 DEF_HELPER_3(DCFFIXQQ, void, env, fprp, avr) 795 DEF_HELPER_3(DCTFIX, void, env, fprp, fprp) 796 DEF_HELPER_3(DCTFIXQ, void, env, fprp, fprp) 797 DEF_HELPER_3(DCTFIXQQ, void, env, avr, fprp) 798 DEF_HELPER_4(DDEDPD, void, env, fprp, fprp, i32) 799 DEF_HELPER_4(DDEDPDQ, void, env, fprp, fprp, i32) 800 DEF_HELPER_4(DENBCD, void, env, fprp, fprp, i32) 801 DEF_HELPER_4(DENBCDQ, void, env, fprp, fprp, i32) 802 DEF_HELPER_3(DXEX, void, env, fprp, fprp) 803 DEF_HELPER_3(DXEXQ, void, env, fprp, fprp) 804 DEF_HELPER_4(DIEX, void, env, fprp, fprp, fprp) 805 DEF_HELPER_4(DIEXQ, void, env, fprp, fprp, fprp) 806 DEF_HELPER_4(DSCRI, void, env, fprp, fprp, i32) 807 DEF_HELPER_4(DSCRIQ, void, env, fprp, fprp, i32) 808 DEF_HELPER_4(DSCLI, void, env, fprp, fprp, i32) 809 DEF_HELPER_4(DSCLIQ, void, env, fprp, fprp, i32) 810 811 DEF_HELPER_1(tbegin, void, env) 812 DEF_HELPER_FLAGS_1(fixup_thrm, TCG_CALL_NO_RWG, void, env) 813