From patchwork Thu May 27 20:46:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 53816 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CA244B7D1B for ; Fri, 28 May 2010 07:33:49 +1000 (EST) Received: from localhost ([127.0.0.1]:54271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHkhI-0005W5-KM for incoming@patchwork.ozlabs.org; Thu, 27 May 2010 17:33:00 -0400 Received: from [140.186.70.92] (port=56087 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHjzE-00026d-Hj for qemu-devel@nongnu.org; Thu, 27 May 2010 16:47:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHjzD-0005MZ-EC for qemu-devel@nongnu.org; Thu, 27 May 2010 16:47:28 -0400 Received: from are.twiddle.net ([75.149.56.221]:51225) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHjzD-0005MP-8g for qemu-devel@nongnu.org; Thu, 27 May 2010 16:47:27 -0400 Received: from anchor.twiddle.home (anchor.twiddle.home [172.31.0.4]) by are.twiddle.net (Postfix) with ESMTPS id AFDEC576; Thu, 27 May 2010 13:47:26 -0700 (PDT) Received: from anchor.twiddle.home (anchor.twiddle.home [127.0.0.1]) by anchor.twiddle.home (8.14.4/8.14.4) with ESMTP id o4RKlQFY030953; Thu, 27 May 2010 13:47:26 -0700 Received: (from rth@localhost) by anchor.twiddle.home (8.14.4/8.14.4/Submit) id o4RKlPSg030952; Thu, 27 May 2010 13:47:25 -0700 From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 27 May 2010 13:46:11 -0700 Message-Id: <1274993204-30766-30-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.0.1 In-Reply-To: <1274993204-30766-1-git-send-email-rth@twiddle.net> References: <1274993204-30766-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: agraf@suse.de, aurelien@aurel32.net Subject: [Qemu-devel] [PATCH 29/62] tcg-s390: Use LOAD COMPLIMENT for negate. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Richard Henderson --- tcg/s390/tcg-target.c | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index f85063e..97ac66d 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -1028,16 +1028,10 @@ static inline void tcg_out_op(TCGContext *s, TCGOpcode opc, break; case INDEX_op_neg_i32: - /* FIXME: optimize args[0] != args[1] case */ - tcg_out_insn(s, RR, LR, 13, args[1]); - tcg_out_movi(s, TCG_TYPE_I32, args[0], 0); - tcg_out_insn(s, RR, SR, args[0], 13); + tcg_out_insn(s, RR, LCR, args[0], args[1]); break; case INDEX_op_neg_i64: - /* FIXME: optimize args[0] != args[1] case */ - tcg_out_mov(s, TCG_REG_R13, args[1]); - tcg_out_movi(s, TCG_TYPE_I64, args[0], 0); - tcg_out_insn(s, RRE, SGR, args[0], TCG_REG_R13); + tcg_out_insn(s, RRE, LCGR, args[0], args[1]); break; case INDEX_op_mul_i32: