From patchwork Sat May 4 05:52:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 163376 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp262418ill; Fri, 3 May 2019 23:19:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzT3ZUw91R3b/Zh9G17w8IEuiU2A6fj9OMCEGPEiaq7mAX8vYWL5A0zXf6TMaH2LPRv0oGF X-Received: by 2002:a1c:ca0c:: with SMTP id a12mr1972541wmg.17.1556950762554; Fri, 03 May 2019 23:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556950762; cv=none; d=google.com; s=arc-20160816; b=GGVSsknOPigqg79OgozZ63vL+mj195DkuDeK9OW4fa8zCHTMpxG+hlrI8uoRpFLI9l RAVOof36uxhQAKE8URkMp7m7QLhDK1cdk4/LrgFYrb9hhKtZlMVehTKxRIXOccjVSehU SkISNYG5O8KSt1/MFlNaBDjd9scKsbo7JnZFBsiwf3CiZ40jZtNd1RlP6PDKbOFLQ3xo IGnRk2SwHqOK2u49i6Xf0SeyS7X8W3xQWC3Mg/fII3/Y1alwJZf4bl4dm1K9DhX3rwJ5 aGwO0OmC8FDIbrt77DqMCacpFamXVxc7x08+r4GEzcyfBvM1QNTvprbjPm0eEs3+ajRG 3nHA== 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=ceuwSjt3kxNVh2jVmVheMvD/TRbf+fHQnKrqah+IplI=; b=OpbgYcyEQb0+O881VFdcDAXVdhAfnKGTaMwqUFYzTwKKbI1e+uswk+4nhHr5BePQgt owqJ/3MdX486QwAMsjemX++6GMUopPwbklZUekNniWuCsFjosF+/RyhuehQboEibKSIk mpAKJFCm4/Odbaa8bPEF5QyT7XySzF61vyp0U7rd7ZanWPzbfU9WS9WrwxlztcaI3QQ6 RyQu0DPFkB5Vj4K5jubgjbqCE0G4wkYHY57hqdP74PxCWNfORFvr43Oh/mZTwaWDEVTD pvTLP6UbeAKDySwgXst4VyMK8u9qmg6zrXpiJ226Dl4uwkaMp+kjohDxmdVuzQixn0k8 grFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=T64XIfr1; 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 w10si3082425wrn.233.2019.05.03.23.19.22 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 03 May 2019 23:19:22 -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=T64XIfr1; 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]:51967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMo13-000541-I5 for patch@linaro.org; Sat, 04 May 2019 02:19:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMncA-000890-CP for qemu-devel@nongnu.org; Sat, 04 May 2019 01:53:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMnc9-0004cg-ER for qemu-devel@nongnu.org; Sat, 04 May 2019 01:53:38 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:45036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMnc9-0004ag-73 for qemu-devel@nongnu.org; Sat, 04 May 2019 01:53:37 -0400 Received: by mail-pg1-x543.google.com with SMTP id z16so3752708pgv.11 for ; Fri, 03 May 2019 22:53:37 -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=ceuwSjt3kxNVh2jVmVheMvD/TRbf+fHQnKrqah+IplI=; b=T64XIfr1ux7D7tmhGwSQM6aNFkKpgMT0dAgndGEzSJv4IjOXOPOzQDzP1AJwxk/jLU /Lgkj7hmOlteFzFjbKV0Vld1mSm1qSYt+0Ld/vALjyD0KfXtkIws8ju6r7PR9v7odcNE vhbcV+1MiVgmNYC0U8IdBe81MBc5b6xMqxfh6DeGGtREnJs+rnKzulxrwExpLCVU309W kGJEucwnS0aeKZY8Giphf7XDP9qK6Ffm99z3VavvwvGleBwyGCDZ0ufMSfobedgdGLx9 vdczKigVHomUC+l45gOmESnRPSHEH82vUe/R7to3NRW7gVvPVWFUJ2uc+NxGiJs/TUgF JJYg== 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=ceuwSjt3kxNVh2jVmVheMvD/TRbf+fHQnKrqah+IplI=; b=TJnc9GzHHFyztQQzFWP1EG2SA4t0EPBVYgp9p7p9QnBGiDyr/n94FuilHu3Jrcxspu 6hSlZ4b8lbO2HZZXDPz8MhuUAmN3SCr9W1WnVRIyQdZlme7udDDI4vhFUQgJxAIBpgWI 8OBr7DT5fm27FDBlqi1Y2Rn5IDK+SeAVw4hN/7cYzbHdD9HrL+ZTruED92F377UQco8Z YHQxU3VbAhAQnHOomxLBXIU324wKWdjHKLGv9nm6tRpg5D2uk3ORl2mgID+GK+N6OeHD KA9p09pkYp9P96G2MMUmOZnQz8j5ymn6TO6IptHqUccgDCSr0EFziw4CcU9Co7E3pWJ9 bBZQ== X-Gm-Message-State: APjAAAXY3IZQLgLWby9GvcCcr2aI/6lSGxmA9ciFfPXidjM/6fqgK6fk ZgG7dKb4/giCvXNIgEtlRvvIRt4s1aU= X-Received: by 2002:a63:ee01:: with SMTP id e1mr15731788pgi.20.1556949216024; Fri, 03 May 2019 22:53:36 -0700 (PDT) Received: from localhost.localdomain (97-113-189-189.tukw.qwest.net. [97.113.189.189]) by smtp.gmail.com with ESMTPSA id 15sm6680423pfo.117.2019.05.03.22.53.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 22:53:35 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 3 May 2019 22:52:57 -0700 Message-Id: <20190504055300.18426-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190504055300.18426-1-richard.henderson@linaro.org> References: <20190504055300.18426-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::543 Subject: [Qemu-devel] [PATCH v3 28/31] 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: alex.bennee@linaro.org, david@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: David Hildenbrand Signed-off-by: Richard Henderson --- target/s390x/translate.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.17.1 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; }