From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUUW5-0002go-RV for qemu-devel@nongnu.org; Tue, 02 Aug 2016 03:53:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUUW0-0001dL-Dl for qemu-devel@nongnu.org; Tue, 02 Aug 2016 03:53:31 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:57931 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUUW0-0001dH-6A for qemu-devel@nongnu.org; Tue, 02 Aug 2016 03:53:28 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u727i2ov087390 for ; Tue, 2 Aug 2016 03:53:26 -0400 Received: from e28smtp08.in.ibm.com (e28smtp08.in.ibm.com [125.16.236.8]) by mx0a-001b2d01.pphosted.com with ESMTP id 24jq3r8wra-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 02 Aug 2016 03:53:26 -0400 Received: from localhost by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 2 Aug 2016 13:23:23 +0530 From: Nikunj A Dadhania Date: Tue, 2 Aug 2016 13:22:59 +0530 Message-Id: <1470124380-5751-1-git-send-email-nikunj@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v1 1/2] target-ppc: modsw - return 64-bit sign extended List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-ppc@nongnu.org, david@gibson.dropbear.id.au, rth@twiddle.net Cc: qemu-devel@nongnu.org, nikunj@linux.vnet.ibm.com, anton@samba.org Reported-by: Anton Blanchard Signed-off-by: Nikunj A Dadhania --- Can be squashed with the original commit target-ppc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index fc3d371..dc89e6a 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -1243,7 +1243,7 @@ static inline void gen_op_arith_modw(DisasContext *ctx, TCGv ret, TCGv arg1, tcg_gen_movi_i32(t3, 0); tcg_gen_movcond_i32(TCG_COND_NE, t1, t2, t3, t2, t1); tcg_gen_rem_i32(t3, t0, t1); - tcg_gen_extu_i32_tl(ret, t3); + tcg_gen_ext_i32_tl(ret, t3); tcg_temp_free_i32(t2); tcg_temp_free_i32(t3); } else { -- 2.7.4