Lines Matching refs:t0
549 TCGv t0 = tcg_temp_new(); in gen_load_srsgpr() local
552 tcg_gen_movi_tl(t0, 0); in gen_load_srsgpr()
564 tcg_gen_ld_tl(t0, addr, sizeof(target_ulong) * from); in gen_load_srsgpr()
568 gen_store_gpr(t0, to); in gen_load_srsgpr()
569 tcg_temp_free(t0); in gen_load_srsgpr()
575 TCGv t0 = tcg_temp_new(); in gen_store_srsgpr() local
579 gen_load_gpr(t0, from); in gen_store_srsgpr()
587 tcg_gen_st_tl(t0, addr, sizeof(target_ulong) * to); in gen_store_srsgpr()
590 tcg_temp_free(t0); in gen_store_srsgpr()
620 TCGv_i32 t0 = tcg_temp_new_i32(); in gen_load_fpr64() local
622 gen_load_fpr32(t0, reg & ~1); in gen_load_fpr64()
624 tcg_gen_concat_i32_i64(t, t0, t1); in gen_load_fpr64()
625 tcg_temp_free_i32(t0); in gen_load_fpr64()
635 TCGv_i64 t0 = tcg_temp_new_i64(); in gen_store_fpr64() local
639 tcg_gen_shri_i64(t0, t, 32); in gen_store_fpr64()
640 tcg_gen_trunc_i64_i32(t1, t0); in gen_store_fpr64()
643 tcg_temp_free_i64(t0); in gen_store_fpr64()
690 static inline void glue(gen_op_, name) (TCGv ret, TCGv t0, TCGv t1) \
695 tcg_gen_brcond_tl(cond, t0, t1, l1); \
711 static inline void glue(gen_op_, name) (TCGv ret, TCGv t0, target_ulong val) \
716 tcg_gen_brcondi_tl(cond, t0, val, l1); \
728 static inline void glue(gen_op_, name) (TCGv ret, TCGv t0) \
733 tcg_gen_brcondi_tl(cond, t0, 0, l1); \
919 TCGv t0 = tcg_temp_new(); \
920 tcg_gen_mov_tl(t0, arg1); \
922 tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, lladdr)); \
924 tcg_temp_free(t0); \
943 TCGv t0 = tcg_temp_new(); \
947 tcg_gen_andi_tl(t0, arg2, almask); \
948 tcg_gen_brcondi_tl(TCG_COND_EQ, t0, 0, l1); \
952 tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, lladdr)); \
953 tcg_gen_brcond_tl(TCG_COND_NE, arg2, t0, l2); \
954 tcg_gen_movi_tl(t0, rt | ((almask << 3) & 0x20)); \
955 tcg_gen_st_tl(t0, cpu_env, offsetof(CPUState, llreg)); \
959 tcg_gen_movi_tl(t0, 0); \
960 gen_store_gpr(t0, rt); \
961 tcg_temp_free(t0); \
967 TCGv t0 = tcg_temp_new(); \
968 gen_helper_3i(insn, t0, arg1, arg2, ctx->mem_idx); \
969 gen_store_gpr(t0, rt); \
970 tcg_temp_free(t0); \
984 TCGv t0 = tcg_temp_new(); in gen_ldst() local
988 tcg_gen_movi_tl(t0, offset); in gen_ldst()
990 gen_load_gpr(t0, base); in gen_ldst()
992 tcg_gen_movi_tl(t0, offset); in gen_ldst()
993 gen_op_addr_add(ctx, t0, cpu_gpr[base], t0); in gen_ldst()
1001 op_ldst_lwu(t0, t0, ctx); in gen_ldst()
1002 gen_store_gpr(t0, rt); in gen_ldst()
1007 op_ldst_ld(t0, t0, ctx); in gen_ldst()
1008 gen_store_gpr(t0, rt); in gen_ldst()
1013 op_ldst_lld(t0, t0, ctx); in gen_ldst()
1014 gen_store_gpr(t0, rt); in gen_ldst()
1020 op_ldst_sd(t1, t0, ctx); in gen_ldst()
1026 gen_helper_3i(ldl, t1, t1, t0, ctx->mem_idx); in gen_ldst()
1033 gen_helper_2i(sdl, t1, t0, ctx->mem_idx); in gen_ldst()
1039 gen_helper_3i(ldr, t1, t1, t0, ctx->mem_idx); in gen_ldst()
1046 gen_helper_2i(sdr, t1, t0, ctx->mem_idx); in gen_ldst()
1052 op_ldst_lw(t0, t0, ctx); in gen_ldst()
1053 gen_store_gpr(t0, rt); in gen_ldst()
1059 op_ldst_sw(t1, t0, ctx); in gen_ldst()
1064 op_ldst_lh(t0, t0, ctx); in gen_ldst()
1065 gen_store_gpr(t0, rt); in gen_ldst()
1071 op_ldst_sh(t1, t0, ctx); in gen_ldst()
1076 op_ldst_lhu(t0, t0, ctx); in gen_ldst()
1077 gen_store_gpr(t0, rt); in gen_ldst()
1082 op_ldst_lb(t0, t0, ctx); in gen_ldst()
1083 gen_store_gpr(t0, rt); in gen_ldst()
1089 op_ldst_sb(t1, t0, ctx); in gen_ldst()
1094 op_ldst_lbu(t0, t0, ctx); in gen_ldst()
1095 gen_store_gpr(t0, rt); in gen_ldst()
1101 gen_helper_3i(lwl, t1, t1, t0, ctx->mem_idx); in gen_ldst()
1108 gen_helper_2i(swl, t1, t0, ctx->mem_idx); in gen_ldst()
1114 gen_helper_3i(lwr, t1, t1, t0, ctx->mem_idx); in gen_ldst()
1121 gen_helper_2i(swr, t1, t0, ctx->mem_idx); in gen_ldst()
1126 op_ldst_ll(t0, t0, ctx); in gen_ldst()
1127 gen_store_gpr(t0, rt); in gen_ldst()
1132 tcg_temp_free(t0); in gen_ldst()
1141 TCGv t0, t1; in gen_st_cond() local
1143 t0 = tcg_temp_local_new(); in gen_st_cond()
1146 tcg_gen_movi_tl(t0, offset); in gen_st_cond()
1148 gen_load_gpr(t0, base); in gen_st_cond()
1150 tcg_gen_movi_tl(t0, offset); in gen_st_cond()
1151 gen_op_addr_add(ctx, t0, cpu_gpr[base], t0); in gen_st_cond()
1162 op_ldst_scd(t1, t0, rt, ctx); in gen_st_cond()
1168 op_ldst_sc(t1, t0, rt, ctx); in gen_st_cond()
1174 tcg_temp_free(t0); in gen_st_cond()
1182 TCGv t0 = tcg_temp_new(); in gen_flt_ldst() local
1185 tcg_gen_movi_tl(t0, offset); in gen_flt_ldst()
1187 gen_load_gpr(t0, base); in gen_flt_ldst()
1189 tcg_gen_movi_tl(t0, offset); in gen_flt_ldst()
1190 gen_op_addr_add(ctx, t0, cpu_gpr[base], t0); in gen_flt_ldst()
1199 tcg_gen_qemu_ld32s(t0, t0, ctx->mem_idx); in gen_flt_ldst()
1200 tcg_gen_trunc_tl_i32(fp0, t0); in gen_flt_ldst()
1213 tcg_gen_qemu_st32(t1, t0, ctx->mem_idx); in gen_flt_ldst()
1223 tcg_gen_qemu_ld64(fp0, t0, ctx->mem_idx); in gen_flt_ldst()
1234 tcg_gen_qemu_st64(fp0, t0, ctx->mem_idx); in gen_flt_ldst()
1246 tcg_temp_free(t0); in gen_flt_ldst()
1265 TCGv t0 = tcg_temp_local_new(); in gen_arith_imm() local
1271 tcg_gen_addi_tl(t0, t1, uimm); in gen_arith_imm()
1272 tcg_gen_ext32s_tl(t0, t0); in gen_arith_imm()
1275 tcg_gen_xori_tl(t2, t0, uimm); in gen_arith_imm()
1283 tcg_gen_ext32s_tl(t0, t0); in gen_arith_imm()
1284 gen_store_gpr(t0, rt); in gen_arith_imm()
1285 tcg_temp_free(t0); in gen_arith_imm()
1301 TCGv t0 = tcg_temp_local_new(); in gen_arith_imm() local
1307 tcg_gen_addi_tl(t0, t1, uimm); in gen_arith_imm()
1310 tcg_gen_xori_tl(t2, t0, uimm); in gen_arith_imm()
1318 gen_store_gpr(t0, rt); in gen_arith_imm()
1319 tcg_temp_free(t0); in gen_arith_imm()
1383 TCGv t0; in gen_slt_imm() local
1390 t0 = tcg_temp_new(); in gen_slt_imm()
1391 gen_load_gpr(t0, rs); in gen_slt_imm()
1394 gen_op_lti(cpu_gpr[rt], t0, uimm); in gen_slt_imm()
1398 gen_op_ltiu(cpu_gpr[rt], t0, uimm); in gen_slt_imm()
1403 tcg_temp_free(t0); in gen_slt_imm()
1412 TCGv t0; in gen_shift_imm() local
1420 t0 = tcg_temp_new(); in gen_shift_imm()
1421 gen_load_gpr(t0, rs); in gen_shift_imm()
1424 tcg_gen_shli_tl(t0, t0, uimm); in gen_shift_imm()
1425 tcg_gen_ext32s_tl(cpu_gpr[rt], t0); in gen_shift_imm()
1429 tcg_gen_ext32s_tl(t0, t0); in gen_shift_imm()
1430 tcg_gen_sari_tl(cpu_gpr[rt], t0, uimm); in gen_shift_imm()
1437 tcg_gen_ext32u_tl(t0, t0); in gen_shift_imm()
1438 tcg_gen_shri_tl(cpu_gpr[rt], t0, uimm); in gen_shift_imm()
1440 tcg_gen_ext32s_tl(cpu_gpr[rt], t0); in gen_shift_imm()
1450 tcg_gen_trunc_tl_i32(t1, t0); in gen_shift_imm()
1455 tcg_gen_ext32s_tl(cpu_gpr[rt], t0); in gen_shift_imm()
1460 tcg_gen_ext32u_tl(t0, t0); in gen_shift_imm()
1461 tcg_gen_shri_tl(cpu_gpr[rt], t0, uimm); in gen_shift_imm()
1463 tcg_gen_ext32s_tl(cpu_gpr[rt], t0); in gen_shift_imm()
1476 tcg_gen_shli_tl(cpu_gpr[rt], t0, uimm); in gen_shift_imm()
1480 tcg_gen_sari_tl(cpu_gpr[rt], t0, uimm); in gen_shift_imm()
1486 tcg_gen_shri_tl(cpu_gpr[rt], t0, uimm); in gen_shift_imm()
1493 tcg_gen_rotri_tl(cpu_gpr[rt], t0, uimm); in gen_shift_imm()
1495 tcg_gen_mov_tl(cpu_gpr[rt], t0); in gen_shift_imm()
1499 tcg_gen_shri_tl(cpu_gpr[rt], t0, uimm); in gen_shift_imm()
1510 tcg_gen_shli_tl(cpu_gpr[rt], t0, uimm + 32); in gen_shift_imm()
1514 tcg_gen_sari_tl(cpu_gpr[rt], t0, uimm + 32); in gen_shift_imm()
1520 tcg_gen_shri_tl(cpu_gpr[rt], t0, uimm + 32); in gen_shift_imm()
1526 tcg_gen_rotri_tl(cpu_gpr[rt], t0, uimm + 32); in gen_shift_imm()
1529 tcg_gen_shri_tl(cpu_gpr[rt], t0, uimm + 32); in gen_shift_imm()
1542 tcg_temp_free(t0); in gen_shift_imm()
1562 TCGv t0 = tcg_temp_local_new(); in gen_arith() local
1569 tcg_gen_add_tl(t0, t1, t2); in gen_arith()
1570 tcg_gen_ext32s_tl(t0, t0); in gen_arith()
1573 tcg_gen_xor_tl(t2, t0, t2); in gen_arith()
1581 gen_store_gpr(t0, rd); in gen_arith()
1582 tcg_temp_free(t0); in gen_arith()
1601 TCGv t0 = tcg_temp_local_new(); in gen_arith() local
1608 tcg_gen_sub_tl(t0, t1, t2); in gen_arith()
1609 tcg_gen_ext32s_tl(t0, t0); in gen_arith()
1611 tcg_gen_xor_tl(t1, t0, t1); in gen_arith()
1619 gen_store_gpr(t0, rd); in gen_arith()
1620 tcg_temp_free(t0); in gen_arith()
1641 TCGv t0 = tcg_temp_local_new(); in gen_arith() local
1648 tcg_gen_add_tl(t0, t1, t2); in gen_arith()
1651 tcg_gen_xor_tl(t2, t0, t2); in gen_arith()
1659 gen_store_gpr(t0, rd); in gen_arith()
1660 tcg_temp_free(t0); in gen_arith()
1678 TCGv t0 = tcg_temp_local_new(); in gen_arith() local
1685 tcg_gen_sub_tl(t0, t1, t2); in gen_arith()
1687 tcg_gen_xor_tl(t1, t0, t1); in gen_arith()
1695 gen_store_gpr(t0, rd); in gen_arith()
1696 tcg_temp_free(t0); in gen_arith()
1827 TCGv t0, t1; in gen_slt() local
1835 t0 = tcg_temp_new(); in gen_slt()
1837 gen_load_gpr(t0, rs); in gen_slt()
1841 gen_op_lt(cpu_gpr[rd], t0, t1); in gen_slt()
1845 gen_op_ltu(cpu_gpr[rd], t0, t1); in gen_slt()
1850 tcg_temp_free(t0); in gen_slt()
1859 TCGv t0, t1; in gen_shift() local
1868 t0 = tcg_temp_new(); in gen_shift()
1870 gen_load_gpr(t0, rs); in gen_shift()
1874 tcg_gen_andi_tl(t0, t0, 0x1f); in gen_shift()
1875 tcg_gen_shl_tl(t0, t1, t0); in gen_shift()
1876 tcg_gen_ext32s_tl(cpu_gpr[rd], t0); in gen_shift()
1881 tcg_gen_andi_tl(t0, t0, 0x1f); in gen_shift()
1882 tcg_gen_sar_tl(cpu_gpr[rd], t1, t0); in gen_shift()
1889 tcg_gen_andi_tl(t0, t0, 0x1f); in gen_shift()
1890 tcg_gen_shr_tl(t0, t1, t0); in gen_shift()
1891 tcg_gen_ext32s_tl(cpu_gpr[rd], t0); in gen_shift()
1900 tcg_gen_trunc_tl_i32(t2, t0); in gen_shift()
1910 tcg_gen_andi_tl(t0, t0, 0x1f); in gen_shift()
1911 tcg_gen_shr_tl(t0, t1, t0); in gen_shift()
1912 tcg_gen_ext32s_tl(cpu_gpr[rd], t0); in gen_shift()
1924 tcg_gen_andi_tl(t0, t0, 0x3f); in gen_shift()
1925 tcg_gen_shl_tl(cpu_gpr[rd], t1, t0); in gen_shift()
1929 tcg_gen_andi_tl(t0, t0, 0x3f); in gen_shift()
1930 tcg_gen_sar_tl(cpu_gpr[rd], t1, t0); in gen_shift()
1936 tcg_gen_andi_tl(t0, t0, 0x3f); in gen_shift()
1937 tcg_gen_shr_tl(cpu_gpr[rd], t1, t0); in gen_shift()
1943 tcg_gen_andi_tl(t0, t0, 0x3f); in gen_shift()
1944 tcg_gen_rotr_tl(cpu_gpr[rd], t1, t0); in gen_shift()
1947 tcg_gen_andi_tl(t0, t0, 0x3f); in gen_shift()
1948 tcg_gen_shr_tl(t0, t1, t0); in gen_shift()
1961 tcg_temp_free(t0); in gen_shift()
2006 TCGv t0, t1; in gen_muldiv() local
2015 t0 = tcg_temp_local_new(); in gen_muldiv()
2019 t0 = tcg_temp_new(); in gen_muldiv()
2024 gen_load_gpr(t0, rs); in gen_muldiv()
2032 tcg_gen_ext32s_tl(t0, t0); in gen_muldiv()
2035 tcg_gen_brcondi_tl(TCG_COND_NE, t0, INT_MIN, l2); in gen_muldiv()
2038 tcg_gen_mov_tl(cpu_LO[0], t0); in gen_muldiv()
2042 tcg_gen_div_tl(cpu_LO[0], t0, t1); in gen_muldiv()
2043 tcg_gen_rem_tl(cpu_HI[0], t0, t1); in gen_muldiv()
2054 tcg_gen_ext32u_tl(t0, t0); in gen_muldiv()
2057 tcg_gen_divu_tl(cpu_LO[0], t0, t1); in gen_muldiv()
2058 tcg_gen_remu_tl(cpu_HI[0], t0, t1); in gen_muldiv()
2070 tcg_gen_ext_tl_i64(t2, t0); in gen_muldiv()
2074 tcg_gen_trunc_i64_tl(t0, t2); in gen_muldiv()
2078 tcg_gen_ext32s_tl(cpu_LO[0], t0); in gen_muldiv()
2088 tcg_gen_ext32u_tl(t0, t0); in gen_muldiv()
2090 tcg_gen_extu_tl_i64(t2, t0); in gen_muldiv()
2094 tcg_gen_trunc_i64_tl(t0, t2); in gen_muldiv()
2098 tcg_gen_ext32s_tl(cpu_LO[0], t0); in gen_muldiv()
2110 tcg_gen_brcondi_tl(TCG_COND_NE, t0, -1LL << 63, l2); in gen_muldiv()
2112 tcg_gen_mov_tl(cpu_LO[0], t0); in gen_muldiv()
2116 tcg_gen_div_i64(cpu_LO[0], t0, t1); in gen_muldiv()
2117 tcg_gen_rem_i64(cpu_HI[0], t0, t1); in gen_muldiv()
2127 tcg_gen_divu_i64(cpu_LO[0], t0, t1); in gen_muldiv()
2128 tcg_gen_remu_i64(cpu_HI[0], t0, t1); in gen_muldiv()
2134 gen_helper_dmult(t0, t1); in gen_muldiv()
2138 gen_helper_dmultu(t0, t1); in gen_muldiv()
2147 tcg_gen_ext_tl_i64(t2, t0); in gen_muldiv()
2153 tcg_gen_trunc_i64_tl(t0, t2); in gen_muldiv()
2157 tcg_gen_ext32s_tl(cpu_LO[0], t0); in gen_muldiv()
2167 tcg_gen_ext32u_tl(t0, t0); in gen_muldiv()
2169 tcg_gen_extu_tl_i64(t2, t0); in gen_muldiv()
2175 tcg_gen_trunc_i64_tl(t0, t2); in gen_muldiv()
2179 tcg_gen_ext32s_tl(cpu_LO[0], t0); in gen_muldiv()
2189 tcg_gen_ext_tl_i64(t2, t0); in gen_muldiv()
2195 tcg_gen_trunc_i64_tl(t0, t2); in gen_muldiv()
2199 tcg_gen_ext32s_tl(cpu_LO[0], t0); in gen_muldiv()
2209 tcg_gen_ext32u_tl(t0, t0); in gen_muldiv()
2211 tcg_gen_extu_tl_i64(t2, t0); in gen_muldiv()
2217 tcg_gen_trunc_i64_tl(t0, t2); in gen_muldiv()
2221 tcg_gen_ext32s_tl(cpu_LO[0], t0); in gen_muldiv()
2233 tcg_temp_free(t0); in gen_muldiv()
2241 TCGv t0 = tcg_temp_new(); in gen_mul_vr54xx() local
2244 gen_load_gpr(t0, rs); in gen_mul_vr54xx()
2249 gen_helper_muls(t0, t0, t1); in gen_mul_vr54xx()
2253 gen_helper_mulsu(t0, t0, t1); in gen_mul_vr54xx()
2257 gen_helper_macc(t0, t0, t1); in gen_mul_vr54xx()
2261 gen_helper_maccu(t0, t0, t1); in gen_mul_vr54xx()
2265 gen_helper_msac(t0, t0, t1); in gen_mul_vr54xx()
2269 gen_helper_msacu(t0, t0, t1); in gen_mul_vr54xx()
2273 gen_helper_mulhi(t0, t0, t1); in gen_mul_vr54xx()
2277 gen_helper_mulhiu(t0, t0, t1); in gen_mul_vr54xx()
2281 gen_helper_mulshi(t0, t0, t1); in gen_mul_vr54xx()
2285 gen_helper_mulshiu(t0, t0, t1); in gen_mul_vr54xx()
2289 gen_helper_macchi(t0, t0, t1); in gen_mul_vr54xx()
2293 gen_helper_macchiu(t0, t0, t1); in gen_mul_vr54xx()
2297 gen_helper_msachi(t0, t0, t1); in gen_mul_vr54xx()
2301 gen_helper_msachiu(t0, t0, t1); in gen_mul_vr54xx()
2309 gen_store_gpr(t0, rd); in gen_mul_vr54xx()
2313 tcg_temp_free(t0); in gen_mul_vr54xx()
2321 TCGv t0; in gen_cl() local
2328 t0 = tcg_temp_new(); in gen_cl()
2329 gen_load_gpr(t0, rs); in gen_cl()
2332 gen_helper_clo(cpu_gpr[rd], t0); in gen_cl()
2336 gen_helper_clz(cpu_gpr[rd], t0); in gen_cl()
2341 gen_helper_dclo(cpu_gpr[rd], t0); in gen_cl()
2345 gen_helper_dclz(cpu_gpr[rd], t0); in gen_cl()
2351 tcg_temp_free(t0); in gen_cl()
2359 TCGv t0 = tcg_temp_new(); in gen_trap() local
2373 gen_load_gpr(t0, rs); in gen_trap()
2386 gen_load_gpr(t0, rs); in gen_trap()
2418 tcg_gen_brcond_tl(TCG_COND_NE, t0, t1, l1); in gen_trap()
2422 tcg_gen_brcond_tl(TCG_COND_LT, t0, t1, l1); in gen_trap()
2426 tcg_gen_brcond_tl(TCG_COND_LTU, t0, t1, l1); in gen_trap()
2430 tcg_gen_brcond_tl(TCG_COND_GE, t0, t1, l1); in gen_trap()
2434 tcg_gen_brcond_tl(TCG_COND_GEU, t0, t1, l1); in gen_trap()
2438 tcg_gen_brcond_tl(TCG_COND_EQ, t0, t1, l1); in gen_trap()
2444 tcg_temp_free(t0); in gen_trap()
2474 TCGv t0 = tcg_temp_new(); in gen_compute_branch() local
2493 gen_load_gpr(t0, rs); in gen_compute_branch()
2513 gen_load_gpr(t0, rs); in gen_compute_branch()
2609 gen_op_eq(bcond, t0, t1); in gen_compute_branch()
2614 gen_op_eq(bcond, t0, t1); in gen_compute_branch()
2619 gen_op_ne(bcond, t0, t1); in gen_compute_branch()
2624 gen_op_ne(bcond, t0, t1); in gen_compute_branch()
2629 gen_op_gez(bcond, t0); in gen_compute_branch()
2633 gen_op_gez(bcond, t0); in gen_compute_branch()
2637 gen_op_gez(bcond, t0); in gen_compute_branch()
2642 gen_op_gez(bcond, t0); in gen_compute_branch()
2647 gen_op_gtz(bcond, t0); in gen_compute_branch()
2651 gen_op_gtz(bcond, t0); in gen_compute_branch()
2655 gen_op_lez(bcond, t0); in gen_compute_branch()
2659 gen_op_lez(bcond, t0); in gen_compute_branch()
2663 gen_op_ltz(bcond, t0); in gen_compute_branch()
2667 gen_op_ltz(bcond, t0); in gen_compute_branch()
2671 gen_op_ltz(bcond, t0); in gen_compute_branch()
2678 gen_op_ltz(bcond, t0); in gen_compute_branch()
2699 tcg_temp_free(t0); in gen_compute_branch()
2707 TCGv t0 = tcg_temp_new(); in gen_bitops() local
2716 tcg_gen_shri_tl(t0, t1, lsb); in gen_bitops()
2718 tcg_gen_andi_tl(t0, t0, (1 << (msb + 1)) - 1); in gen_bitops()
2720 tcg_gen_ext32s_tl(t0, t0); in gen_bitops()
2725 tcg_gen_shri_tl(t0, t1, lsb); in gen_bitops()
2727 tcg_gen_andi_tl(t0, t0, (1ULL << (msb + 1 + 32)) - 1); in gen_bitops()
2731 tcg_gen_shri_tl(t0, t1, lsb + 32); in gen_bitops()
2732 tcg_gen_andi_tl(t0, t0, (1ULL << (msb + 1)) - 1); in gen_bitops()
2735 tcg_gen_shri_tl(t0, t1, lsb); in gen_bitops()
2736 tcg_gen_andi_tl(t0, t0, (1ULL << (msb + 1)) - 1); in gen_bitops()
2743 gen_load_gpr(t0, rt); in gen_bitops()
2744 tcg_gen_andi_tl(t0, t0, ~mask); in gen_bitops()
2747 tcg_gen_or_tl(t0, t0, t1); in gen_bitops()
2748 tcg_gen_ext32s_tl(t0, t0); in gen_bitops()
2755 gen_load_gpr(t0, rt); in gen_bitops()
2756 tcg_gen_andi_tl(t0, t0, ~mask); in gen_bitops()
2759 tcg_gen_or_tl(t0, t0, t1); in gen_bitops()
2765 gen_load_gpr(t0, rt); in gen_bitops()
2766 tcg_gen_andi_tl(t0, t0, ~mask); in gen_bitops()
2769 tcg_gen_or_tl(t0, t0, t1); in gen_bitops()
2774 gen_load_gpr(t0, rt); in gen_bitops()
2776 gen_load_gpr(t0, rt); in gen_bitops()
2777 tcg_gen_andi_tl(t0, t0, ~mask); in gen_bitops()
2780 tcg_gen_or_tl(t0, t0, t1); in gen_bitops()
2787 tcg_temp_free(t0); in gen_bitops()
2791 gen_store_gpr(t0, rt); in gen_bitops()
2792 tcg_temp_free(t0); in gen_bitops()
2798 TCGv t0; in gen_bshfl() local
2806 t0 = tcg_temp_new(); in gen_bshfl()
2807 gen_load_gpr(t0, rt); in gen_bshfl()
2813 tcg_gen_shri_tl(t1, t0, 8); in gen_bshfl()
2815 tcg_gen_shli_tl(t0, t0, 8); in gen_bshfl()
2816 tcg_gen_andi_tl(t0, t0, ~0x00FF00FF); in gen_bshfl()
2817 tcg_gen_or_tl(t0, t0, t1); in gen_bshfl()
2819 tcg_gen_ext32s_tl(cpu_gpr[rd], t0); in gen_bshfl()
2823 tcg_gen_ext8s_tl(cpu_gpr[rd], t0); in gen_bshfl()
2826 tcg_gen_ext16s_tl(cpu_gpr[rd], t0); in gen_bshfl()
2833 tcg_gen_shri_tl(t1, t0, 8); in gen_bshfl()
2835 tcg_gen_shli_tl(t0, t0, 8); in gen_bshfl()
2836 tcg_gen_andi_tl(t0, t0, ~0x00FF00FF00FF00FFULL); in gen_bshfl()
2837 tcg_gen_or_tl(cpu_gpr[rd], t0, t1); in gen_bshfl()
2845 tcg_gen_shri_tl(t1, t0, 16); in gen_bshfl()
2847 tcg_gen_shli_tl(t0, t0, 16); in gen_bshfl()
2848 tcg_gen_andi_tl(t0, t0, ~0x0000FFFF0000FFFFULL); in gen_bshfl()
2849 tcg_gen_or_tl(t0, t0, t1); in gen_bshfl()
2850 tcg_gen_shri_tl(t1, t0, 32); in gen_bshfl()
2851 tcg_gen_shli_tl(t0, t0, 32); in gen_bshfl()
2852 tcg_gen_or_tl(cpu_gpr[rd], t0, t1); in gen_bshfl()
2860 tcg_temp_free(t0); in gen_bshfl()
2863 tcg_temp_free(t0); in gen_bshfl()
2870 TCGv_i32 t0 = tcg_temp_new_i32(); in gen_mfc0_load32() local
2872 tcg_gen_ld_i32(t0, cpu_env, off); in gen_mfc0_load32()
2873 tcg_gen_ext_i32_tl(arg, t0); in gen_mfc0_load32()
2874 tcg_temp_free_i32(t0); in gen_mfc0_load32()
2885 TCGv_i32 t0 = tcg_temp_new_i32(); in gen_mtc0_store32() local
2887 tcg_gen_trunc_tl_i32(t0, arg); in gen_mtc0_store32()
2888 tcg_gen_st_i32(t0, cpu_env, off); in gen_mtc0_store32()
2889 tcg_temp_free_i32(t0); in gen_mtc0_store32()
5228 TCGv t0 = tcg_temp_local_new(); in gen_mftr() local
5233 tcg_gen_movi_tl(t0, -1); in gen_mftr()
5236 tcg_gen_movi_tl(t0, -1); in gen_mftr()
5242 gen_helper_mftc0_tcstatus(t0); in gen_mftr()
5245 gen_helper_mftc0_tcbind(t0); in gen_mftr()
5248 gen_helper_mftc0_tcrestart(t0); in gen_mftr()
5251 gen_helper_mftc0_tchalt(t0); in gen_mftr()
5254 gen_helper_mftc0_tccontext(t0); in gen_mftr()
5257 gen_helper_mftc0_tcschedule(t0); in gen_mftr()
5260 gen_helper_mftc0_tcschefback(t0); in gen_mftr()
5263 gen_mfc0(env, ctx, t0, rt, sel); in gen_mftr()
5270 gen_helper_mftc0_entryhi(t0); in gen_mftr()
5273 gen_mfc0(env, ctx, t0, rt, sel); in gen_mftr()
5279 gen_helper_mftc0_status(t0); in gen_mftr()
5282 gen_mfc0(env, ctx, t0, rt, sel); in gen_mftr()
5288 gen_helper_mftc0_debug(t0); in gen_mftr()
5291 gen_mfc0(env, ctx, t0, rt, sel); in gen_mftr()
5296 gen_mfc0(env, ctx, t0, rt, sel); in gen_mftr()
5301 gen_helper_1i(mftgpr, t0, rt); in gen_mftr()
5307 gen_helper_1i(mftlo, t0, 0); in gen_mftr()
5310 gen_helper_1i(mfthi, t0, 0); in gen_mftr()
5313 gen_helper_1i(mftacx, t0, 0); in gen_mftr()
5316 gen_helper_1i(mftlo, t0, 1); in gen_mftr()
5319 gen_helper_1i(mfthi, t0, 1); in gen_mftr()
5322 gen_helper_1i(mftacx, t0, 1); in gen_mftr()
5325 gen_helper_1i(mftlo, t0, 2); in gen_mftr()
5328 gen_helper_1i(mfthi, t0, 2); in gen_mftr()
5331 gen_helper_1i(mftacx, t0, 2); in gen_mftr()
5334 gen_helper_1i(mftlo, t0, 3); in gen_mftr()
5337 gen_helper_1i(mfthi, t0, 3); in gen_mftr()
5340 gen_helper_1i(mftacx, t0, 3); in gen_mftr()
5343 gen_helper_mftdsp(t0); in gen_mftr()
5356 tcg_gen_ext_i32_tl(t0, fp0); in gen_mftr()
5362 tcg_gen_ext_i32_tl(t0, fp0); in gen_mftr()
5368 gen_helper_1i(cfc1, t0, rt); in gen_mftr()
5378 gen_store_gpr(t0, rd); in gen_mftr()
5379 tcg_temp_free(t0); in gen_mftr()
5383 tcg_temp_free(t0); in gen_mftr()
5392 TCGv t0 = tcg_temp_local_new(); in gen_mttr() local
5394 gen_load_gpr(t0, rt); in gen_mttr()
5407 gen_helper_mttc0_tcstatus(t0); in gen_mttr()
5410 gen_helper_mttc0_tcbind(t0); in gen_mttr()
5413 gen_helper_mttc0_tcrestart(t0); in gen_mttr()
5416 gen_helper_mttc0_tchalt(t0); in gen_mttr()
5419 gen_helper_mttc0_tccontext(t0); in gen_mttr()
5422 gen_helper_mttc0_tcschedule(t0); in gen_mttr()
5425 gen_helper_mttc0_tcschefback(t0); in gen_mttr()
5428 gen_mtc0(env, ctx, t0, rd, sel); in gen_mttr()
5435 gen_helper_mttc0_entryhi(t0); in gen_mttr()
5438 gen_mtc0(env, ctx, t0, rd, sel); in gen_mttr()
5444 gen_helper_mttc0_status(t0); in gen_mttr()
5447 gen_mtc0(env, ctx, t0, rd, sel); in gen_mttr()
5453 gen_helper_mttc0_debug(t0); in gen_mttr()
5456 gen_mtc0(env, ctx, t0, rd, sel); in gen_mttr()
5461 gen_mtc0(env, ctx, t0, rd, sel); in gen_mttr()
5466 gen_helper_1i(mttgpr, t0, rd); in gen_mttr()
5472 gen_helper_1i(mttlo, t0, 0); in gen_mttr()
5475 gen_helper_1i(mtthi, t0, 0); in gen_mttr()
5478 gen_helper_1i(mttacx, t0, 0); in gen_mttr()
5481 gen_helper_1i(mttlo, t0, 1); in gen_mttr()
5484 gen_helper_1i(mtthi, t0, 1); in gen_mttr()
5487 gen_helper_1i(mttacx, t0, 1); in gen_mttr()
5490 gen_helper_1i(mttlo, t0, 2); in gen_mttr()
5493 gen_helper_1i(mtthi, t0, 2); in gen_mttr()
5496 gen_helper_1i(mttacx, t0, 2); in gen_mttr()
5499 gen_helper_1i(mttlo, t0, 3); in gen_mttr()
5502 gen_helper_1i(mtthi, t0, 3); in gen_mttr()
5505 gen_helper_1i(mttacx, t0, 3); in gen_mttr()
5508 gen_helper_mttdsp(t0); in gen_mttr()
5520 tcg_gen_trunc_tl_i32(fp0, t0); in gen_mttr()
5526 tcg_gen_trunc_tl_i32(fp0, t0); in gen_mttr()
5533 gen_helper_1i(ctc1, t0, rd); in gen_mttr()
5543 tcg_temp_free(t0); in gen_mttr()
5547 tcg_temp_free(t0); in gen_mttr()
5567 TCGv t0 = tcg_temp_new(); in gen_cp0() local
5569 gen_load_gpr(t0, rt); in gen_cp0()
5570 gen_mtc0(env, ctx, t0, rd, ctx->opcode & 0x7); in gen_cp0()
5571 tcg_temp_free(t0); in gen_cp0()
5588 TCGv t0 = tcg_temp_new(); in gen_cp0() local
5590 gen_load_gpr(t0, rt); in gen_cp0()
5591 gen_dmtc0(env, ctx, t0, rd, ctx->opcode & 0x7); in gen_cp0()
5592 tcg_temp_free(t0); in gen_cp0()
5680 TCGv_i32 t0 = tcg_temp_new_i32(); in gen_compute_branch1() local
5689 tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); in gen_compute_branch1()
5690 tcg_gen_not_i32(t0, t0); in gen_compute_branch1()
5691 tcg_gen_andi_i32(t0, t0, 1); in gen_compute_branch1()
5692 tcg_gen_extu_i32_tl(bcond, t0); in gen_compute_branch1()
5696 tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); in gen_compute_branch1()
5697 tcg_gen_not_i32(t0, t0); in gen_compute_branch1()
5698 tcg_gen_andi_i32(t0, t0, 1); in gen_compute_branch1()
5699 tcg_gen_extu_i32_tl(bcond, t0); in gen_compute_branch1()
5703 tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); in gen_compute_branch1()
5704 tcg_gen_andi_i32(t0, t0, 1); in gen_compute_branch1()
5705 tcg_gen_extu_i32_tl(bcond, t0); in gen_compute_branch1()
5709 tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); in gen_compute_branch1()
5710 tcg_gen_andi_i32(t0, t0, 1); in gen_compute_branch1()
5711 tcg_gen_extu_i32_tl(bcond, t0); in gen_compute_branch1()
5719 tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); in gen_compute_branch1()
5721 tcg_gen_or_i32(t0, t0, t1); in gen_compute_branch1()
5723 tcg_gen_not_i32(t0, t0); in gen_compute_branch1()
5724 tcg_gen_andi_i32(t0, t0, 1); in gen_compute_branch1()
5725 tcg_gen_extu_i32_tl(bcond, t0); in gen_compute_branch1()
5732 tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); in gen_compute_branch1()
5734 tcg_gen_or_i32(t0, t0, t1); in gen_compute_branch1()
5736 tcg_gen_andi_i32(t0, t0, 1); in gen_compute_branch1()
5737 tcg_gen_extu_i32_tl(bcond, t0); in gen_compute_branch1()
5744 tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); in gen_compute_branch1()
5746 tcg_gen_or_i32(t0, t0, t1); in gen_compute_branch1()
5748 tcg_gen_or_i32(t0, t0, t1); in gen_compute_branch1()
5750 tcg_gen_or_i32(t0, t0, t1); in gen_compute_branch1()
5752 tcg_gen_not_i32(t0, t0); in gen_compute_branch1()
5753 tcg_gen_andi_i32(t0, t0, 1); in gen_compute_branch1()
5754 tcg_gen_extu_i32_tl(bcond, t0); in gen_compute_branch1()
5761 tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); in gen_compute_branch1()
5763 tcg_gen_or_i32(t0, t0, t1); in gen_compute_branch1()
5765 tcg_gen_or_i32(t0, t0, t1); in gen_compute_branch1()
5767 tcg_gen_or_i32(t0, t0, t1); in gen_compute_branch1()
5769 tcg_gen_andi_i32(t0, t0, 1); in gen_compute_branch1()
5770 tcg_gen_extu_i32_tl(bcond, t0); in gen_compute_branch1()
5786 tcg_temp_free_i32(t0); in gen_compute_branch1()
5796 TCGv t0 = tcg_temp_new(); in gen_cp1() local
5804 tcg_gen_ext_i32_tl(t0, fp0); in gen_cp1()
5807 gen_store_gpr(t0, rt); in gen_cp1()
5811 gen_load_gpr(t0, rt); in gen_cp1()
5815 tcg_gen_trunc_tl_i32(fp0, t0); in gen_cp1()
5822 gen_helper_1i(cfc1, t0, fs); in gen_cp1()
5823 gen_store_gpr(t0, rt); in gen_cp1()
5827 gen_load_gpr(t0, rt); in gen_cp1()
5828 gen_helper_1i(ctc1, t0, fs); in gen_cp1()
5833 gen_load_fpr64(ctx, t0, fs); in gen_cp1()
5834 gen_store_gpr(t0, rt); in gen_cp1()
5838 gen_load_gpr(t0, rt); in gen_cp1()
5839 gen_store_fpr64(ctx, t0, fs); in gen_cp1()
5848 tcg_gen_ext_i32_tl(t0, fp0); in gen_cp1()
5851 gen_store_gpr(t0, rt); in gen_cp1()
5855 gen_load_gpr(t0, rt); in gen_cp1()
5859 tcg_gen_trunc_tl_i32(fp0, t0); in gen_cp1()
5873 tcg_temp_free(t0); in gen_cp1()
5880 TCGv_i32 t0; in gen_movci() local
5893 t0 = tcg_temp_new_i32(); in gen_movci()
5894 tcg_gen_andi_i32(t0, fpu_fcr31, 1 << get_fp_bit(cc)); in gen_movci()
5895 tcg_gen_brcondi_i32(cond, t0, 0, l1); in gen_movci()
5896 tcg_temp_free_i32(t0); in gen_movci()
5908 TCGv_i32 t0 = tcg_temp_new_i32(); in gen_movcf_s() local
5916 tcg_gen_andi_i32(t0, fpu_fcr31, 1 << get_fp_bit(cc)); in gen_movcf_s()
5917 tcg_gen_brcondi_i32(cond, t0, 0, l1); in gen_movcf_s()
5918 gen_load_fpr32(t0, fs); in gen_movcf_s()
5919 gen_store_fpr32(t0, fd); in gen_movcf_s()
5921 tcg_temp_free_i32(t0); in gen_movcf_s()
5927 TCGv_i32 t0 = tcg_temp_new_i32(); in gen_movcf_d() local
5936 tcg_gen_andi_i32(t0, fpu_fcr31, 1 << get_fp_bit(cc)); in gen_movcf_d()
5937 tcg_gen_brcondi_i32(cond, t0, 0, l1); in gen_movcf_d()
5938 tcg_temp_free_i32(t0); in gen_movcf_d()
5949 TCGv_i32 t0 = tcg_temp_new_i32(); in gen_movcf_ps() local
5958 tcg_gen_andi_i32(t0, fpu_fcr31, 1 << get_fp_bit(cc)); in gen_movcf_ps()
5959 tcg_gen_brcondi_i32(cond, t0, 0, l1); in gen_movcf_ps()
5960 gen_load_fpr32(t0, fs); in gen_movcf_ps()
5961 gen_store_fpr32(t0, fd); in gen_movcf_ps()
5964 tcg_gen_andi_i32(t0, fpu_fcr31, 1 << get_fp_bit(cc+1)); in gen_movcf_ps()
5965 tcg_gen_brcondi_i32(cond, t0, 0, l2); in gen_movcf_ps()
5966 gen_load_fpr32h(t0, fs); in gen_movcf_ps()
5967 gen_store_fpr32h(t0, fd); in gen_movcf_ps()
5968 tcg_temp_free_i32(t0); in gen_movcf_ps()
7248 TCGv t0 = tcg_temp_new(); in gen_flt3_ldst() local
7251 gen_load_gpr(t0, index); in gen_flt3_ldst()
7253 gen_load_gpr(t0, base); in gen_flt3_ldst()
7255 gen_load_gpr(t0, index); in gen_flt3_ldst()
7256 gen_op_addr_add(ctx, t0, cpu_gpr[base], t0); in gen_flt3_ldst()
7267 tcg_gen_qemu_ld32s(t0, t0, ctx->mem_idx); in gen_flt3_ldst()
7268 tcg_gen_trunc_tl_i32(fp0, t0); in gen_flt3_ldst()
7280 tcg_gen_qemu_ld64(fp0, t0, ctx->mem_idx); in gen_flt3_ldst()
7288 tcg_gen_andi_tl(t0, t0, ~0x7); in gen_flt3_ldst()
7292 tcg_gen_qemu_ld64(fp0, t0, ctx->mem_idx); in gen_flt3_ldst()
7306 tcg_gen_qemu_st32(t1, t0, ctx->mem_idx); in gen_flt3_ldst()
7320 tcg_gen_qemu_st64(fp0, t0, ctx->mem_idx); in gen_flt3_ldst()
7328 tcg_gen_andi_tl(t0, t0, ~0x7); in gen_flt3_ldst()
7333 tcg_gen_qemu_st64(fp0, t0, ctx->mem_idx); in gen_flt3_ldst()
7340 tcg_temp_free(t0); in gen_flt3_ldst()
7354 TCGv t0 = tcg_temp_local_new(); in gen_flt3_arith() local
7360 gen_load_gpr(t0, fr); in gen_flt3_arith()
7361 tcg_gen_andi_tl(t0, t0, 0x7); in gen_flt3_arith()
7363 tcg_gen_brcondi_tl(TCG_COND_NE, t0, 0, l1); in gen_flt3_arith()
7370 tcg_gen_brcondi_tl(TCG_COND_NE, t0, 4, l2); in gen_flt3_arith()
7371 tcg_temp_free(t0); in gen_flt3_arith()
7851 TCGv t0 = tcg_temp_new(); in decode_opc() local
7856 gen_helper_rdhwr_cpunum(t0); in decode_opc()
7857 gen_store_gpr(t0, rt); in decode_opc()
7861 gen_helper_rdhwr_synci_step(t0); in decode_opc()
7862 gen_store_gpr(t0, rt); in decode_opc()
7866 gen_helper_rdhwr_cc(t0); in decode_opc()
7867 gen_store_gpr(t0, rt); in decode_opc()
7871 gen_helper_rdhwr_ccres(t0); in decode_opc()
7872 gen_store_gpr(t0, rt); in decode_opc()
7876 tcg_gen_ld_tl(t0, cpu_env, offsetof(CPUState, tls_value)); in decode_opc()
7877 gen_store_gpr(t0, rt); in decode_opc()
7888 tcg_temp_free(t0); in decode_opc()
7894 TCGv t0 = tcg_temp_new(); in decode_opc() local
7897 gen_load_gpr(t0, rt); in decode_opc()
7899 gen_helper_fork(t0, t1); in decode_opc()
7900 tcg_temp_free(t0); in decode_opc()
7907 TCGv t0 = tcg_temp_new(); in decode_opc() local
7910 gen_load_gpr(t0, rs); in decode_opc()
7911 gen_helper_yield(t0, t0); in decode_opc()
7912 gen_store_gpr(t0, rd); in decode_opc()
7913 tcg_temp_free(t0); in decode_opc()
7981 TCGv t0 = tcg_temp_new(); in decode_opc() local
7987 gen_helper_dmt(t0, t0); in decode_opc()
7988 gen_store_gpr(t0, rt); in decode_opc()
7992 gen_helper_emt(t0, t0); in decode_opc()
7993 gen_store_gpr(t0, rt); in decode_opc()
7997 gen_helper_dvpe(t0, t0); in decode_opc()
7998 gen_store_gpr(t0, rt); in decode_opc()
8002 gen_helper_evpe(t0, t0); in decode_opc()
8003 gen_store_gpr(t0, rt); in decode_opc()
8008 gen_helper_di(t0); in decode_opc()
8009 gen_store_gpr(t0, rt); in decode_opc()
8016 gen_helper_ei(t0); in decode_opc()
8017 gen_store_gpr(t0, rt); in decode_opc()
8026 tcg_temp_free(t0); in decode_opc()