Skip to content

Commit e81a48b

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

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
@@ -2028,7 +2028,7 @@ static void gen_msa_2rf(DisasContext *ctx)
20282028
TCGv_i32 twd = tcg_const_i32(wd);
20292029
TCGv_i32 tws = tcg_const_i32(ws);
20302030
/* adjust df value for floating-point instruction */
2031-
TCGv_i32 tdf = tcg_const_i32(df + 2);
2031+
TCGv_i32 tdf = tcg_constant_i32(df + 2);
20322032

20332033
switch (MASK_MSA_2RF(ctx->opcode)) {
20342034
case OPC_FCLASS_df:
@@ -2083,7 +2083,6 @@ static void gen_msa_2rf(DisasContext *ctx)
20832083

20842084
tcg_temp_free_i32(twd);
20852085
tcg_temp_free_i32(tws);
2086-
tcg_temp_free_i32(tdf);
20872086
}
20882087

20892088
static void gen_msa_vec_v(DisasContext *ctx)

0 commit comments

Comments
 (0)