diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index 525994c9c1d4788ced0ac0f34216b4e0c21ff5b3..8c385782da304e36ad75e4e43cec975628eb53ef 100644 --- a/tcg/arm/tcg-target.c +++ b/tcg/arm/tcg-target.c @@ -188,6 +188,8 @@ static inline uint32_t rotl(uint32_t val, int n) right-rotated by an even amount between 0 and 30. */ static inline int encode_imm(uint32_t imm) { + int shift; + /* simple case, only lower bits */ if ((imm & ~0xff) == 0) return 0;