Skip to content

Commit 2b537a3

Browse files
committed
target/mips: Use tcg_constant_i32() in gen_msa_elm_df()
Data Format is a 2-bit constant value. Avoid using a TCG temporary by moving it to the constant pool. Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-Id: <[email protected]>
1 parent 7da51cb commit 2b537a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

target/mips/tcg/msa_translate.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ static void gen_msa_elm_df(DisasContext *ctx, uint32_t df, uint32_t n)
16501650
TCGv_i32 tws = tcg_const_i32(ws);
16511651
TCGv_i32 twd = tcg_const_i32(wd);
16521652
TCGv_i32 tn = tcg_const_i32(n);
1653-
TCGv_i32 tdf = tcg_const_i32(df);
1653+
TCGv_i32 tdf = tcg_constant_i32(df);
16541654

16551655
switch (MASK_MSA_ELM(ctx->opcode)) {
16561656
case OPC_SLDI_df:
@@ -1748,7 +1748,6 @@ static void gen_msa_elm_df(DisasContext *ctx, uint32_t df, uint32_t n)
17481748
tcg_temp_free_i32(twd);
17491749
tcg_temp_free_i32(tws);
17501750
tcg_temp_free_i32(tn);
1751-
tcg_temp_free_i32(tdf);
17521751
}
17531752

17541753
static void gen_msa_elm(DisasContext *ctx)

0 commit comments

Comments
 (0)