aboutsummaryrefslogtreecommitdiff
path: root/tcg/ppc64
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2013-06-02 22:30:18 +1000
committerRichard Henderson <rth@twiddle.net>2013-06-17 10:42:16 -0700
commitd1bdd3af49f227dd4a4b03b90cb020c55cbed440 (patch)
tree933591c0faf9fd581eb0a894bb0408d9fb294232 /tcg/ppc64
parent84247357104044b8c4ec4a634e84769f432cbe52 (diff)
downloadqemu-d1bdd3af49f227dd4a4b03b90cb020c55cbed440.zip
qemu-d1bdd3af49f227dd4a4b03b90cb020c55cbed440.tar.gz
qemu-d1bdd3af49f227dd4a4b03b90cb020c55cbed440.tar.bz2
tcg-ppc64: rotr_i32 rotates wrong amount
rotr_i32 calculates the amount to left shift and puts it into a temporary, but then doesn't use it when doing the shift. Cc: qemu-stable@nongnu.org Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/ppc64')
-rw-r--r--tcg/ppc64/tcg-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c
index 5cdff36..606b73d 100644
--- a/tcg/ppc64/tcg-target.c
+++ b/tcg/ppc64/tcg-target.c
@@ -1662,7 +1662,7 @@ static void tcg_out_op (TCGContext *s, TCGOpcode opc, const TCGArg *args,
tcg_out_rlw(s, RLWINM, args[0], args[1], 32 - args[2], 0, 31);
} else {
tcg_out32(s, SUBFIC | TAI(0, args[2], 32));
- tcg_out32(s, RLWNM | SAB(args[1], args[0], args[2])
+ tcg_out32(s, RLWNM | SAB(args[1], args[0], 0)
| MB(0) | ME(31));
}
break;