* [Qemu-devel] [4913] Simplify conditional FP moves.
@ 2008-07-20 18:48 Thiemo Seufer
0 siblings, 0 replies; only message in thread
From: Thiemo Seufer @ 2008-07-20 18:48 UTC (permalink / raw)
To: qemu-devel
Revision: 4913
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4913
Author: ths
Date: 2008-07-20 18:48:42 +0000 (Sun, 20 Jul 2008)
Log Message:
-----------
Simplify conditional FP moves.
Modified Paths:
--------------
trunk/target-mips/translate.c
Modified: trunk/target-mips/translate.c
===================================================================
--- trunk/target-mips/translate.c 2008-07-20 18:23:50 UTC (rev 4912)
+++ trunk/target-mips/translate.c 2008-07-20 18:48:42 UTC (rev 4913)
@@ -5998,6 +5998,7 @@
TCGCond cond;
TCGv t0 = tcg_temp_local_new(TCG_TYPE_TL);
TCGv t1 = tcg_temp_local_new(TCG_TYPE_TL);
+ TCGv r_tmp = tcg_temp_local_new(TCG_TYPE_I32);
if (cc)
ccbit = 1 << (24 + cc);
@@ -6010,17 +6011,11 @@
gen_load_gpr(t0, rd);
gen_load_gpr(t1, rs);
- {
- TCGv r_ptr = tcg_temp_new(TCG_TYPE_PTR);
- TCGv r_tmp = tcg_temp_local_new(TCG_TYPE_I32);
+ tcg_gen_ld_i32(r_tmp, current_fpu, offsetof(CPUMIPSFPUContext, fcr31));
+ tcg_gen_andi_i32(r_tmp, r_tmp, ccbit);
+ tcg_gen_brcondi_i32(cond, r_tmp, 0, l1);
+ tcg_temp_free(r_tmp);
- tcg_gen_ld_ptr(r_ptr, cpu_env, offsetof(CPUState, fpu));
- tcg_gen_ld_i32(r_tmp, r_ptr, offsetof(CPUMIPSFPUContext, fcr31));
- tcg_temp_free(r_ptr);
- tcg_gen_andi_i32(r_tmp, r_tmp, ccbit);
- tcg_gen_brcondi_i32(cond, r_tmp, 0, l1);
- tcg_temp_free(r_tmp);
- }
tcg_gen_mov_tl(t0, t1);
tcg_temp_free(t1);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-20 18:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 18:48 [Qemu-devel] [4913] Simplify conditional FP moves Thiemo Seufer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).