Skip to content

Commit

Permalink
tcg-ppc64: bswap64 rotates output 32 bits
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
antonblanchard authored and rth7680 committed Jun 17, 2013
1 parent 8a94cfb commit 82e0f91
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tcg/ppc64/tcg-target.c
Expand Up @@ -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;

Expand Down

0 comments on commit 82e0f91

Please sign in to comment.