Skip to contentSkip to conversation

target-i386/translate.c: Remove unused tcg_gen_lshift()

PATCH Applied Peter Maydell 2 participants 2 messages Jun 7, 2014 – Jun 8, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-i386/translate.c: Remove unused tcg_gen_lshift()

The function tcg_gen_lshift() is unused; remove it.

---
 target-i386/translate.c | 8 --------
 1 file changed, 8 deletions(-)
target-i386/translate.c +0 -8
index 3aa52eb..c02f7fd 100644
@@ -1505,14 +1505,6 @@ static void gen_shift_rm_im(DisasContext *s, TCGMemOp ot, int op1, int op2,
     }
 }
 
-static inline void tcg_gen_lshift(TCGv ret, TCGv arg1, target_long arg2)
-{
-    if (arg2 >= 0)
-        tcg_gen_shli_tl(ret, arg1, arg2);
-    else
-        tcg_gen_shri_tl(ret, arg1, -arg2);
-}
-
 static void gen_rot_rm_T1(DisasContext *s, TCGMemOp ot, int op1, int is_right)
 {
     target_ulong mask = (ot == MO_64 ? 0x3f : 0x1f);
Signature · 1 line
1.8.5.4