Commit c407df8156d7831f07f7a35c4f4da46e16fa8a0f
1 parent
8e0f950d
target-mips: optimize gen_flt_ldst()
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7125 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
4 deletions
target-mips/translate.c
... | ... | @@ -1180,12 +1180,10 @@ static void gen_flt_ldst (DisasContext *ctx, uint32_t opc, int ft, |
1180 | 1180 | case OPC_LWC1: |
1181 | 1181 | { |
1182 | 1182 | TCGv_i32 fp0 = tcg_temp_new_i32(); |
1183 | - TCGv t1 = tcg_temp_new(); | |
1184 | 1183 | |
1185 | - tcg_gen_qemu_ld32s(t1, t0, ctx->mem_idx); | |
1186 | - tcg_gen_trunc_tl_i32(fp0, t1); | |
1184 | + tcg_gen_qemu_ld32s(t0, t0, ctx->mem_idx); | |
1185 | + tcg_gen_trunc_tl_i32(fp0, t0); | |
1187 | 1186 | gen_store_fpr32(fp0, ft); |
1188 | - tcg_temp_free(t1); | |
1189 | 1187 | tcg_temp_free_i32(fp0); |
1190 | 1188 | } |
1191 | 1189 | opn = "lwc1"; | ... | ... |