Commit d1896336032ff066fdb73f1164e4e9814a67700a

Authored by edgar_igl
1 parent bbf662ee

Use tcg_gen_not.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4480 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 4 additions and 4 deletions
target-cris/translate.c
... ... @@ -347,7 +347,7 @@ static void t_gen_lz_i32(TCGv d, TCGv x)
347 347 tcg_gen_shri_i32(y, x, 14);
348 348 /* m = y & ~(y >> 1) */
349 349 tcg_gen_sari_i32(m, y, 1);
350   - tcg_gen_xori_i32(m, m, 0xffffffff);
  350 + tcg_gen_not_i32(m, m);
351 351 tcg_gen_and_i32(m, m, y);
352 352  
353 353 /* d = n + 2 - m */
... ... @@ -754,7 +754,7 @@ static void crisv32_alu_op(DisasContext *dc, int op, int rd, int size)
754 754 tcg_gen_add_tl(cpu_T[0], cpu_T[0], cpu_T[1]);
755 755 tcg_gen_neg_tl(cpu_T[1], cpu_T[1]);
756 756 /* CRIS flag evaluation needs ~src. */
757   - tcg_gen_xori_tl(cpu_T[1], cpu_T[1], -1);
  757 + tcg_gen_not_tl(cpu_T[1], cpu_T[1]);
758 758  
759 759 /* Extended arithmetics. */
760 760 t_gen_subx_carry(dc, cpu_T[0]);
... ... @@ -826,7 +826,7 @@ static void crisv32_alu_op(DisasContext *dc, int op, int rd, int size)
826 826 case CC_OP_CMP:
827 827 tcg_gen_sub_tl(cpu_T[0], cpu_T[0], cpu_T[1]);
828 828 /* CRIS flag evaluation needs ~src. */
829   - tcg_gen_xori_tl(cpu_T[1], cpu_T[1], ~0);
  829 + tcg_gen_not_tl(cpu_T[1], cpu_T[1]);
830 830  
831 831 /* Extended arithmetics. */
832 832 t_gen_subx_carry(dc, cpu_T[0]);
... ... @@ -1686,7 +1686,7 @@ static unsigned int dec_swap_r(DisasContext *dc)
1686 1686 cris_cc_mask(dc, CC_MASK_NZ);
1687 1687 t_gen_mov_TN_reg(cpu_T[0], dc->op1);
1688 1688 if (dc->op2 & 8)
1689   - tcg_gen_xori_tl(cpu_T[0], cpu_T[0], -1);
  1689 + tcg_gen_not_tl(cpu_T[0], cpu_T[0]);
1690 1690 if (dc->op2 & 4)
1691 1691 t_gen_swapw(cpu_T[0], cpu_T[0]);
1692 1692 if (dc->op2 & 2)
... ...