Lines Matching refs:t1

443 static void gen_add16(TCGv_i32 dest, TCGv_i32 t0, TCGv_i32 t1)  in gen_add16()  argument
446 tcg_gen_xor_i32(tmp, t0, t1); in gen_add16()
449 tcg_gen_andi_i32(t1, t1, ~0x8000); in gen_add16()
450 tcg_gen_add_i32(t0, t0, t1); in gen_add16()
462 static void gen_add_carry(TCGv_i32 dest, TCGv_i32 t0, TCGv_i32 t1) in gen_add_carry() argument
464 tcg_gen_add_i32(dest, t0, t1); in gen_add_carry()
469 static void gen_sub_carry(TCGv_i32 dest, TCGv_i32 t0, TCGv_i32 t1) in gen_sub_carry() argument
471 tcg_gen_sub_i32(dest, t0, t1); in gen_sub_carry()
477 static void gen_add_CC(TCGv_i32 dest, TCGv_i32 t0, TCGv_i32 t1) in gen_add_CC() argument
481 tcg_gen_add2_i32(cpu_NF, cpu_CF, t0, tmp, t1, tmp); in gen_add_CC()
484 tcg_gen_xor_i32(tmp, t0, t1); in gen_add_CC()
490 static void gen_adc_CC(TCGv_i32 dest, TCGv_i32 t0, TCGv_i32 t1) in gen_adc_CC() argument
496 tcg_gen_add2_i32(cpu_NF, cpu_CF, cpu_NF, cpu_CF, t1, tmp); in gen_adc_CC()
501 tcg_gen_extu_i32_i64(q1, t1); in gen_adc_CC()
509 tcg_gen_xor_i32(tmp, t0, t1); in gen_adc_CC()
515 static void gen_sub_CC(TCGv_i32 dest, TCGv_i32 t0, TCGv_i32 t1) in gen_sub_CC() argument
518 tcg_gen_sub_i32(cpu_NF, t0, t1); in gen_sub_CC()
520 tcg_gen_setcond_i32(TCG_COND_GEU, cpu_CF, t0, t1); in gen_sub_CC()
523 tcg_gen_xor_i32(tmp, t0, t1); in gen_sub_CC()
529 static void gen_sbc_CC(TCGv_i32 dest, TCGv_i32 t0, TCGv_i32 t1) in gen_sbc_CC() argument
532 tcg_gen_not_i32(tmp, t1); in gen_sbc_CC()
537 static void gen_##name(TCGv_i32 dest, TCGv_i32 t0, TCGv_i32 t1) \
542 tcg_gen_andi_i32(tmp1, t1, 0x1f); \
544 tcg_gen_andi_i32(tmp1, t1, 0xe0); \
551 static void gen_sar(TCGv_i32 dest, TCGv_i32 t0, TCGv_i32 t1) in GEN_SHIFT()
555 tcg_gen_andi_i32(tmp1, t1, 0xff); in GEN_SHIFT()
2603 static inline void gen_mulxy(TCGv_i32 t0, TCGv_i32 t1, int x, int y) in gen_mulxy() argument
2610 tcg_gen_sari_i32(t1, t1, 16); in gen_mulxy()
2612 gen_sxth(t1); in gen_mulxy()
2613 tcg_gen_mul_i32(t0, t0, t1); in gen_mulxy()
3307 TCGv_i32 t0, t1, t2; in gen_store_exclusive() local
3328 t1 = load_reg(s, rt); in gen_store_exclusive()
3345 tcg_gen_concat_i32_i64(n64, t2, t1); in gen_store_exclusive()
3347 tcg_gen_concat_i32_i64(n64, t1, t2); in gen_store_exclusive()
3358 tcg_gen_atomic_cmpxchg_i32(t0, taddr, t2, t1, get_mem_index(s), opc); in gen_store_exclusive()
4217 TCGv_i32 t1, t2; in op_mla() local
4219 t1 = load_reg(s, a->rn); in op_mla()
4221 tcg_gen_mul_i32(t1, t1, t2); in op_mla()
4224 tcg_gen_add_i32(t1, t1, t2); in op_mla()
4227 gen_logic_CC(t1); in op_mla()
4229 store_reg(s, a->rd, t1); in op_mla()
4245 TCGv_i32 t1, t2; in trans_MLS() local
4250 t1 = load_reg(s, a->rn); in trans_MLS()
4252 tcg_gen_mul_i32(t1, t1, t2); in trans_MLS()
4254 tcg_gen_sub_i32(t1, t2, t1); in trans_MLS()
4255 store_reg(s, a->rd, t1); in trans_MLS()
4261 TCGv_i32 t0, t1, t2, t3; in op_mlal() local
4264 t1 = load_reg(s, a->rn); in op_mlal()
4266 tcg_gen_mulu2_i32(t0, t1, t0, t1); in op_mlal()
4268 tcg_gen_muls2_i32(t0, t1, t0, t1); in op_mlal()
4273 tcg_gen_add2_i32(t0, t1, t0, t1, t2, t3); in op_mlal()
4276 gen_logicq_cc(t0, t1); in op_mlal()
4279 store_reg(s, a->rd, t1); in op_mlal()
4305 TCGv_i32 t0, t1, t2, zero; in trans_UMAAL() local
4314 t1 = load_reg(s, a->rn); in trans_UMAAL()
4315 tcg_gen_mulu2_i32(t0, t1, t0, t1); in trans_UMAAL()
4318 tcg_gen_add2_i32(t0, t1, t0, t1, t2, zero); in trans_UMAAL()
4320 tcg_gen_add2_i32(t0, t1, t0, t1, t2, zero); in trans_UMAAL()
4322 store_reg(s, a->rd, t1); in trans_UMAAL()
4332 TCGv_i32 t0, t1; in op_qaddsub() local
4341 t1 = load_reg(s, a->rn); in op_qaddsub()
4343 gen_helper_add_saturate(t1, tcg_env, t1, t1); in op_qaddsub()
4346 gen_helper_add_saturate(t0, tcg_env, t0, t1); in op_qaddsub()
4348 gen_helper_sub_saturate(t0, tcg_env, t0, t1); in op_qaddsub()
4374 TCGv_i32 t0, t1, tl, th; in DO_QADDSUB() local
4383 t1 = load_reg(s, a->rm); in DO_QADDSUB()
4384 gen_mulxy(t0, t1, nt, mt); in DO_QADDSUB()
4391 t1 = load_reg(s, a->ra); in DO_QADDSUB()
4392 gen_helper_add_setq(t0, tcg_env, t0, t1); in DO_QADDSUB()
4399 t1 = tcg_temp_new_i32(); in DO_QADDSUB()
4400 tcg_gen_sari_i32(t1, t0, 31); in DO_QADDSUB()
4401 tcg_gen_add2_i32(tl, th, tl, th, t0, t1); in DO_QADDSUB()
4436 TCGv_i32 t0, t1; in op_smlawx() local
4443 t1 = load_reg(s, a->rm); in op_smlawx()
4449 tcg_gen_andi_i32(t1, t1, 0xffff0000); in op_smlawx()
4451 tcg_gen_shli_i32(t1, t1, 16); in op_smlawx()
4453 tcg_gen_muls2_i32(t0, t1, t0, t1); in op_smlawx()
4456 gen_helper_add_setq(t1, tcg_env, t1, t0); in op_smlawx()
4458 store_reg(s, a->rd, t1); in op_smlawx()
4563 TCGv_i32 t1, t2, t3; in op_crc32() local
4569 t1 = load_reg(s, a->rn); in op_crc32()
4585 gen_helper_crc32c(t1, t1, t2, t3); in op_crc32()
4587 gen_helper_crc32(t1, t1, t2, t3); in op_crc32()
4589 store_reg(s, a->rd, t1); in op_crc32()
5606 TCGv_i32 t1, t2; in trans_USADA8() local
5612 t1 = load_reg(s, a->rn); in trans_USADA8()
5614 gen_helper_usad8(t1, t1, t2); in trans_USADA8()
5617 tcg_gen_add_i32(t1, t1, t2); in trans_USADA8()
5619 store_reg(s, a->rd, t1); in trans_USADA8()
5700 TCGv_i32 t0, t1; in op_par_addsub() local
5709 t1 = load_reg(s, a->rm); in op_par_addsub()
5711 gen(t0, t0, t1); in op_par_addsub()
5721 TCGv_i32 t0, t1; in op_par_addsub_ge() local
5731 t1 = load_reg(s, a->rm); in op_par_addsub_ge()
5735 gen(t0, t0, t1, ge); in op_par_addsub_ge()
5944 TCGv_i32 t1, t2, t3; in trans_SEL() local
5952 t1 = load_reg(s, a->rn); in trans_SEL()
5956 gen_helper_sel_flags(t1, t3, t1, t2); in trans_SEL()
5957 store_reg(s, a->rd, t1); in trans_SEL()
6010 TCGv_i32 t1, t2; in op_smlad() local
6016 t1 = load_reg(s, a->rn); in op_smlad()
6021 gen_smul_dual(t1, t2); in op_smlad()
6029 tcg_gen_sub_i32(t1, t1, t2); in op_smlad()
6033 gen_helper_add_setq(t1, tcg_env, t1, t2); in op_smlad()
6037 gen_helper_add_setq(t1, tcg_env, t1, t2); in op_smlad()
6051 tcg_gen_ext_i32_i64(p64, t1); in op_smlad()
6058 tcg_gen_extr_i64_i32(t1, t2, p64); in op_smlad()
6065 tcg_gen_sari_i32(t3, t1, 31); in op_smlad()
6071 store_reg(s, a->rd, t1); in op_smlad()
6097 TCGv_i32 t1, t2; in op_smlald() local
6104 t1 = load_reg(s, a->rn); in op_smlald()
6109 gen_smul_dual(t1, t2); in op_smlald()
6113 tcg_gen_ext_i32_i64(l1, t1); in op_smlald()
6149 TCGv_i32 t1, t2; in op_smmla() local
6157 t1 = load_reg(s, a->rn); in op_smmla()
6159 tcg_gen_muls2_i32(t2, t1, t1, t2); in op_smmla()
6169 tcg_gen_sub2_i32(t2, t1, tcg_constant_i32(0), t3, t2, t1); in op_smmla()
6171 tcg_gen_add_i32(t1, t1, t3); in op_smmla()
6180 tcg_gen_add_i32(t1, t1, t2); in op_smmla()
6182 store_reg(s, a->rd, t1); in op_smmla()
6208 TCGv_i32 t1, t2; in op_div() local
6216 t1 = load_reg(s, a->rn); in op_div()
6219 gen_helper_udiv(t1, tcg_env, t1, t2); in op_div()
6221 gen_helper_sdiv(t1, tcg_env, t1, t2); in op_div()
6223 store_reg(s, a->rd, t1); in op_div()
6997 TCGv_i32 addr, t1, t2; in trans_RFE() local
7011 t1 = tcg_temp_new_i32(); in trans_RFE()
7012 gen_aa32_ld_i32(s, t1, addr, get_mem_index(s), MO_UL | MO_ALIGN); in trans_RFE()
7022 gen_rfe(s, t1, t2); in trans_RFE()