static inline void tcg_gen_mov_i32(TCGv ret, TCGv arg)
{
- tcg_gen_op2(INDEX_op_mov_i32, ret, arg);
+ if (ret != arg)
+ tcg_gen_op2(INDEX_op_mov_i32, ret, arg);
}
static inline void tcg_gen_movi_i32(TCGv ret, int32_t arg)
static inline void tcg_gen_mov_i64(TCGv ret, TCGv arg)
{
- tcg_gen_mov_i32(ret, arg);
- tcg_gen_mov_i32(TCGV_HIGH(ret), TCGV_HIGH(arg));
+ if (ret != arg) {
+ tcg_gen_mov_i32(ret, arg);
+ tcg_gen_mov_i32(TCGV_HIGH(ret), TCGV_HIGH(arg));
+ }
}
static inline void tcg_gen_movi_i64(TCGv ret, int64_t arg)
static inline void tcg_gen_mov_i64(TCGv ret, TCGv arg)
{
- tcg_gen_op2(INDEX_op_mov_i64, ret, arg);
+ if (ret != arg)
+ tcg_gen_op2(INDEX_op_mov_i64, ret, arg);
}
static inline void tcg_gen_movi_i64(TCGv ret, int64_t arg)