Received: from eggs.gnu.org ([2001:4830:134:3::10]:46921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UodVI-0006mJ-4G for qemu-devel@nongnu.org; Mon, 17 Jun 2013 13:46:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UodVF-0003u9-5n for qemu-devel@nongnu.org; Mon, 17 Jun 2013 13:46:08 -0400 Sender: Richard Henderson From: Richard Henderson Date: Mon, 17 Jun 2013 10:45:27 -0700 Message-Id: <1371491129-30246-3-git-send-email-rth@twiddle.net> In-Reply-To: <1371491129-30246-1-git-send-email-rth@twiddle.net> References: <1371491129-30246-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PULL 2/4] tcg-ppc64: bswap64 rotates output 32 bits List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, Anton Blanchard , qemu-stable@nongnu.org From: Anton Blanchard 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 Signed-off-by: Richard Henderson --- tcg/ppc64/tcg-target.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index c7c0b8f..1d06530 100644 --- 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; -- 1.8.1.4