Skip to contentSkip to conversation

[7125] target-mips: optimize gen_flt_ldst()

Qemu-devel Aurelien Jarno 1 participant 1 message Apr 16, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 7125

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7125
Author:   aurel32
Date:     2009-04-16 11:51:03 +0000 (Thu, 16 Apr 2009)

Log Message:
-----------
target-mips: optimize gen_flt_ldst()

Modified Paths:
--------------
trunk/target-mips/translate.c

Modified: trunk/target-mips/translate.c
===================================================================

target-mips/translate.c +2 -4
@@ -1180,12 +1180,10 @@
     case OPC_LWC1:
         {
             TCGv_i32 fp0 = tcg_temp_new_i32();
-            TCGv t1 = tcg_temp_new();
 
-            tcg_gen_qemu_ld32s(t1, t0, ctx->mem_idx);
-            tcg_gen_trunc_tl_i32(fp0, t1);
+            tcg_gen_qemu_ld32s(t0, t0, ctx->mem_idx);
+            tcg_gen_trunc_tl_i32(fp0, t0);
             gen_store_fpr32(fp0, ft);
-            tcg_temp_free(t1);
             tcg_temp_free_i32(fp0);
         }
         opn = "lwc1";