Avoid temporary variable use across basic blocks for udivx

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4744 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1 2008-06-15 18:06:39 +00:00
parent 2daf028464
commit 07bf2857b8

View File

@ -3068,8 +3068,10 @@ static void disas_sparc_insn(DisasContext * dc)
break;
#ifdef TARGET_SPARC64
case 0xd: /* V9 udivx */
gen_trap_ifdivzero_tl(cpu_src2);
tcg_gen_divu_i64(cpu_dst, cpu_src1, cpu_src2);
tcg_gen_mov_tl(cpu_cc_src, cpu_src1);
tcg_gen_mov_tl(cpu_cc_src2, cpu_src2);
gen_trap_ifdivzero_tl(cpu_cc_src2);
tcg_gen_divu_i64(cpu_dst, cpu_cc_src, cpu_cc_src2);
break;
#endif
case 0xe: