From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDamM-00044F-B2 for qemu-devel@nongnu.org; Fri, 10 Jul 2015 12:03:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDamJ-0005c6-EQ for qemu-devel@nongnu.org; Fri, 10 Jul 2015 12:03:57 -0400 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]:46607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDamJ-0005Xa-8R for qemu-devel@nongnu.org; Fri, 10 Jul 2015 12:03:55 -0400 From: Aurelien Jarno Date: Fri, 10 Jul 2015 18:03:30 +0200 Message-Id: <1436544211-2769-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH 1/2] tcg/optimize: fix tcg_opt_gen_movi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno , Richard Henderson Due to a copy&paste, the new op value is tested against mov_i32 instead of movi_i32. The test is therefore always false. Fix that. Cc: Richard Henderson Signed-off-by: Aurelien Jarno --- tcg/optimize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index 0f6f700..18283cf 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -205,7 +205,7 @@ static void tcg_opt_gen_movi(TCGContext *s, TCGOp *op, TCGArg *args, temps[dst].state = TCG_TEMP_CONST; temps[dst].val = val; mask = val; - if (TCG_TARGET_REG_BITS > 32 && new_op == INDEX_op_mov_i32) { + if (TCG_TARGET_REG_BITS > 32 && new_op == INDEX_op_movi_i32) { /* High bits of the destination are now garbage. */ mask |= ~0xffffffffull; } -- 2.1.4