Lines Matching defs:t0
341 static inline void gen_op_mov_reg_v(int ot, int reg, TCGv t0)
348 tcg_gen_ext8u_tl(tmp, t0);
361 tcg_gen_ext16u_tl(tmp, t0);
370 tcg_gen_ext32u_tl(cpu_regs[reg], t0);
374 tcg_gen_mov_tl(cpu_regs[reg], t0);
416 static inline void gen_op_mov_v_reg(int ot, TCGv t0, int reg)
423 tcg_gen_shri_tl(t0, cpu_regs[reg - 4], 8);
424 tcg_gen_ext8u_tl(t0, t0);
429 tcg_gen_mov_tl(t0, cpu_regs[reg]);
549 TCGv t0;
552 t0 = tcg_temp_local_new(TCG_TYPE_TL);
553 tcg_gen_movi_tl(t0, reg);
554 tcg_gen_helper_0_1(helper_sync_seg, t0);
555 tcg_temp_free(t0);
559 TCGv t0, a0;
574 t0 = tcg_temp_local_new(TCG_TYPE_TL);
576 tcg_gen_ld32u_tl(t0, cpu_env, offsetof(CPUState, segs[reg].newselector) + REG_L_OFFSET);
577 tcg_gen_brcondi_i32(TCG_COND_EQ, t0, 0, skip_label);
578 tcg_gen_ld32u_tl(t0, cpu_env, offsetof(CPUState, eflags) + REG_L_OFFSET);
579 tcg_gen_andi_tl(t0, t0, VM_MASK);
580 tcg_gen_brcondi_i32(TCG_COND_NE, t0, 0, skip_label);
581 tcg_gen_movi_tl(t0, reg);
583 tcg_gen_helper_0_1(helper_sync_seg, t0);
585 tcg_temp_free(t0);
667 static inline void gen_op_ld_v(int idx, TCGv t0, TCGv a0)
672 tcg_gen_qemu_ld8u(t0, a0, mem_index);
675 tcg_gen_qemu_ld16u(t0, a0, mem_index);
678 tcg_gen_qemu_ld32u(t0, a0, mem_index);
684 tcg_gen_qemu_ld64(t0, a0, mem_index);
706 static inline void gen_op_st_v(int idx, TCGv t0, TCGv a0)
711 tcg_gen_qemu_st8(t0, a0, mem_index);
714 tcg_gen_qemu_st16(t0, a0, mem_index);
717 tcg_gen_qemu_st32(t0, a0, mem_index);
723 tcg_gen_qemu_st64(t0, a0, mem_index);
749 TCGv t0;
752 t0 = tcg_temp_local_new(TCG_TYPE_TL);
753 /* t0 = cpu_tmp0; */
755 tcg_gen_ld32u_tl(t0, cpu_env, offsetof(CPUState, interrupt_request));
757 tcg_gen_andi_tl(t0, t0,
763 tcg_gen_brcondi_i32(TCG_COND_EQ, t0, 0, skip_label);
764 tcg_temp_free(t0);
1126 TCGv t0;
1145 t0 = cpu_tmp0;
1149 t0 = cpu_tmp0;
1154 t0 = cpu_tmp0;
1158 t0 = cpu_cc_dst;
1161 tcg_gen_brcondi_tl(inv ? TCG_COND_NE : TCG_COND_EQ, t0, 0, l1);
1199 t0 = cpu_tmp0;
1201 tcg_gen_andi_tl(t0, cpu_cc_src, 0xff);
1204 t0 = cpu_tmp0;
1206 tcg_gen_andi_tl(t0, cpu_cc_src, 0xffff);
1210 t0 = cpu_tmp0;
1212 tcg_gen_andi_tl(t0, cpu_cc_src, 0xffffffff);
1216 t0 = cpu_cc_src;
1219 tcg_gen_brcond_tl(cond, cpu_tmp4, t0, l1);
1231 t0 = cpu_tmp0;
1233 tcg_gen_ext8s_tl(t0, cpu_cc_src);
1236 t0 = cpu_tmp0;
1238 tcg_gen_ext16s_tl(t0, cpu_cc_src);
1242 t0 = cpu_tmp0;
1244 tcg_gen_ext32s_tl(t0, cpu_cc_src);
1248 t0 = cpu_cc_src;
1251 tcg_gen_brcond_tl(cond, cpu_tmp4, t0, l1);
1610 TCGv t0, t1;
1653 t0 = tcg_temp_local_new();
1656 tcg_gen_mov_tl(t0, cpu_T[0]);
1663 tcg_gen_mov_tl(cpu_cc_dst, t0);
1672 tcg_temp_free(t0);
1740 TCGv t0, t1, t2, a0;
1743 t0 = tcg_temp_local_new();
1756 gen_op_ld_v(ot + s->mem_index, t0, a0);
1758 gen_op_mov_v_reg(ot, t0, op1);
1775 gen_extu(ot, t0);
1776 tcg_gen_mov_tl(t2, t0);
1782 tcg_gen_shr_tl(cpu_tmp4, t0, cpu_tmp0);
1784 tcg_gen_shl_tl(t0, t0, cpu_tmp0);
1786 tcg_gen_shl_tl(cpu_tmp4, t0, cpu_tmp0);
1788 tcg_gen_shr_tl(t0, t0, cpu_tmp0);
1790 tcg_gen_or_tl(t0, t0, cpu_tmp4);
1795 gen_op_st_v(ot + s->mem_index, t0, a0);
1797 gen_op_mov_reg_v(ot, op1, t0);
1809 tcg_gen_xor_tl(cpu_tmp0, t2, t0);
1814 tcg_gen_shri_tl(t0, t0, data_bits - 1);
1816 tcg_gen_andi_tl(t0, t0, CC_C);
1817 tcg_gen_or_tl(cpu_cc_src, cpu_cc_src, t0);
1825 tcg_temp_free(t0);
1836 TCGv t0, t1, a0;
1839 t0 = tcg_temp_local_new();
1851 gen_op_ld_v(ot + s->mem_index, t0, a0);
1853 gen_op_mov_v_reg(ot, t0, op1);
1856 gen_extu(ot, t0);
1857 tcg_gen_mov_tl(t1, t0);
1864 tcg_gen_shri_tl(cpu_tmp4, t0, shift);
1865 tcg_gen_shli_tl(t0, t0, data_bits - shift);
1868 tcg_gen_shli_tl(cpu_tmp4, t0, shift);
1869 tcg_gen_shri_tl(t0, t0, data_bits - shift);
1871 tcg_gen_or_tl(t0, t0, cpu_tmp4);
1876 gen_op_st_v(ot + s->mem_index, t0, a0);
1878 gen_op_mov_reg_v(ot, op1, t0);
1888 tcg_gen_xor_tl(cpu_tmp0, t1, t0);
1893 tcg_gen_shri_tl(t0, t0, data_bits - 1);
1895 tcg_gen_andi_tl(t0, t0, CC_C);
1896 tcg_gen_or_tl(cpu_cc_src, cpu_cc_src, t0);
1903 tcg_temp_free(t0);
1966 TCGv t0, t1, t2, a0;
1968 t0 = tcg_temp_local_new();
1981 gen_op_ld_v(ot + s->mem_index, t0, a0);
1983 gen_op_mov_v_reg(ot, t0, op1);
2000 tcg_gen_andi_tl(t0, t0, 0xffff);
2002 tcg_gen_or_tl(t0, t0, cpu_tmp0);
2003 tcg_gen_ext32u_tl(t0, t0);
2005 tcg_gen_shr_tl(cpu_tmp4, t0, cpu_tmp5);
2009 tcg_gen_shl_tl(cpu_tmp0, t0, cpu_tmp5);
2011 tcg_gen_shr_tl(t0, t0, t2);
2013 tcg_gen_or_tl(t0, t0, cpu_tmp0);
2016 tcg_gen_andi_tl(t0, t0, 0xffff);
2018 tcg_gen_or_tl(t1, t1, t0);
2021 tcg_gen_shl_tl(cpu_tmp4, t0, cpu_tmp5);
2026 tcg_gen_shl_tl(t0, t0, t2);
2029 tcg_gen_or_tl(t0, t0, t1);
2035 tcg_gen_ext32u_tl(t0, t0);
2037 tcg_gen_shr_tl(cpu_tmp4, t0, cpu_tmp5);
2039 tcg_gen_shr_tl(t0, t0, t2);
2042 tcg_gen_or_tl(t0, t0, t1);
2048 tcg_gen_shl_tl(cpu_tmp4, t0, cpu_tmp5);
2050 tcg_gen_shl_tl(t0, t0, t2);
2053 tcg_gen_or_tl(t0, t0, t1);
2061 gen_op_st_v(ot + s->mem_index, t0, a0);
2063 gen_op_mov_reg_v(ot, op1, t0);
2074 tcg_gen_mov_tl(cpu_cc_dst, t0);
2083 tcg_temp_free(t0);
2527 TCGv t0;
2532 t0 = tcg_temp_local_new();
2533 tcg_gen_movi_tl(t0, 0);
2536 tcg_gen_movi_tl(t0, 1);
2538 tcg_gen_mov_tl(cpu_T[0], t0);
2539 tcg_temp_free(t0);
4786 TCGv_i64 t0, t1;
4787 t0 = tcg_temp_new_i64();
4790 tcg_gen_extu_i32_i64(t0, cpu_T[0]);
4792 tcg_gen_mul_i64(t0, t0, t1);
4793 tcg_gen_trunc_i64_i32(cpu_T[0], t0);
4796 tcg_gen_shri_i64(t0, t0, 32);
4797 tcg_gen_trunc_i64_i32(cpu_T[0], t0);
4855 TCGv_i64 t0, t1;
4856 t0 = tcg_temp_new_i64();
4859 tcg_gen_ext_i32_i64(t0, cpu_T[0]);
4861 tcg_gen_mul_i64(t0, t0, t1);
4862 tcg_gen_trunc_i64_i32(cpu_T[0], t0);
4866 tcg_gen_shri_i64(t0, t0, 32);
4867 tcg_gen_trunc_i64_i32(cpu_T[0], t0);
5153 TCGv_i64 t0, t1;
5154 t0 = tcg_temp_new_i64();
5156 tcg_gen_ext_i32_i64(t0, cpu_T[0]);
5158 tcg_gen_mul_i64(t0, t0, t1);
5159 tcg_gen_trunc_i64_i32(cpu_T[0], t0);
5162 tcg_gen_shri_i64(t0, t0, 32);
5163 tcg_gen_trunc_i64_i32(cpu_T[1], t0);
5210 TCGv t0, t1, t2, a0;
5219 t0 = tcg_temp_local_new();
5226 gen_op_mov_v_reg(ot, t0, rm);
5230 gen_op_ld_v(ot + s->mem_index, t0, a0);
5234 tcg_gen_sub_tl(t2, cpu_regs[R_EAX], t0);
5239 gen_op_mov_reg_v(ot, R_EAX, t0);
5245 tcg_gen_mov_tl(t1, t0);
5246 gen_op_mov_reg_v(ot, R_EAX, t0);
5251 tcg_gen_mov_tl(cpu_cc_src, t0);
5254 tcg_temp_free(t0);
6708 TCGv t0;
6714 t0 = tcg_temp_local_new();
6717 gen_op_ld_v(ot + s->mem_index, t0, cpu_A0);
6720 gen_op_mov_v_reg(ot, t0, rm);
6727 tcg_gen_mov_tl(cpu_regs[reg], t0);
6735 gen_op_mov_reg_v(ot, reg, t0);
6738 tcg_temp_free(t0);
6958 TCGv t0;
6965 t0 = tcg_temp_local_new();
6966 tcg_gen_mov_tl(t0, cpu_T[0]);
6970 case OT_WORD: gen_helper_lzcnt(cpu_T[0], t0,
6972 case OT_LONG: gen_helper_lzcnt(cpu_T[0], t0,
6974 case OT_QUAD: gen_helper_lzcnt(cpu_T[0], t0,
6981 tcg_gen_brcondi_tl(TCG_COND_EQ, t0, 0, label1);
6983 gen_helper_bsr(cpu_T[0], t0);
6985 gen_helper_bsf(cpu_T[0], t0);
6993 tcg_temp_free(t0);
7729 TCGv t0, t1, t2, a0;
7733 t0 = tcg_temp_local_new();
7743 gen_op_ld_v(ot + s->mem_index, t0, cpu_A0);
7747 gen_op_mov_v_reg(ot, t0, rm);
7751 tcg_gen_andi_tl(cpu_tmp0, t0, 3);
7756 tcg_gen_andi_tl(t0, t0, ~3);
7757 tcg_gen_or_tl(t0, t0, t1);
7761 gen_op_st_v(ot + s->mem_index, t0, a0);
7764 gen_op_mov_reg_v(ot, rm, t0);
7772 tcg_temp_free(t0);
7781 TCGv t0;
7788 t0 = tcg_temp_local_new();
7792 gen_helper_lar(t0, cpu_T[0]);
7794 gen_helper_lsl(t0, cpu_T[0]);
7798 gen_op_mov_reg_v(ot, reg, t0);
7801 tcg_temp_free(t0);