OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21a8894
)
tcg-sparc: Fix imm13 check in movi.
author
Richard Henderson
<rth@twiddle.net>
Thu, 17 Dec 2009 23:20:24 +0000
(15:20 -0800)
committer
Blue Swirl
<blauwirbel@gmail.com>
Mon, 21 Dec 2009 20:49:34 +0000
(20:49 +0000)
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>
tcg/sparc/tcg-target.c
patch
|
blob
|
history
diff --git
a/tcg/sparc/tcg-target.c
b/tcg/sparc/tcg-target.c
index
23cd9cd
..
b480ed6
100644
(file)
--- 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, 1
2
))
+ if (check_fit_tl(arg, 1
3
))
tcg_out_movi_imm13(s, ret, arg);
else {
tcg_out_sethi(s, ret, arg);