Lines Matching full:temp
214 TCGv temp = tcg_temp_new(); in gen_offset_ld() local
215 tcg_gen_addi_tl(temp, r2, con); in gen_offset_ld()
216 tcg_gen_qemu_ld_tl(r1, temp, ctx->mem_idx, mop); in gen_offset_ld()
222 TCGv temp = tcg_temp_new(); in gen_offset_st() local
223 tcg_gen_addi_tl(temp, r2, con); in gen_offset_st()
224 tcg_gen_qemu_st_tl(r1, temp, ctx->mem_idx, mop); in gen_offset_st()
229 TCGv_i64 temp = tcg_temp_new_i64(); in gen_st_2regs_64() local
231 tcg_gen_concat_i32_i64(temp, rl, rh); in gen_st_2regs_64()
232 tcg_gen_qemu_st_i64(temp, address, ctx->mem_idx, MO_LEUQ); in gen_st_2regs_64()
238 TCGv temp = tcg_temp_new(); in gen_offset_st_2regs() local
239 tcg_gen_addi_tl(temp, base, con); in gen_offset_st_2regs()
240 gen_st_2regs_64(rh, rl, temp, ctx); in gen_offset_st_2regs()
245 TCGv_i64 temp = tcg_temp_new_i64(); in gen_ld_2regs_64() local
247 tcg_gen_qemu_ld_i64(temp, address, ctx->mem_idx, MO_LEUQ); in gen_ld_2regs_64()
249 tcg_gen_extr_i64_i32(rl, rh, temp); in gen_ld_2regs_64()
255 TCGv temp = tcg_temp_new(); in gen_offset_ld_2regs() local
256 tcg_gen_addi_tl(temp, base, con); in gen_offset_ld_2regs()
257 gen_ld_2regs_64(rh, rl, temp, ctx); in gen_offset_ld_2regs()
263 TCGv temp = tcg_temp_new(); in gen_st_preincr() local
264 tcg_gen_addi_tl(temp, r2, off); in gen_st_preincr()
265 tcg_gen_qemu_st_tl(r1, temp, ctx->mem_idx, mop); in gen_st_preincr()
266 tcg_gen_mov_tl(r2, temp); in gen_st_preincr()
272 TCGv temp = tcg_temp_new(); in gen_ld_preincr() local
273 tcg_gen_addi_tl(temp, r2, off); in gen_ld_preincr()
274 tcg_gen_qemu_ld_tl(r1, temp, ctx->mem_idx, mop); in gen_ld_preincr()
275 tcg_gen_mov_tl(r2, temp); in gen_ld_preincr()
281 TCGv temp = tcg_temp_new(); in gen_ldmst() local
285 /* temp = (M(EA, word) */ in gen_ldmst()
286 tcg_gen_qemu_ld_tl(temp, ea, ctx->mem_idx, MO_LEUL); in gen_ldmst()
287 /* temp = temp & ~E[a][63:32]) */ in gen_ldmst()
288 tcg_gen_andc_tl(temp, temp, cpu_gpr_d[ereg+1]); in gen_ldmst()
291 /* temp = temp | temp2; */ in gen_ldmst()
292 tcg_gen_or_tl(temp, temp, temp2); in gen_ldmst()
293 /* M(EA, word) = temp; */ in gen_ldmst()
294 tcg_gen_qemu_st_tl(temp, ea, ctx->mem_idx, MO_LEUL); in gen_ldmst()
302 TCGv temp = tcg_temp_new(); in gen_swap() local
304 tcg_gen_qemu_ld_tl(temp, ea, ctx->mem_idx, MO_LEUL); in gen_swap()
306 tcg_gen_mov_tl(cpu_gpr_d[reg], temp); in gen_swap()
311 TCGv temp = tcg_temp_new(); in gen_cmpswap() local
314 tcg_gen_qemu_ld_tl(temp, ea, ctx->mem_idx, MO_LEUL); in gen_cmpswap()
315 tcg_gen_movcond_tl(TCG_COND_EQ, temp2, cpu_gpr_d[reg+1], temp, in gen_cmpswap()
316 cpu_gpr_d[reg], temp); in gen_cmpswap()
318 tcg_gen_mov_tl(cpu_gpr_d[reg], temp); in gen_cmpswap()
323 TCGv temp = tcg_temp_new(); in gen_swapmsk() local
327 tcg_gen_qemu_ld_tl(temp, ea, ctx->mem_idx, MO_LEUL); in gen_swapmsk()
329 tcg_gen_andc_tl(temp3, temp, cpu_gpr_d[reg+1]); in gen_swapmsk()
332 tcg_gen_mov_tl(cpu_gpr_d[reg], temp); in gen_swapmsk()
419 TCGv temp = tcg_temp_new(); in gen_add64_d() local
433 tcg_gen_extrh_i64_i32(temp, result); in gen_add64_d()
434 tcg_gen_add_tl(cpu_PSW_AV, temp, temp); in gen_add64_d()
435 tcg_gen_xor_tl(cpu_PSW_AV, temp, cpu_PSW_AV); in gen_add64_d()
447 TCGv temp = tcg_temp_new(); in gen_addsub64_h() local
452 (*op1)(temp, r1_low, r2); in gen_addsub64_h()
454 tcg_gen_xor_tl(temp2, temp, r1_low); in gen_addsub64_h()
476 tcg_gen_mov_tl(ret_low, temp); in gen_addsub64_h()
479 tcg_gen_add_tl(temp, ret_low, ret_low); in gen_addsub64_h()
480 tcg_gen_xor_tl(temp, temp, ret_low); in gen_addsub64_h()
483 tcg_gen_or_tl(cpu_PSW_AV, cpu_PSW_AV, temp); in gen_addsub64_h()
522 TCGv temp = tcg_constant_i32(con); in gen_maddi32_d() local
523 gen_madd32_d(ret, r1, r2, temp); in gen_maddi32_d()
588 TCGv temp = tcg_constant_i32(con); in gen_maddi64_d() local
589 gen_madd64_d(ret_low, ret_high, r1, r2_low, r2_high, temp); in gen_maddi64_d()
596 TCGv temp = tcg_constant_i32(con); in gen_maddui64_d() local
597 gen_maddu64_d(ret_low, ret_high, r1, r2_low, r2_high, temp); in gen_maddui64_d()
605 TCGv temp = tcg_temp_new(); in gen_madd_h() local
622 tcg_gen_extr_i64_i32(temp, temp2, temp64); in gen_madd_h()
623 gen_addsub64_h(ret_low, ret_high, r1_low, r1_high, temp, temp2, in gen_madd_h()
632 TCGv temp = tcg_temp_new(); in gen_maddsu_h() local
649 tcg_gen_extr_i64_i32(temp, temp2, temp64); in gen_maddsu_h()
650 gen_addsub64_h(ret_low, ret_high, r1_low, r1_high, temp, temp2, in gen_maddsu_h()
694 TCGv temp = tcg_temp_new(); in gen_madds_h() local
713 tcg_gen_extr_i64_i32(temp, temp2, temp64); in gen_madds_h()
714 gen_adds(ret_low, r1_low, temp); in gen_madds_h()
715 tcg_gen_mov_tl(temp, cpu_PSW_V); in gen_madds_h()
719 tcg_gen_or_tl(cpu_PSW_V, cpu_PSW_V, temp); in gen_madds_h()
731 TCGv temp = tcg_temp_new(); in gen_maddsus_h() local
750 tcg_gen_extr_i64_i32(temp, temp2, temp64); in gen_maddsus_h()
751 gen_subs(ret_low, r1_low, temp); in gen_maddsus_h()
752 tcg_gen_mov_tl(temp, cpu_PSW_V); in gen_maddsus_h()
756 tcg_gen_or_tl(cpu_PSW_V, cpu_PSW_V, temp); in gen_maddsus_h()
874 TCGv temp = tcg_temp_new(); in gen_maddr32_h() local
878 tcg_gen_shli_tl(temp, r1, 16); in gen_maddr32_h()
879 gen_maddr64_h(ret, temp, temp2, r2, r3, n, mode); in gen_maddr32_h()
886 TCGv temp = tcg_temp_new(); in gen_maddsur32_h() local
904 tcg_gen_shli_tl(temp, r1, 16); in gen_maddsur32_h()
905 gen_helper_addsur_h(ret, tcg_env, temp64, temp, temp2); in gen_maddsur32_h()
935 TCGv temp = tcg_temp_new(); in gen_maddr32s_h() local
939 tcg_gen_shli_tl(temp, r1, 16); in gen_maddr32s_h()
940 gen_maddr64s_h(ret, temp, temp2, r2, r3, n, mode); in gen_maddr32s_h()
947 TCGv temp = tcg_temp_new(); in gen_maddsur32s_h() local
965 tcg_gen_shli_tl(temp, r1, 16); in gen_maddsur32s_h()
966 gen_helper_addsur_h_ssov(ret, tcg_env, temp64, temp, temp2); in gen_maddsur32s_h()
987 TCGv temp = tcg_temp_new(); in gen_madd32_q() local
1015 tcg_gen_setcondi_tl(TCG_COND_EQ, temp, arg2, 0x80000000); in gen_madd32_q()
1017 tcg_gen_and_tl(temp, temp, temp2); in gen_madd32_q()
1018 tcg_gen_shli_tl(temp, temp, 31); in gen_madd32_q()
1020 tcg_gen_xor_tl(cpu_PSW_V, cpu_PSW_V, temp); in gen_madd32_q()
1036 TCGv temp = tcg_temp_new(); in gen_m16add32_q() local
1039 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16add32_q()
1041 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16add32_q()
1042 tcg_gen_shli_tl(temp, temp, 1); in gen_m16add32_q()
1044 tcg_gen_setcondi_tl(TCG_COND_EQ, temp2, temp, 0x80000000); in gen_m16add32_q()
1045 tcg_gen_sub_tl(temp, temp, temp2); in gen_m16add32_q()
1047 gen_add_d(ret, arg1, temp); in gen_m16add32_q()
1053 TCGv temp = tcg_temp_new(); in gen_m16adds32_q() local
1056 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16adds32_q()
1058 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16adds32_q()
1059 tcg_gen_shli_tl(temp, temp, 1); in gen_m16adds32_q()
1061 tcg_gen_setcondi_tl(TCG_COND_EQ, temp2, temp, 0x80000000); in gen_m16adds32_q()
1062 tcg_gen_sub_tl(temp, temp, temp2); in gen_m16adds32_q()
1064 gen_adds(ret, arg1, temp); in gen_m16adds32_q()
1071 TCGv temp = tcg_temp_new(); in gen_m16add64_q() local
1078 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16add64_q()
1080 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16add64_q()
1081 tcg_gen_shli_tl(temp, temp, 1); in gen_m16add64_q()
1083 tcg_gen_setcondi_tl(TCG_COND_EQ, temp2, temp, 0x80000000); in gen_m16add64_q()
1084 tcg_gen_sub_tl(temp, temp, temp2); in gen_m16add64_q()
1086 tcg_gen_ext_i32_i64(t2, temp); in gen_m16add64_q()
1098 TCGv temp = tcg_temp_new(); in gen_m16adds64_q() local
1104 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16adds64_q()
1106 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16adds64_q()
1107 tcg_gen_shli_tl(temp, temp, 1); in gen_m16adds64_q()
1109 tcg_gen_setcondi_tl(TCG_COND_EQ, temp2, temp, 0x80000000); in gen_m16adds64_q()
1110 tcg_gen_sub_tl(temp, temp, temp2); in gen_m16adds64_q()
1112 tcg_gen_ext_i32_i64(t2, temp); in gen_m16adds64_q()
1128 TCGv temp, temp2; in gen_madd64_q() local
1148 temp = tcg_temp_new(); in gen_madd64_q()
1150 tcg_gen_setcondi_tl(TCG_COND_EQ, temp, arg2, 0x80000000); in gen_madd64_q()
1152 tcg_gen_and_tl(temp, temp, temp2); in gen_madd64_q()
1153 tcg_gen_shli_tl(temp, temp, 31); in gen_madd64_q()
1155 tcg_gen_xor_tl(cpu_PSW_V, cpu_PSW_V, temp); in gen_madd64_q()
1233 TCGv temp = tcg_constant_i32(con); in gen_msubi32_d() local
1234 gen_msub32_d(ret, r1, r2, temp); in gen_msubi32_d()
1269 TCGv temp = tcg_constant_i32(con); in gen_msubi64_d() local
1270 gen_msub64_d(ret_low, ret_high, r1, r2_low, r2_high, temp); in gen_msubi64_d()
1305 TCGv temp = tcg_constant_i32(con); in gen_msubui64_d() local
1306 gen_msubu64_d(ret_low, ret_high, r1, r2_low, r2_high, temp); in gen_msubui64_d()
1311 TCGv temp = tcg_constant_i32(r2); in gen_addi_d() local
1312 gen_add_d(ret, r1, temp); in gen_addi_d()
1341 TCGv temp = tcg_constant_i32(con); in gen_addi_CC() local
1342 gen_add_CC(ret, r1, temp); in gen_addi_CC()
1373 TCGv temp = tcg_constant_i32(con); in gen_addci_CC() local
1374 gen_addc_CC(ret, r1, temp); in gen_addci_CC()
1380 TCGv temp = tcg_temp_new(); in gen_cond_add() local
1392 tcg_gen_xor_tl(temp, result, r1); in gen_cond_add()
1394 tcg_gen_andc_tl(temp, temp, temp2); in gen_cond_add()
1395 tcg_gen_movcond_tl(cond, cpu_PSW_V, r4, t0, temp, cpu_PSW_V); in gen_cond_add()
1397 tcg_gen_and_tl(temp, temp, mask); in gen_cond_add()
1398 tcg_gen_or_tl(cpu_PSW_SV, temp, cpu_PSW_SV); in gen_cond_add()
1400 tcg_gen_add_tl(temp, result, result); in gen_cond_add()
1401 tcg_gen_xor_tl(temp, temp, result); in gen_cond_add()
1402 tcg_gen_movcond_tl(cond, cpu_PSW_AV, r4, t0, temp, cpu_PSW_AV); in gen_cond_add()
1404 tcg_gen_and_tl(temp, temp, mask); in gen_cond_add()
1405 tcg_gen_or_tl(cpu_PSW_SAV, temp, cpu_PSW_SAV); in gen_cond_add()
1413 TCGv temp = tcg_constant_i32(r2); in gen_condi_add() local
1414 gen_cond_add(cond, r1, temp, r3, r4); in gen_condi_add()
1419 TCGv temp = tcg_temp_new_i32(); in gen_sub_d() local
1425 tcg_gen_xor_tl(temp, r1, r2); in gen_sub_d()
1426 tcg_gen_and_tl(cpu_PSW_V, cpu_PSW_V, temp); in gen_sub_d()
1441 TCGv temp = tcg_temp_new(); in gen_sub64_d() local
1455 tcg_gen_extrh_i64_i32(temp, result); in gen_sub64_d()
1456 tcg_gen_add_tl(cpu_PSW_AV, temp, temp); in gen_sub64_d()
1457 tcg_gen_xor_tl(cpu_PSW_AV, temp, cpu_PSW_AV); in gen_sub64_d()
1467 TCGv temp = tcg_temp_new(); in gen_sub_CC() local
1474 tcg_gen_xor_tl(temp, r1, r2); in gen_sub_CC()
1475 tcg_gen_and_tl(cpu_PSW_V, cpu_PSW_V, temp); in gen_sub_CC()
1489 TCGv temp = tcg_temp_new(); in gen_subc_CC() local
1490 tcg_gen_not_tl(temp, r2); in gen_subc_CC()
1491 gen_addc_CC(ret, r1, temp); in gen_subc_CC()
1497 TCGv temp = tcg_temp_new(); in gen_cond_sub() local
1509 tcg_gen_xor_tl(temp, result, r1); in gen_cond_sub()
1511 tcg_gen_and_tl(temp, temp, temp2); in gen_cond_sub()
1512 tcg_gen_movcond_tl(cond, cpu_PSW_V, r4, t0, temp, cpu_PSW_V); in gen_cond_sub()
1514 tcg_gen_and_tl(temp, temp, mask); in gen_cond_sub()
1515 tcg_gen_or_tl(cpu_PSW_SV, temp, cpu_PSW_SV); in gen_cond_sub()
1517 tcg_gen_add_tl(temp, result, result); in gen_cond_sub()
1518 tcg_gen_xor_tl(temp, temp, result); in gen_cond_sub()
1519 tcg_gen_movcond_tl(cond, cpu_PSW_AV, r4, t0, temp, cpu_PSW_AV); in gen_cond_sub()
1521 tcg_gen_and_tl(temp, temp, mask); in gen_cond_sub()
1522 tcg_gen_or_tl(cpu_PSW_SAV, temp, cpu_PSW_SAV); in gen_cond_sub()
1532 TCGv temp = tcg_temp_new(); in gen_msub_h() local
1549 tcg_gen_extr_i64_i32(temp, temp2, temp64); in gen_msub_h()
1550 gen_addsub64_h(ret_low, ret_high, r1_low, r1_high, temp, temp2, in gen_msub_h()
1559 TCGv temp = tcg_temp_new(); in gen_msubs_h() local
1578 tcg_gen_extr_i64_i32(temp, temp2, temp64); in gen_msubs_h()
1579 gen_subs(ret_low, r1_low, temp); in gen_msubs_h()
1580 tcg_gen_mov_tl(temp, cpu_PSW_V); in gen_msubs_h()
1584 tcg_gen_or_tl(cpu_PSW_V, cpu_PSW_V, temp); in gen_msubs_h()
1669 TCGv temp = tcg_temp_new(); in gen_msubr32_h() local
1673 tcg_gen_shli_tl(temp, r1, 16); in gen_msubr32_h()
1674 gen_msubr64_h(ret, temp, temp2, r2, r3, n, mode); in gen_msubr32_h()
1703 TCGv temp = tcg_temp_new(); in gen_msubr32s_h() local
1707 tcg_gen_shli_tl(temp, r1, 16); in gen_msubr32s_h()
1708 gen_msubr64s_h(ret, temp, temp2, r2, r3, n, mode); in gen_msubr32s_h()
1714 TCGv temp = tcg_constant_i32(n); in gen_msubr_q() local
1715 gen_helper_msubr_q(ret, tcg_env, r1, r2, r3, temp); in gen_msubr_q()
1721 TCGv temp = tcg_constant_i32(n); in gen_msubrs_q() local
1722 gen_helper_msubr_q_ssov(ret, tcg_env, r1, r2, r3, temp); in gen_msubrs_q()
1769 TCGv temp = tcg_temp_new(); in gen_m16sub32_q() local
1772 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16sub32_q()
1774 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16sub32_q()
1775 tcg_gen_shli_tl(temp, temp, 1); in gen_m16sub32_q()
1777 tcg_gen_setcondi_tl(TCG_COND_EQ, temp2, temp, 0x80000000); in gen_m16sub32_q()
1778 tcg_gen_sub_tl(temp, temp, temp2); in gen_m16sub32_q()
1780 gen_sub_d(ret, arg1, temp); in gen_m16sub32_q()
1786 TCGv temp = tcg_temp_new(); in gen_m16subs32_q() local
1789 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16subs32_q()
1791 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16subs32_q()
1792 tcg_gen_shli_tl(temp, temp, 1); in gen_m16subs32_q()
1794 tcg_gen_setcondi_tl(TCG_COND_EQ, temp2, temp, 0x80000000); in gen_m16subs32_q()
1795 tcg_gen_sub_tl(temp, temp, temp2); in gen_m16subs32_q()
1797 gen_subs(ret, arg1, temp); in gen_m16subs32_q()
1804 TCGv temp = tcg_temp_new(); in gen_m16sub64_q() local
1811 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16sub64_q()
1813 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16sub64_q()
1814 tcg_gen_shli_tl(temp, temp, 1); in gen_m16sub64_q()
1816 tcg_gen_setcondi_tl(TCG_COND_EQ, temp2, temp, 0x80000000); in gen_m16sub64_q()
1817 tcg_gen_sub_tl(temp, temp, temp2); in gen_m16sub64_q()
1819 tcg_gen_ext_i32_i64(t2, temp); in gen_m16sub64_q()
1831 TCGv temp = tcg_temp_new(); in gen_m16subs64_q() local
1837 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16subs64_q()
1839 tcg_gen_mul_tl(temp, arg2, arg3); in gen_m16subs64_q()
1840 tcg_gen_shli_tl(temp, temp, 1); in gen_m16subs64_q()
1842 tcg_gen_setcondi_tl(TCG_COND_EQ, temp2, temp, 0x80000000); in gen_m16subs64_q()
1843 tcg_gen_sub_tl(temp, temp, temp2); in gen_m16subs64_q()
1845 tcg_gen_ext_i32_i64(t2, temp); in gen_m16subs64_q()
1861 TCGv temp, temp2; in gen_msub64_q() local
1881 temp = tcg_temp_new(); in gen_msub64_q()
1883 tcg_gen_setcondi_tl(TCG_COND_EQ, temp, arg2, 0x80000000); in gen_msub64_q()
1885 tcg_gen_and_tl(temp, temp, temp2); in gen_msub64_q()
1886 tcg_gen_shli_tl(temp, temp, 31); in gen_msub64_q()
1888 tcg_gen_xor_tl(cpu_PSW_V, cpu_PSW_V, temp); in gen_msub64_q()
1941 TCGv temp = tcg_temp_new(); in gen_msubad_h() local
1958 tcg_gen_extr_i64_i32(temp, temp2, temp64); in gen_msubad_h()
1959 gen_addsub64_h(ret_low, ret_high, r1_low, r1_high, temp, temp2, in gen_msubad_h()
2000 TCGv temp = tcg_temp_new(); in gen_msubadr32_h() local
2018 tcg_gen_shli_tl(temp, r1, 16); in gen_msubadr32_h()
2019 gen_helper_subadr_h(ret, tcg_env, temp64, temp, temp2); in gen_msubadr32_h()
2027 TCGv temp = tcg_temp_new(); in gen_msubads_h() local
2046 tcg_gen_extr_i64_i32(temp, temp2, temp64); in gen_msubads_h()
2047 gen_adds(ret_low, r1_low, temp); in gen_msubads_h()
2048 tcg_gen_mov_tl(temp, cpu_PSW_V); in gen_msubads_h()
2052 tcg_gen_or_tl(cpu_PSW_V, cpu_PSW_V, temp); in gen_msubads_h()
2093 TCGv temp = tcg_temp_new(); in gen_msubadr32s_h() local
2111 tcg_gen_shli_tl(temp, r1, 16); in gen_msubadr32s_h()
2112 gen_helper_subadr_h_ssov(ret, tcg_env, temp64, temp, temp2); in gen_msubadr32s_h()
2132 TCGv temp = tcg_temp_new_i32(); in gen_absdif() local
2136 tcg_gen_sub_tl(temp, r2, r1); in gen_absdif()
2137 tcg_gen_movcond_tl(TCG_COND_GT, result, r1, r2, result, temp); in gen_absdif()
2141 tcg_gen_xor_tl(temp, result, r2); in gen_absdif()
2142 tcg_gen_movcond_tl(TCG_COND_GT, cpu_PSW_V, r1, r2, cpu_PSW_V, temp); in gen_absdif()
2143 tcg_gen_xor_tl(temp, r1, r2); in gen_absdif()
2144 tcg_gen_and_tl(cpu_PSW_V, cpu_PSW_V, temp); in gen_absdif()
2158 TCGv temp = tcg_constant_i32(con); in gen_absdifi() local
2159 gen_absdif(ret, r1, temp); in gen_absdifi()
2164 TCGv temp = tcg_constant_i32(con); in gen_absdifsi() local
2165 gen_helper_absdif_ssov(ret, tcg_env, r1, temp); in gen_absdifsi()
2190 TCGv temp = tcg_constant_i32(con); in gen_muli_i32s() local
2191 gen_mul_i32s(ret, r1, temp); in gen_muli_i32s()
2211 TCGv temp = tcg_constant_i32(con); in gen_muli_i64s() local
2212 gen_mul_i64s(ret_low, ret_high, r1, temp); in gen_muli_i64s()
2232 TCGv temp = tcg_constant_i32(con); in gen_muli_i64u() local
2233 gen_mul_i64u(ret_low, ret_high, r1, temp); in gen_muli_i64u()
2238 TCGv temp = tcg_constant_i32(con); in gen_mulsi_i32() local
2239 gen_helper_mul_ssov(ret, tcg_env, r1, temp); in gen_mulsi_i32()
2244 TCGv temp = tcg_constant_i32(con); in gen_mulsui_i32() local
2245 gen_helper_mul_suov(ret, tcg_env, r1, temp); in gen_mulsui_i32()
2251 TCGv temp = tcg_constant_i32(con); in gen_maddsi_32() local
2252 gen_helper_madd32_ssov(ret, tcg_env, r1, r2, temp); in gen_maddsi_32()
2257 TCGv temp = tcg_constant_i32(con); in gen_maddsui_32() local
2258 gen_helper_madd32_suov(ret, tcg_env, r1, r2, temp); in gen_maddsui_32()
2321 TCGv temp = tcg_temp_new(); in gen_mul_q_16() local
2328 tcg_gen_setcondi_tl(TCG_COND_EQ, temp, ret, 0x80000000); in gen_mul_q_16()
2329 tcg_gen_sub_tl(ret, ret, temp); in gen_mul_q_16()
2342 TCGv temp = tcg_temp_new(); in gen_mulr_q() local
2351 tcg_gen_setcondi_tl(TCG_COND_EQ, temp, ret, 0x80008000); in gen_mulr_q()
2352 tcg_gen_muli_tl(temp, temp, 0x8001); in gen_mulr_q()
2353 tcg_gen_sub_tl(ret, ret, temp); in gen_mulr_q()
2380 TCGv temp = tcg_constant_i32(con); in gen_maddsi_64() local
2381 gen_madds_64(ret_low, ret_high, r1, r2_low, r2_high, temp); in gen_maddsi_64()
2398 TCGv temp = tcg_constant_i32(con); in gen_maddsui_64() local
2399 gen_maddsu_64(ret_low, ret_high, r1, r2_low, r2_high, temp); in gen_maddsui_64()
2404 TCGv temp = tcg_constant_i32(con); in gen_msubsi_32() local
2405 gen_helper_msub32_ssov(ret, tcg_env, r1, r2, temp); in gen_msubsi_32()
2410 TCGv temp = tcg_constant_i32(con); in gen_msubsui_32() local
2411 gen_helper_msub32_suov(ret, tcg_env, r1, r2, temp); in gen_msubsui_32()
2428 TCGv temp = tcg_constant_i32(con); in gen_msubsi_64() local
2429 gen_msubs_64(ret_low, ret_high, r1, r2_low, r2_high, temp); in gen_msubsi_64()
2446 TCGv temp = tcg_constant_i32(con); in gen_msubsui_64() local
2447 gen_msubsu_64(ret_low, ret_high, r1, r2_low, r2_high, temp); in gen_msubsui_64()
2493 TCGv temp = tcg_temp_new(); in gen_shaci() local
2517 tcg_gen_setcond_tl(TCG_COND_GT, temp, r1, t_max); in gen_shaci()
2519 tcg_gen_or_tl(cpu_PSW_V, temp, temp2); in gen_shaci()
2548 TCGv temp = tcg_constant_i32(con); in gen_shasi() local
2549 gen_shas(ret, r1, temp); in gen_shasi()
2580 TCGv temp = tcg_temp_new(); in gen_sh_cond() local
2583 tcg_gen_shli_tl(temp, ret, 1); in gen_sh_cond()
2585 tcg_gen_or_tl(ret, temp, temp2); in gen_sh_cond()
2590 TCGv temp = tcg_constant_i32(con); in gen_sh_condi() local
2591 gen_sh_cond(cond, ret, r1, temp); in gen_sh_condi()
2601 TCGv temp = tcg_constant_i32(con); in gen_addsi() local
2602 gen_helper_add_ssov(ret, tcg_env, r1, temp); in gen_addsi()
2607 TCGv temp = tcg_constant_i32(con); in gen_addsui() local
2608 gen_helper_add_suov(ret, tcg_env, r1, temp); in gen_addsui()
2661 TCGv temp = tcg_temp_new(); in gen_accumulating_cond() local
2663 /* temp = (arg1 cond arg2 )*/ in gen_accumulating_cond()
2664 tcg_gen_setcond_tl(cond, temp, r1, r2); in gen_accumulating_cond()
2667 /* temp = temp insn temp2 */ in gen_accumulating_cond()
2668 (*op)(temp, temp, temp2); in gen_accumulating_cond()
2669 /* ret = {ret[31:1], temp} */ in gen_accumulating_cond()
2670 tcg_gen_deposit_tl(ret, ret, temp, 0, 1); in gen_accumulating_cond()
2677 TCGv temp = tcg_constant_i32(con); in gen_accumulating_condi() local
2678 gen_accumulating_cond(cond, ret, r1, temp, op); in gen_accumulating_condi()
2732 TCGv temp = tcg_temp_new(); in gen_insert() local
2739 tcg_gen_shl_tl(temp, r2, pos); in gen_insert()
2740 tcg_gen_and_tl(temp, temp, mask); in gen_insert()
2742 tcg_gen_or_tl(ret, temp, temp2); in gen_insert()
2747 TCGv_i64 temp = tcg_temp_new_i64(); in gen_bsplit() local
2749 gen_helper_bsplit(temp, r1); in gen_bsplit()
2750 tcg_gen_extr_i64_i32(rl, rh, temp); in gen_bsplit()
2755 TCGv_i64 temp = tcg_temp_new_i64(); in gen_unpack() local
2757 gen_helper_unpack(temp, r1); in gen_unpack()
2758 tcg_gen_extr_i64_i32(rl, rh, temp); in gen_unpack()
2789 TCGv temp = tcg_temp_new(); in gen_calc_usb_mul_h() local
2791 tcg_gen_add_tl(temp, arg_low, arg_low); in gen_calc_usb_mul_h()
2792 tcg_gen_xor_tl(temp, temp, arg_low); in gen_calc_usb_mul_h()
2795 tcg_gen_or_tl(cpu_PSW_AV, cpu_PSW_AV, temp); in gen_calc_usb_mul_h()
2803 TCGv temp = tcg_temp_new(); in gen_calc_usb_mulr_h() local
2805 tcg_gen_add_tl(temp, arg, arg); in gen_calc_usb_mulr_h()
2806 tcg_gen_xor_tl(temp, temp, arg); in gen_calc_usb_mulr_h()
2807 tcg_gen_shli_tl(cpu_PSW_AV, temp, 16); in gen_calc_usb_mulr_h()
2808 tcg_gen_or_tl(cpu_PSW_AV, cpu_PSW_AV, temp); in gen_calc_usb_mulr_h()
2860 TCGv temp = tcg_constant_i32(r2); in gen_branch_condi() local
2861 gen_branch_cond(ctx, cond, r1, temp, address); in gen_branch_condi()
2877 TCGv temp = tcg_temp_new(); in gen_fcall_save_ctx() local
2879 tcg_gen_addi_tl(temp, cpu_gpr_a[10], -4); in gen_fcall_save_ctx()
2880 tcg_gen_qemu_st_tl(cpu_gpr_a[11], temp, ctx->mem_idx, MO_LESL); in gen_fcall_save_ctx()
2882 tcg_gen_mov_tl(cpu_gpr_a[10], temp); in gen_fcall_save_ctx()
2887 TCGv temp = tcg_temp_new(); in gen_fret() local
2889 tcg_gen_andi_tl(temp, cpu_gpr_a[11], ~0x1); in gen_fret()
2892 tcg_gen_mov_tl(cpu_PC, temp); in gen_fret()
2899 TCGv temp, temp2; in gen_compute_branch() local
2936 temp = tcg_temp_new(); in gen_compute_branch()
2937 tcg_gen_andi_tl(temp, cpu_gpr_d[15], 0x1u << constant); in gen_compute_branch()
2938 gen_branch_condi(ctx, TCG_COND_EQ, temp, 0, offset); in gen_compute_branch()
2941 temp = tcg_temp_new(); in gen_compute_branch()
2942 tcg_gen_andi_tl(temp, cpu_gpr_d[15], 0x1u << constant); in gen_compute_branch()
2943 gen_branch_condi(ctx, TCG_COND_NE, temp, 0, offset); in gen_compute_branch()
3049 temp = tcg_temp_new(); in gen_compute_branch()
3051 tcg_gen_mov_tl(temp, cpu_gpr_d[r1]); in gen_compute_branch()
3054 gen_branch_condi(ctx, TCG_COND_NE, temp, constant, offset); in gen_compute_branch()
3056 tcg_gen_mov_tl(temp, cpu_gpr_d[r1]); in gen_compute_branch()
3059 gen_branch_condi(ctx, TCG_COND_NE, temp, constant, offset); in gen_compute_branch()
3066 temp = tcg_temp_new(); in gen_compute_branch()
3067 tcg_gen_andi_tl(temp, cpu_gpr_d[r1], (1 << n)); in gen_compute_branch()
3070 gen_branch_condi(ctx, TCG_COND_NE, temp, 0, offset); in gen_compute_branch()
3072 gen_branch_condi(ctx, TCG_COND_EQ, temp, 0, offset); in gen_compute_branch()
3121 temp = tcg_temp_new(); in gen_compute_branch()
3124 tcg_gen_mov_tl(temp, cpu_gpr_d[r1]); in gen_compute_branch()
3129 gen_branch_cond(ctx, TCG_COND_NE, temp, temp2, offset); in gen_compute_branch()
3131 tcg_gen_mov_tl(temp, cpu_gpr_d[r1]); in gen_compute_branch()
3136 gen_branch_cond(ctx, TCG_COND_NE, temp, temp2, offset); in gen_compute_branch()
3160 TCGv temp, temp2; in decode_src_opc() local
3187 temp = tcg_constant_tl(0); in decode_src_opc()
3189 tcg_gen_movcond_tl(TCG_COND_NE, cpu_gpr_d[r1], cpu_gpr_d[15], temp, in decode_src_opc()
3193 temp = tcg_constant_tl(0); in decode_src_opc()
3195 tcg_gen_movcond_tl(TCG_COND_EQ, cpu_gpr_d[r1], cpu_gpr_d[15], temp, in decode_src_opc()
3236 TCGv temp; in decode_srr_opc() local
3261 temp = tcg_constant_tl(0); in decode_srr_opc()
3262 tcg_gen_movcond_tl(TCG_COND_NE, cpu_gpr_d[r1], cpu_gpr_d[15], temp, in decode_srr_opc()
3266 temp = tcg_constant_tl(0); in decode_srr_opc()
3267 tcg_gen_movcond_tl(TCG_COND_EQ, cpu_gpr_d[r1], cpu_gpr_d[15], temp, in decode_srr_opc()
3553 TCGv temp; in decode_16Bit_opc() local
3620 temp = tcg_temp_new(); in decode_16Bit_opc()
3621 tcg_gen_shli_tl(temp, cpu_gpr_d[15], const16); in decode_16Bit_opc()
3622 tcg_gen_add_tl(cpu_gpr_a[r1], cpu_gpr_a[r2], temp); in decode_16Bit_opc()
3788 TCGv temp; in decode_abs_ldw() local
3794 temp = tcg_constant_i32(EA_ABS_FORMAT(address)); in decode_abs_ldw()
3798 tcg_gen_qemu_ld_tl(cpu_gpr_a[r1], temp, ctx->mem_idx, MO_LESL); in decode_abs_ldw()
3802 gen_ld_2regs_64(cpu_gpr_d[r1+1], cpu_gpr_d[r1], temp, ctx); in decode_abs_ldw()
3806 gen_ld_2regs_64(cpu_gpr_a[r1+1], cpu_gpr_a[r1], temp, ctx); in decode_abs_ldw()
3809 tcg_gen_qemu_ld_tl(cpu_gpr_d[r1], temp, ctx->mem_idx, MO_LESL); in decode_abs_ldw()
3821 TCGv temp; in decode_abs_ldb() local
3827 temp = tcg_constant_i32(EA_ABS_FORMAT(address)); in decode_abs_ldb()
3831 tcg_gen_qemu_ld_tl(cpu_gpr_d[r1], temp, ctx->mem_idx, MO_SB); in decode_abs_ldb()
3834 tcg_gen_qemu_ld_tl(cpu_gpr_d[r1], temp, ctx->mem_idx, MO_UB); in decode_abs_ldb()
3837 tcg_gen_qemu_ld_tl(cpu_gpr_d[r1], temp, ctx->mem_idx, MO_LESW); in decode_abs_ldb()
3840 tcg_gen_qemu_ld_tl(cpu_gpr_d[r1], temp, ctx->mem_idx, MO_LEUW); in decode_abs_ldb()
3852 TCGv temp; in decode_abs_ldst_swap() local
3858 temp = tcg_constant_i32(EA_ABS_FORMAT(address)); in decode_abs_ldst_swap()
3862 gen_ldmst(ctx, r1, temp); in decode_abs_ldst_swap()
3865 gen_swap(ctx, r1, temp); in decode_abs_ldst_swap()
3903 TCGv temp; in decode_abs_store() local
3909 temp = tcg_constant_i32(EA_ABS_FORMAT(address)); in decode_abs_store()
3913 tcg_gen_qemu_st_tl(cpu_gpr_a[r1], temp, ctx->mem_idx, MO_LESL); in decode_abs_store()
3917 gen_st_2regs_64(cpu_gpr_d[r1+1], cpu_gpr_d[r1], temp, ctx); in decode_abs_store()
3921 gen_st_2regs_64(cpu_gpr_a[r1+1], cpu_gpr_a[r1], temp, ctx); in decode_abs_store()
3924 tcg_gen_qemu_st_tl(cpu_gpr_d[r1], temp, ctx->mem_idx, MO_LESL); in decode_abs_store()
3936 TCGv temp; in decode_abs_storeb_h() local
3942 temp = tcg_constant_i32(EA_ABS_FORMAT(address)); in decode_abs_storeb_h()
3946 tcg_gen_qemu_st_tl(cpu_gpr_d[r1], temp, ctx->mem_idx, MO_UB); in decode_abs_storeb_h()
3949 tcg_gen_qemu_st_tl(cpu_gpr_d[r1], temp, ctx->mem_idx, MO_LEUW); in decode_abs_storeb_h()
4038 TCGv temp; in decode_bit_insert() local
4046 temp = tcg_temp_new(); in decode_bit_insert()
4048 tcg_gen_shri_tl(temp, cpu_gpr_d[r2], pos2); in decode_bit_insert()
4050 tcg_gen_not_tl(temp, temp); in decode_bit_insert()
4052 tcg_gen_deposit_tl(cpu_gpr_d[r3], cpu_gpr_d[r1], temp, pos1, 1); in decode_bit_insert()
4137 TCGv temp; in decode_bit_sh_logic1() local
4146 temp = tcg_temp_new(); in decode_bit_sh_logic1()
4150 gen_bit_1op(temp, cpu_gpr_d[r1], cpu_gpr_d[r2], in decode_bit_sh_logic1()
4154 gen_bit_1op(temp, cpu_gpr_d[r1], cpu_gpr_d[r2], in decode_bit_sh_logic1()
4158 gen_bit_1op(temp, cpu_gpr_d[r1], cpu_gpr_d[r2], in decode_bit_sh_logic1()
4162 gen_bit_1op(temp, cpu_gpr_d[r1], cpu_gpr_d[r2], in decode_bit_sh_logic1()
4169 tcg_gen_add_tl(cpu_gpr_d[r3], cpu_gpr_d[r3], temp); in decode_bit_sh_logic1()
4177 TCGv temp; in decode_bit_sh_logic2() local
4186 temp = tcg_temp_new(); in decode_bit_sh_logic2()
4190 gen_bit_1op(temp, cpu_gpr_d[r1] , cpu_gpr_d[r2] , in decode_bit_sh_logic2()
4194 gen_bit_1op(temp, cpu_gpr_d[r1], cpu_gpr_d[r2], in decode_bit_sh_logic2()
4198 gen_bit_1op(temp, cpu_gpr_d[r1], cpu_gpr_d[r2], in decode_bit_sh_logic2()
4202 gen_bit_1op(temp, cpu_gpr_d[r1], cpu_gpr_d[r2], in decode_bit_sh_logic2()
4209 tcg_gen_add_tl(cpu_gpr_d[r3], cpu_gpr_d[r3], temp); in decode_bit_sh_logic2()
4220 TCGv temp; in decode_bo_addrmode_post_pre_base() local
4303 temp = tcg_temp_new(); in decode_bo_addrmode_post_pre_base()
4304 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_post_pre_base()
4305 gen_st_2regs_64(cpu_gpr_d[r1+1], cpu_gpr_d[r1], temp, ctx); in decode_bo_addrmode_post_pre_base()
4306 tcg_gen_mov_tl(cpu_gpr_a[r2], temp); in decode_bo_addrmode_post_pre_base()
4320 temp = tcg_temp_new(); in decode_bo_addrmode_post_pre_base()
4321 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_post_pre_base()
4322 gen_st_2regs_64(cpu_gpr_a[r1+1], cpu_gpr_a[r1], temp, ctx); in decode_bo_addrmode_post_pre_base()
4323 tcg_gen_mov_tl(cpu_gpr_a[r2], temp); in decode_bo_addrmode_post_pre_base()
4337 temp = tcg_temp_new(); in decode_bo_addrmode_post_pre_base()
4338 tcg_gen_shri_tl(temp, cpu_gpr_d[r1], 16); in decode_bo_addrmode_post_pre_base()
4339 gen_offset_st(ctx, temp, cpu_gpr_a[r2], off10, MO_LEUW); in decode_bo_addrmode_post_pre_base()
4342 temp = tcg_temp_new(); in decode_bo_addrmode_post_pre_base()
4343 tcg_gen_shri_tl(temp, cpu_gpr_d[r1], 16); in decode_bo_addrmode_post_pre_base()
4344 tcg_gen_qemu_st_tl(temp, cpu_gpr_a[r2], ctx->mem_idx, in decode_bo_addrmode_post_pre_base()
4349 temp = tcg_temp_new(); in decode_bo_addrmode_post_pre_base()
4350 tcg_gen_shri_tl(temp, cpu_gpr_d[r1], 16); in decode_bo_addrmode_post_pre_base()
4351 gen_st_preincr(ctx, temp, cpu_gpr_a[r2], off10, MO_LEUW); in decode_bo_addrmode_post_pre_base()
4374 TCGv temp, temp2, t_off10; in decode_bo_addrmode_bitreverse_circular() local
4381 temp = tcg_temp_new(); in decode_bo_addrmode_bitreverse_circular()
4385 tcg_gen_ext16u_tl(temp, cpu_gpr_a[r2+1]); in decode_bo_addrmode_bitreverse_circular()
4386 tcg_gen_add_tl(temp2, cpu_gpr_a[r2], temp); in decode_bo_addrmode_bitreverse_circular()
4424 tcg_gen_addi_tl(temp, temp, 4); in decode_bo_addrmode_bitreverse_circular()
4425 tcg_gen_rem_tl(temp, temp, temp2); in decode_bo_addrmode_bitreverse_circular()
4426 tcg_gen_add_tl(temp2, cpu_gpr_a[r2], temp); in decode_bo_addrmode_bitreverse_circular()
4439 tcg_gen_addi_tl(temp, temp, 4); in decode_bo_addrmode_bitreverse_circular()
4440 tcg_gen_rem_tl(temp, temp, temp2); in decode_bo_addrmode_bitreverse_circular()
4441 tcg_gen_add_tl(temp2, cpu_gpr_a[r2], temp); in decode_bo_addrmode_bitreverse_circular()
4454 tcg_gen_shri_tl(temp, cpu_gpr_d[r1], 16); in decode_bo_addrmode_bitreverse_circular()
4455 tcg_gen_qemu_st_tl(temp, temp2, ctx->mem_idx, MO_LEUW); in decode_bo_addrmode_bitreverse_circular()
4459 tcg_gen_shri_tl(temp, cpu_gpr_d[r1], 16); in decode_bo_addrmode_bitreverse_circular()
4460 tcg_gen_qemu_st_tl(temp, temp2, ctx->mem_idx, MO_LEUW); in decode_bo_addrmode_bitreverse_circular()
4481 TCGv temp; in decode_bo_addrmode_ld_post_pre_base() local
4534 temp = tcg_temp_new(); in decode_bo_addrmode_ld_post_pre_base()
4535 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_ld_post_pre_base()
4536 gen_ld_2regs_64(cpu_gpr_d[r1+1], cpu_gpr_d[r1], temp, ctx); in decode_bo_addrmode_ld_post_pre_base()
4537 tcg_gen_mov_tl(cpu_gpr_a[r2], temp); in decode_bo_addrmode_ld_post_pre_base()
4551 temp = tcg_temp_new(); in decode_bo_addrmode_ld_post_pre_base()
4552 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_ld_post_pre_base()
4553 gen_ld_2regs_64(cpu_gpr_a[r1+1], cpu_gpr_a[r1], temp, ctx); in decode_bo_addrmode_ld_post_pre_base()
4554 tcg_gen_mov_tl(cpu_gpr_a[r2], temp); in decode_bo_addrmode_ld_post_pre_base()
4613 TCGv temp, temp2, t_off10; in decode_bo_addrmode_ld_bitreverse_circular() local
4620 temp = tcg_temp_new(); in decode_bo_addrmode_ld_bitreverse_circular()
4624 tcg_gen_ext16u_tl(temp, cpu_gpr_a[r2+1]); in decode_bo_addrmode_ld_bitreverse_circular()
4625 tcg_gen_add_tl(temp2, cpu_gpr_a[r2], temp); in decode_bo_addrmode_ld_bitreverse_circular()
4662 tcg_gen_addi_tl(temp, temp, 4); in decode_bo_addrmode_ld_bitreverse_circular()
4663 tcg_gen_rem_tl(temp, temp, temp2); in decode_bo_addrmode_ld_bitreverse_circular()
4664 tcg_gen_add_tl(temp2, cpu_gpr_a[r2], temp); in decode_bo_addrmode_ld_bitreverse_circular()
4677 tcg_gen_addi_tl(temp, temp, 4); in decode_bo_addrmode_ld_bitreverse_circular()
4678 tcg_gen_rem_tl(temp, temp, temp2); in decode_bo_addrmode_ld_bitreverse_circular()
4679 tcg_gen_add_tl(temp2, cpu_gpr_a[r2], temp); in decode_bo_addrmode_ld_bitreverse_circular()
4728 TCGv temp; in decode_bo_addrmode_stctx_post_pre_base() local
4736 temp = tcg_temp_new(); in decode_bo_addrmode_stctx_post_pre_base()
4740 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_stctx_post_pre_base()
4741 gen_helper_ldlcx(tcg_env, temp); in decode_bo_addrmode_stctx_post_pre_base()
4744 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_stctx_post_pre_base()
4745 gen_ldmst(ctx, r1, temp); in decode_bo_addrmode_stctx_post_pre_base()
4756 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_stctx_post_pre_base()
4757 gen_helper_lducx(tcg_env, temp); in decode_bo_addrmode_stctx_post_pre_base()
4763 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_stctx_post_pre_base()
4764 gen_helper_stlcx(tcg_env, temp); in decode_bo_addrmode_stctx_post_pre_base()
4767 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_stctx_post_pre_base()
4768 gen_helper_stucx(tcg_env, temp); in decode_bo_addrmode_stctx_post_pre_base()
4771 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_stctx_post_pre_base()
4772 gen_swap(ctx, r1, temp); in decode_bo_addrmode_stctx_post_pre_base()
4783 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_stctx_post_pre_base()
4784 gen_cmpswap(ctx, r1, temp); in decode_bo_addrmode_stctx_post_pre_base()
4795 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], off10); in decode_bo_addrmode_stctx_post_pre_base()
4796 gen_swapmsk(ctx, r1, temp); in decode_bo_addrmode_stctx_post_pre_base()
4816 TCGv temp, temp2, t_off10; in decode_bo_addrmode_ldmst_bitreverse_circular() local
4823 temp = tcg_temp_new(); in decode_bo_addrmode_ldmst_bitreverse_circular()
4827 tcg_gen_ext16u_tl(temp, cpu_gpr_a[r2+1]); in decode_bo_addrmode_ldmst_bitreverse_circular()
4828 tcg_gen_add_tl(temp2, cpu_gpr_a[r2], temp); in decode_bo_addrmode_ldmst_bitreverse_circular()
4872 TCGv temp; in decode_bol_opc() local
4880 temp = tcg_temp_new(); in decode_bol_opc()
4881 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], address); in decode_bol_opc()
4882 tcg_gen_qemu_ld_tl(cpu_gpr_a[r1], temp, ctx->mem_idx, MO_LEUL); in decode_bol_opc()
4885 temp = tcg_temp_new(); in decode_bol_opc()
4886 tcg_gen_addi_tl(temp, cpu_gpr_a[r2], address); in decode_bol_opc()
4887 tcg_gen_qemu_ld_tl(cpu_gpr_d[r1], temp, ctx->mem_idx, MO_LEUL); in decode_bol_opc()
4955 TCGv temp; in decode_rc_logical_shift() local
4970 temp = tcg_temp_new(); in decode_rc_logical_shift()
4971 tcg_gen_movi_tl(temp, const9); in decode_rc_logical_shift()
4972 tcg_gen_nand_tl(cpu_gpr_d[r2], cpu_gpr_d[r1], temp); in decode_rc_logical_shift()
4975 temp = tcg_temp_new(); in decode_rc_logical_shift()
4976 tcg_gen_movi_tl(temp, const9); in decode_rc_logical_shift()
4977 tcg_gen_nor_tl(cpu_gpr_d[r2], cpu_gpr_d[r1], temp); in decode_rc_logical_shift()
5013 temp = tcg_constant_i32(const9); in decode_rc_logical_shift()
5014 gen_helper_shuffle(cpu_gpr_d[r2], cpu_gpr_d[r1], temp); in decode_rc_logical_shift()
5030 TCGv temp; in decode_rc_accumulator() local
5038 temp = tcg_temp_new(); in decode_rc_accumulator()
5112 tcg_gen_movi_tl(temp, const9); in decode_rc_accumulator()
5113 tcg_gen_movcond_tl(TCG_COND_GT, cpu_gpr_d[r2], cpu_gpr_d[r1], temp, in decode_rc_accumulator()
5114 cpu_gpr_d[r1], temp); in decode_rc_accumulator()
5117 tcg_gen_movi_tl(temp, MASK_OP_RC_CONST9(ctx->opcode)); in decode_rc_accumulator()
5118 tcg_gen_movcond_tl(TCG_COND_GTU, cpu_gpr_d[r2], cpu_gpr_d[r1], temp, in decode_rc_accumulator()
5119 cpu_gpr_d[r1], temp); in decode_rc_accumulator()
5122 tcg_gen_movi_tl(temp, const9); in decode_rc_accumulator()
5123 tcg_gen_movcond_tl(TCG_COND_LT, cpu_gpr_d[r2], cpu_gpr_d[r1], temp, in decode_rc_accumulator()
5124 cpu_gpr_d[r1], temp); in decode_rc_accumulator()
5127 tcg_gen_movi_tl(temp, MASK_OP_RC_CONST9(ctx->opcode)); in decode_rc_accumulator()
5128 tcg_gen_movcond_tl(TCG_COND_LTU, cpu_gpr_d[r2], cpu_gpr_d[r1], temp, in decode_rc_accumulator()
5129 cpu_gpr_d[r1], temp); in decode_rc_accumulator()
5161 tcg_gen_movi_tl(temp, const9); in decode_rc_accumulator()
5162 gen_sub_d(cpu_gpr_d[r2], temp, cpu_gpr_d[r1]); in decode_rc_accumulator()
5165 tcg_gen_movi_tl(temp, const9); in decode_rc_accumulator()
5166 gen_subs(cpu_gpr_d[r2], temp, cpu_gpr_d[r1]); in decode_rc_accumulator()
5169 tcg_gen_movi_tl(temp, const9); in decode_rc_accumulator()
5170 gen_subsu(cpu_gpr_d[r2], temp, cpu_gpr_d[r1]); in decode_rc_accumulator()
5291 TCGv temp; in decode_rcpw_insert() local
5315 temp = tcg_constant_i32(const4); in decode_rcpw_insert()
5316 tcg_gen_deposit_tl(cpu_gpr_d[r2], cpu_gpr_d[r1], temp, pos, width); in decode_rcpw_insert()
5332 TCGv temp, temp2, temp3; in decode_rcrw_insert() local
5341 temp = tcg_temp_new(); in decode_rcrw_insert()
5347 tcg_gen_andi_tl(temp, cpu_gpr_d[r3], 0x1f); in decode_rcrw_insert()
5349 tcg_gen_shl_tl(cpu_gpr_d[r4 + 1], temp2, temp); in decode_rcrw_insert()
5351 tcg_gen_shl_tl(cpu_gpr_d[r4], temp2, temp); in decode_rcrw_insert()
5356 tcg_gen_movi_tl(temp, width); in decode_rcrw_insert()
5359 gen_insert(cpu_gpr_d[r4], cpu_gpr_d[r1], temp2, temp, temp3); in decode_rcrw_insert()
5374 TCGv temp, temp2; in decode_rcr_cond_select() local
5392 temp = tcg_constant_i32(0); in decode_rcr_cond_select()
5394 tcg_gen_movcond_tl(TCG_COND_NE, cpu_gpr_d[r4], cpu_gpr_d[r3], temp, in decode_rcr_cond_select()
5398 temp = tcg_constant_i32(0); in decode_rcr_cond_select()
5400 tcg_gen_movcond_tl(TCG_COND_EQ, cpu_gpr_d[r4], cpu_gpr_d[r3], temp, in decode_rcr_cond_select()
5581 TCGv temp; in decode_rr_accumulator() local
5778 temp = tcg_temp_new(); in decode_rr_accumulator()
5781 tcg_gen_mov_tl(temp, cpu_gpr_d[r1]); in decode_rr_accumulator()
5783 tcg_gen_mov_tl(cpu_gpr_d[r3 + 1], temp); in decode_rr_accumulator()
5997 TCGv temp; in decode_rr_address() local
6010 temp = tcg_temp_new(); in decode_rr_address()
6011 tcg_gen_shli_tl(temp, cpu_gpr_d[r1], n); in decode_rr_address()
6012 tcg_gen_add_tl(cpu_gpr_a[r3], cpu_gpr_a[r2], temp); in decode_rr_address()
6015 temp = tcg_temp_new(); in decode_rr_address()
6016 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 3); in decode_rr_address()
6017 tcg_gen_add_tl(temp, cpu_gpr_a[r2], temp); in decode_rr_address()
6018 tcg_gen_andi_tl(cpu_gpr_a[r3], temp, 0xFFFFFFFC); in decode_rr_address()
6095 TCGv temp, temp2, temp3; in decode_rr_divide() local
6116 temp = tcg_temp_new(); in decode_rr_divide()
6125 tcg_gen_abs_tl(temp, temp3); in decode_rr_divide()
6127 tcg_gen_setcond_tl(TCG_COND_GE, cpu_PSW_V, temp, temp2); in decode_rr_divide()
6145 temp = tcg_temp_new(); in decode_rr_divide()
6154 tcg_gen_abs_tl(temp, temp3); in decode_rr_divide()
6156 tcg_gen_setcond_tl(TCG_COND_GE, cpu_PSW_V, temp, temp2); in decode_rr_divide()
6169 temp = tcg_temp_new(); in decode_rr_divide()
6174 tcg_gen_setcondi_tl(TCG_COND_EQ, temp, cpu_gpr_d[r2], 0xffffffff); in decode_rr_divide()
6176 tcg_gen_and_tl(temp, temp, temp2); in decode_rr_divide()
6178 tcg_gen_or_tl(cpu_PSW_V, temp, temp2); in decode_rr_divide()
6424 TCGv temp, temp2; in decode_rr1_mulq() local
6432 temp = tcg_temp_new(); in decode_rr1_mulq()
6437 gen_mul_q(cpu_gpr_d[r3], temp, cpu_gpr_d[r1], cpu_gpr_d[r2], n, 32); in decode_rr1_mulq()
6445 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r2]); in decode_rr1_mulq()
6446 gen_mul_q(cpu_gpr_d[r3], temp, cpu_gpr_d[r1], temp, n, 16); in decode_rr1_mulq()
6450 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r2]); in decode_rr1_mulq()
6451 gen_mul_q(cpu_gpr_d[r3], cpu_gpr_d[r3+1], cpu_gpr_d[r1], temp, n, 0); in decode_rr1_mulq()
6454 tcg_gen_sari_tl(temp, cpu_gpr_d[r2], 16); in decode_rr1_mulq()
6455 gen_mul_q(cpu_gpr_d[r3], temp, cpu_gpr_d[r1], temp, n, 16); in decode_rr1_mulq()
6459 tcg_gen_sari_tl(temp, cpu_gpr_d[r2], 16); in decode_rr1_mulq()
6460 gen_mul_q(cpu_gpr_d[r3], cpu_gpr_d[r3+1], cpu_gpr_d[r1], temp, n, 0); in decode_rr1_mulq()
6463 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rr1_mulq()
6465 gen_mul_q_16(cpu_gpr_d[r3], temp, temp2, n); in decode_rr1_mulq()
6468 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rr1_mulq()
6470 gen_mul_q_16(cpu_gpr_d[r3], temp, temp2, n); in decode_rr1_mulq()
6473 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rr1_mulq()
6475 gen_mulr_q(cpu_gpr_d[r3], temp, temp2, n); in decode_rr1_mulq()
6478 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rr1_mulq()
6480 gen_mulr_q(cpu_gpr_d[r3], temp, temp2, n); in decode_rr1_mulq()
6530 TCGv temp; in decode_rrpw_extract_insert() local
6558 temp = tcg_temp_new(); in decode_rrpw_extract_insert()
6559 tcg_gen_movi_tl(temp, ((1u << width) - 1) << pos); in decode_rrpw_extract_insert()
6561 tcg_gen_mov_tl(cpu_gpr_d[r3 + 1], temp); in decode_rrpw_extract_insert()
6584 TCGv temp; in decode_rrr_cond_select() local
6610 temp = tcg_constant_i32(0); in decode_rrr_cond_select()
6611 tcg_gen_movcond_tl(TCG_COND_NE, cpu_gpr_d[r4], cpu_gpr_d[r3], temp, in decode_rrr_cond_select()
6615 temp = tcg_constant_i32(0); in decode_rrr_cond_select()
6616 tcg_gen_movcond_tl(TCG_COND_EQ, cpu_gpr_d[r4], cpu_gpr_d[r3], temp, in decode_rrr_cond_select()
6968 TCGv temp, temp2; in decode_rrr1_maddq_h() local
6977 temp = tcg_temp_new(); in decode_rrr1_maddq_h()
6993 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r2]); in decode_rrr1_maddq_h()
6995 temp, n, 16); in decode_rrr1_maddq_h()
7000 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r2]); in decode_rrr1_maddq_h()
7002 cpu_gpr_d[r3+1], cpu_gpr_d[r1], temp, in decode_rrr1_maddq_h()
7006 tcg_gen_sari_tl(temp, cpu_gpr_d[r2], 16); in decode_rrr1_maddq_h()
7008 temp, n, 16); in decode_rrr1_maddq_h()
7013 tcg_gen_sari_tl(temp, cpu_gpr_d[r2], 16); in decode_rrr1_maddq_h()
7015 cpu_gpr_d[r3+1], cpu_gpr_d[r1], temp, in decode_rrr1_maddq_h()
7019 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_maddq_h()
7021 gen_m16add32_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_maddq_h()
7026 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_maddq_h()
7029 cpu_gpr_d[r3+1], temp, temp2, n); in decode_rrr1_maddq_h()
7032 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_maddq_h()
7034 gen_m16add32_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_maddq_h()
7039 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_maddq_h()
7042 cpu_gpr_d[r3+1], temp, temp2, n); in decode_rrr1_maddq_h()
7056 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r2]); in decode_rrr1_maddq_h()
7058 temp, n, 16); in decode_rrr1_maddq_h()
7063 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r2]); in decode_rrr1_maddq_h()
7065 cpu_gpr_d[r3+1], cpu_gpr_d[r1], temp, in decode_rrr1_maddq_h()
7069 tcg_gen_sari_tl(temp, cpu_gpr_d[r2], 16); in decode_rrr1_maddq_h()
7071 temp, n, 16); in decode_rrr1_maddq_h()
7076 tcg_gen_sari_tl(temp, cpu_gpr_d[r2], 16); in decode_rrr1_maddq_h()
7078 cpu_gpr_d[r3+1], cpu_gpr_d[r1], temp, in decode_rrr1_maddq_h()
7082 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_maddq_h()
7084 gen_m16adds32_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_maddq_h()
7089 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_maddq_h()
7092 cpu_gpr_d[r3+1], temp, temp2, n); in decode_rrr1_maddq_h()
7095 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_maddq_h()
7097 gen_m16adds32_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_maddq_h()
7102 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_maddq_h()
7105 cpu_gpr_d[r3+1], temp, temp2, n); in decode_rrr1_maddq_h()
7118 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_maddq_h()
7120 gen_maddr_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_maddq_h()
7123 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_maddq_h()
7125 gen_maddr_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_maddq_h()
7128 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_maddq_h()
7130 gen_maddrs_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_maddq_h()
7133 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_maddq_h()
7135 gen_maddrs_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_maddq_h()
7450 TCGv temp, temp2; in decode_rrr1_msubq_h() local
7459 temp = tcg_temp_new(); in decode_rrr1_msubq_h()
7475 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r2]); in decode_rrr1_msubq_h()
7477 temp, n, 16); in decode_rrr1_msubq_h()
7482 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r2]); in decode_rrr1_msubq_h()
7484 cpu_gpr_d[r3+1], cpu_gpr_d[r1], temp, in decode_rrr1_msubq_h()
7488 tcg_gen_sari_tl(temp, cpu_gpr_d[r2], 16); in decode_rrr1_msubq_h()
7490 temp, n, 16); in decode_rrr1_msubq_h()
7495 tcg_gen_sari_tl(temp, cpu_gpr_d[r2], 16); in decode_rrr1_msubq_h()
7497 cpu_gpr_d[r3+1], cpu_gpr_d[r1], temp, in decode_rrr1_msubq_h()
7501 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_msubq_h()
7503 gen_m16sub32_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_msubq_h()
7508 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_msubq_h()
7511 cpu_gpr_d[r3+1], temp, temp2, n); in decode_rrr1_msubq_h()
7514 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_msubq_h()
7516 gen_m16sub32_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_msubq_h()
7521 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_msubq_h()
7524 cpu_gpr_d[r3+1], temp, temp2, n); in decode_rrr1_msubq_h()
7538 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r2]); in decode_rrr1_msubq_h()
7540 temp, n, 16); in decode_rrr1_msubq_h()
7545 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r2]); in decode_rrr1_msubq_h()
7547 cpu_gpr_d[r3+1], cpu_gpr_d[r1], temp, in decode_rrr1_msubq_h()
7551 tcg_gen_sari_tl(temp, cpu_gpr_d[r2], 16); in decode_rrr1_msubq_h()
7553 temp, n, 16); in decode_rrr1_msubq_h()
7558 tcg_gen_sari_tl(temp, cpu_gpr_d[r2], 16); in decode_rrr1_msubq_h()
7560 cpu_gpr_d[r3+1], cpu_gpr_d[r1], temp, in decode_rrr1_msubq_h()
7564 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_msubq_h()
7566 gen_m16subs32_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_msubq_h()
7571 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_msubq_h()
7574 cpu_gpr_d[r3+1], temp, temp2, n); in decode_rrr1_msubq_h()
7577 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_msubq_h()
7579 gen_m16subs32_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_msubq_h()
7584 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_msubq_h()
7587 cpu_gpr_d[r3+1], temp, temp2, n); in decode_rrr1_msubq_h()
7600 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_msubq_h()
7602 gen_msubr_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_msubq_h()
7605 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_msubq_h()
7607 gen_msubr_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_msubq_h()
7610 tcg_gen_ext16s_tl(temp, cpu_gpr_d[r1]); in decode_rrr1_msubq_h()
7612 gen_msubrs_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_msubq_h()
7615 tcg_gen_sari_tl(temp, cpu_gpr_d[r1], 16); in decode_rrr1_msubq_h()
7617 gen_msubrs_q(cpu_gpr_d[r4], cpu_gpr_d[r3], temp, temp2, n); in decode_rrr1_msubq_h()
7852 TCGv temp, temp2; in decode_rrrw_extract_insert() local
7861 temp = tcg_temp_new(); in decode_rrrw_extract_insert()
7865 tcg_gen_andi_tl(temp, cpu_gpr_d[r3], 0x1f); in decode_rrrw_extract_insert()
7866 tcg_gen_addi_tl(temp, temp, width); in decode_rrrw_extract_insert()
7867 tcg_gen_subfi_tl(temp, 32, temp); in decode_rrrw_extract_insert()
7868 tcg_gen_shl_tl(cpu_gpr_d[r4], cpu_gpr_d[r1], temp); in decode_rrrw_extract_insert()
7875 tcg_gen_andi_tl(temp, cpu_gpr_d[r3], 0x1f); in decode_rrrw_extract_insert()
7876 tcg_gen_shr_tl(cpu_gpr_d[r4], cpu_gpr_d[r1], temp); in decode_rrrw_extract_insert()
7883 tcg_gen_andi_tl(temp, cpu_gpr_d[r3], 0x1f); in decode_rrrw_extract_insert()
7885 tcg_gen_shl_tl(temp2, temp2, temp); in decode_rrrw_extract_insert()
7886 tcg_gen_shl_tl(cpu_gpr_d[r4], cpu_gpr_d[r2], temp); in decode_rrrw_extract_insert()
7892 tcg_gen_movi_tl(temp, width); in decode_rrrw_extract_insert()
7894 gen_insert(cpu_gpr_d[r4], cpu_gpr_d[r1], cpu_gpr_d[r2], temp, temp2); in decode_rrrw_extract_insert()
8017 TCGv temp, temp2, temp3; in decode_32Bit_opc() local
8049 temp = tcg_constant_i32(EA_ABS_FORMAT(address)); in decode_32Bit_opc()
8053 tcg_gen_qemu_st_tl(temp2, temp, ctx->mem_idx, MO_LEUW); in decode_32Bit_opc()
8058 temp = tcg_constant_i32(EA_ABS_FORMAT(address)); in decode_32Bit_opc()
8060 tcg_gen_qemu_ld_tl(cpu_gpr_d[r1], temp, ctx->mem_idx, MO_LEUW); in decode_32Bit_opc()
8084 temp = tcg_constant_i32(EA_ABS_FORMAT(address)); in decode_32Bit_opc()
8087 tcg_gen_qemu_ld_tl(temp2, temp, ctx->mem_idx, MO_UB); in decode_32Bit_opc()
8090 tcg_gen_qemu_st_tl(temp2, temp, ctx->mem_idx, MO_UB); in decode_32Bit_opc()
8211 temp = tcg_constant_i32(const16); in decode_32Bit_opc()
8220 gen_insert(cpu_gpr_d[r3], cpu_gpr_d[r1], temp, temp2, temp3); in decode_32Bit_opc()