diff options
author | Richard Henderson <rth@twiddle.net> | 2009-12-17 15:20:24 -0800 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-12-21 20:49:34 +0000 |
commit | 4a09aa895e7cd82192e47ede9cde8ab7da4a96ba (patch) | |
tree | d20f089441a007f505c8040aed058c70bcaa25df /tcg/sparc | |
parent | 21a88941686b3626aa7b98660b1e1fa88cb064ec (diff) | |
download | qemu-4a09aa895e7cd82192e47ede9cde8ab7da4a96ba.zip qemu-4a09aa895e7cd82192e47ede9cde8ab7da4a96ba.tar.gz qemu-4a09aa895e7cd82192e47ede9cde8ab7da4a96ba.tar.bz2 |
tcg-sparc: Fix imm13 check in movi.
We were unnecessarily restricting imm13 constants to 12 bits.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/sparc')
-rw-r--r-- | tcg/sparc/tcg-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/sparc/tcg-target.c b/tcg/sparc/tcg-target.c index 23cd9cd..b480ed6 100644 --- a/tcg/sparc/tcg-target.c +++ b/tcg/sparc/tcg-target.c @@ -302,7 +302,7 @@ static inline void tcg_out_movi_imm13(TCGContext *s, int ret, uint32_t arg) static inline void tcg_out_movi_imm32(TCGContext *s, int ret, uint32_t arg) { - if (check_fit_tl(arg, 12)) + if (check_fit_tl(arg, 13)) tcg_out_movi_imm13(s, ret, arg); else { tcg_out_sethi(s, ret, arg); |