From patchwork Wed May 1 05:05:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 163197 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp4130575ill; Tue, 30 Apr 2019 22:21:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1zXpqBkur4zepA3AwVTR51OItHw393nADbPGjQyoGiiKew9SfztBSWLkaRepi9bSdsdfw X-Received: by 2002:a1c:7518:: with SMTP id o24mr5355997wmc.42.1556688068953; Tue, 30 Apr 2019 22:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556688068; cv=none; d=google.com; s=arc-20160816; b=zMXcu7yvOBUt6DupSLsA2SjmJgyE/kqI0Ql6AQTR7UFvwNu8N96KWvaDkRXLYsOMtX k/E804Ebm5rVqVdmX2BlPUn+cmoGaAc44uJ67uJkD5qgRTUJVOXuyCVudNO8LvObRYop KBFn0Y77Tg/dYeFbBHlZmOAOYn+WBUvBN44JUgK3xR2sIWGuanzO2FsDKsy/6HP7FDVO nc8nagSBZX45JfmZcg04js8KLrjo9WbLafoP/0RWeB4cpSoBzniQpxsMcMdzSg/A5ZSC tso48bSPF16qnUPgJWgxtCMVoZsb52UGMerPQVtotFWmB2z+YbXQqrEsP00p2fgoD2rp YF/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=dHRZSoCZAzfR/lJhx25t08WJnqWrvEbTqWzKUdTUjVE=; b=Wf4uECH+XTIqs7Xpcffc7iTHptYi4Mqdmq60UO9kRtq5Sa0nwFeAWOnQvaf3dcWO5l +Z5DBV89ltP67bSyg8whImepgwrXLNztbesM9lYBfkukgkdh4Jkc7SQ81ufC9/BLKHWJ HFNiIG2gfER2MBkUls4B5f8WJlgBDxkPprH/qmcM9kqB3/4robLJKgpuMNDmrQob0QVa 2VEDvOsHwA1QrXRaCwl/WM7XLoj1XoKyvqasqj0VmauzsRxbxv0nApS/TSkiCFg5b/LK uE/qzAH7yIzMrX3IIyfXMxl6NvGYZqX42qmqKOD0j+0UL/FI1f44TKIBNarUeEIG+6tT 2LYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=oQ4UOnvR; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x12si2803410wrl.73.2019.04.30.22.21.08 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 30 Apr 2019 22:21:08 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=oQ4UOnvR; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:36438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLhg3-0002Au-TL for patch@linaro.org; Wed, 01 May 2019 01:21:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLhRm-0006lZ-7f for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLhRj-00035Y-6M for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:22 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:39580) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLhRj-00034Q-1K for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:19 -0400 Received: by mail-pf1-x442.google.com with SMTP id z26so4260388pfg.6 for ; Tue, 30 Apr 2019 22:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dHRZSoCZAzfR/lJhx25t08WJnqWrvEbTqWzKUdTUjVE=; b=oQ4UOnvRZLHrm8iHTtPm7Ft6kkLTLZgR0AJ9rA5wNI93ZiF53CaCj77qYMobiBZwAw uZuCMOc10I7JRzb+N+ufYpwZ5WXm5ZIFRvXmgOwgwsxxm6FShFTV4qg073MQEtU6wniP bsOks//5vC3N8kopoa+tGBhxu9o9z95HmBGy0SVoldredlQ7sjnbBom5qTGkTqy19hdB yamE7G41r2iv2aXefpsjHQ7/7iPqa8ETfnVAPtiguoLx+qW2GUI/R0vLgUBrnlBRBtR1 zg3PipVJk5JibeoCVY9HUe7Tl8R+V5B/wxxPbNhRAC4oh2CNDLqMyKdvyqLG7CHaKoBQ /pZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dHRZSoCZAzfR/lJhx25t08WJnqWrvEbTqWzKUdTUjVE=; b=ewgqPCqPgRV10ckZPBln0HIiL8nbUBuMeuX8KYryDlU5ula1oCws/jW2S4R6kxNKxw hb29dt0ubRR1jEy2M6SLDaHal3ounhWHQae57GNg72UOg0Z+gaf2CDHixkywmnL6Ve6y hlBQ4ba8U2hxN7jQVaDYAPt/zH4YM4oEJQ6F8YYPRThPrp1AjQtfxpfdnl4kKuPn/AQS qaX3AtIZDXyP58YdlXFzNDb394DGVfjptPtzcqX5YgNnEpNHyPQOzFuEZ1rnil/jGwP9 ZEa3qOg5A+nHJ9So+x6WVFZSLVZ3jV+4QQutUPDI4knK+Si5AK5hDxmxa0Q8bpo9Mv40 R79g== X-Gm-Message-State: APjAAAWrImi47cold7aHLEiS8+mXepolnmEWi3I2F6YZbbDcH7OVlHat yZHKqYxUk1SWezBNPvpiSqiDGrx8Ehw= X-Received: by 2002:a62:d205:: with SMTP id c5mr18822438pfg.219.1556687177435; Tue, 30 Apr 2019 22:06:17 -0700 (PDT) Received: from localhost.localdomain (97-113-189-189.tukw.qwest.net. [97.113.189.189]) by smtp.gmail.com with ESMTPSA id t127sm9687251pfb.106.2019.04.30.22.06.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2019 22:06:16 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 30 Apr 2019 22:05:34 -0700 Message-Id: <20190501050536.15580-28-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190501050536.15580-1-richard.henderson@linaro.org> References: <20190501050536.15580-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::442 Subject: [Qemu-devel] [PATCH v2 27/29] target/s390x: Use tcg_gen_abs_i64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Hildenbrand Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: David Hildenbrand Signed-off-by: Richard Henderson --- target/s390x/translate.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.17.1 Reviewed-by: David Hildenbrand diff --git a/target/s390x/translate.c b/target/s390x/translate.c index d4951836ad..e8e8a79b7d 100644 --- a/target/s390x/translate.c +++ b/target/s390x/translate.c @@ -1407,13 +1407,7 @@ static DisasJumpType help_branch(DisasContext *s, DisasCompare *c, static DisasJumpType op_abs(DisasContext *s, DisasOps *o) { - TCGv_i64 z, n; - z = tcg_const_i64(0); - n = tcg_temp_new_i64(); - tcg_gen_neg_i64(n, o->in2); - tcg_gen_movcond_i64(TCG_COND_LT, o->out, o->in2, z, n, o->in2); - tcg_temp_free_i64(n); - tcg_temp_free_i64(z); + tcg_gen_abs_i64(o->out, o->in2); return DISAS_NEXT; }