tcg/arm: Use tcg_out_mov_reg in tcg_out_mov
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 1 May 2019 20:26:46 +0000 (13:26 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 13 May 2019 21:44:03 +0000 (14:44 -0700)
We have a function that takes an additional condition parameter
over the standard backend interface.  It already takes care of
eliding no-op moves.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/arm/tcg-target.inc.c

index abf0c444b48a88d5c47a782489578c165a88f9f4..130b6bef1e9272020336bf8d03c3a307b6b84e63 100644 (file)
@@ -2267,7 +2267,7 @@ static inline bool tcg_out_sti(TCGContext *s, TCGType type, TCGArg val,
 static inline void tcg_out_mov(TCGContext *s, TCGType type,
                                TCGReg ret, TCGReg arg)
 {
-    tcg_out_dat_reg(s, COND_AL, ARITH_MOV, ret, 0, arg, SHIFT_IMM_LSL(0));
+    tcg_out_mov_reg(s, COND_AL, ret, arg);
 }
 
 static inline void tcg_out_movi(TCGContext *s, TCGType type,