projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a94cfb
)
tcg-ppc64: bswap64 rotates output 32 bits
author
Anton Blanchard
<anton@samba.org>
Sun, 2 Jun 2013 12:28:27 +0000
(22:28 +1000)
committer
Richard Henderson
<rth@twiddle.net>
Mon, 17 Jun 2013 17:42:16 +0000
(10:42 -0700)
If our input and output is in the same register, bswap64 tries to
undo a rotate of the input. This just ends up rotating the output.
Cc: qemu-stable@nongnu.org
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/ppc64/tcg-target.c
patch
|
blob
|
history
diff --git
a/tcg/ppc64/tcg-target.c
b/tcg/ppc64/tcg-target.c
index c7c0b8f94dbfd94133189db2e0cdabb883286cfb..1d065300f8618cc3566a618cbcd0093150278067 100644
(file)
--- a/
tcg/ppc64/tcg-target.c
+++ b/
tcg/ppc64/tcg-target.c
@@
-1923,8
+1923,6
@@
static void tcg_out_op (TCGContext *s, TCGOpcode opc, const TCGArg *args,
if (a0 == 0) {
tcg_out_mov(s, TCG_TYPE_I64, args[0], a0);
- /* Revert the source rotate that we performed above. */
- tcg_out_rld(s, RLDICL, a1, a1, 32, 0);
}
break;