From patchwork Sat Apr 20 07:34:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 162573 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp308964jan; Sat, 20 Apr 2019 00:53:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwoJeEXK294Sm7qgRX+VRfFCoE1s5S5eTj+EE1Hujdo1b3aw6LKQcC99yGpCmnQXboLAP27 X-Received: by 2002:adf:f250:: with SMTP id b16mr5692765wrp.254.1555746797966; Sat, 20 Apr 2019 00:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555746797; cv=none; d=google.com; s=arc-20160816; b=fPSPBMSEI3ROZ4AKHw0d9HFlaP2+z9Lnf0HLz9CfFq+j7VwEBSpfYv1nLBOda/3tN7 oP8gYMPQIqHinT0rt7DKgLATqIFiQtgDrSjoJnHFWrCYdFZxbmh/QFMxgSYsF9vtI2kg oxlZ+5e2h44eAoLuGauimbzRUjKRtrOJjJsSMetJzlR57wCcBdq8kb2pHbc/X60DL7+E YkqKdd4YZaSFXbyHnPEoFuGce7/vEJnxLWqQrOcIXqQQc9gL16V7rWdFh10GQ7aF+48I MQ/29r0+zcgVZ7MDxOVxIshN9jEbt+aeLAZnD8rxPE34d/RLf9GzP1MHgJM92cwT05Kr H9/w== 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=o+cYp+5ys6XsltkQeTLvq7AcmzszeQmf5jssa+GAZ9E=; b=veYSHYy1BGGUgIC7dNMQiYsgXIgZiUT377OAJj1Nb9EA1gmyIGZgPdjpqBDU3DrVQG 8FRx68H/ILjDulOYlcLLqciyqEtBIz/4/xUsw+Nde5QH0rxtbw27sRhzIeFV4e3yBven ZCf1/Phq0Ahpcr2XJaWqBW+O43BQxILyzeBYzXVXczAWn9b6biKCUGRy7xxLus/3/B/M UfPh2L7OsKakBenzB6PbjjkvAvvwx144GsmS+cML1U0qzNcLr6cXlX23DAftoC5ScwQ/ w3RH4r2OAOZN+xRtmbg4AWAE7VhcN0h2LMXNctw4dbbdee1YGd0+qvDxjKBEptHpobL3 LnMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MT+oLvLp; 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 k17si5658953wrp.340.2019.04.20.00.53.17 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 20 Apr 2019 00:53:17 -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=MT+oLvLp; 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]:38313 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHkoG-00075R-UQ for patch@linaro.org; Sat, 20 Apr 2019 03:53:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHkXI-0000kt-8K for qemu-devel@nongnu.org; Sat, 20 Apr 2019 03:35:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHkXE-0000JG-2Y for qemu-devel@nongnu.org; Sat, 20 Apr 2019 03:35:42 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:34314) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHkXB-0008Uw-Sv for qemu-devel@nongnu.org; Sat, 20 Apr 2019 03:35:38 -0400 Received: by mail-pg1-x543.google.com with SMTP id v12so3609682pgq.1 for ; Sat, 20 Apr 2019 00:35:25 -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=o+cYp+5ys6XsltkQeTLvq7AcmzszeQmf5jssa+GAZ9E=; b=MT+oLvLpOzp5uYF1oMT4e1K81r2Ji7eRVeo9UvbPKZ9fwr06fJxGnIB65UmL5O3Tmo EVDpG7KFA2gevzmcaknkxweS39KrN0+OkYh/IW9thmdPABmou7gIjG01/MaFUpCv+DXe VrfQaWiJfmli0AzARASryV/eWI+nU86RrJkn1qCOTOOjRXa4/OhgF+Hdhsl7/5NKwimo vmAV/URnxlVPfkht5snutgD4eb8cv4Ii2ux1FPeSDbVImUTJOvOc833jiTETDYWEr6Wy jlSJ7uNWHOyGhPLgX3axi8IBcgYIET/cyOlZSagsy0HLTwef1GP/B1gv/KOY3nORpXEW p+AA== 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=o+cYp+5ys6XsltkQeTLvq7AcmzszeQmf5jssa+GAZ9E=; b=OWezX7OxZZu30nTsZu1NmPFBPKSien3eryuLklqkIEoyBmCICadLdglE1huAPzMD32 cS0rnqXD82A+5Gj4sNRBAPAfsHvBPdNQMntq2RA+f1N6fV0semxUdEsxbQKl8ROMJiKh nEmU0CAIRme+DaP8NLJoLtGvn0d4jqLTl/YYNhoOuBFd6VHObxKW+Rv6ali2MFqcd2Zl ZprWL/zPHNeVVeb++J34k/LopH2wStEfL+sWIw2FXNSELrPhpwThld2Y7HLgLEpJWQ0l 1udHjMSNAtpD/Ao+G4sB4THOvHHeDiQBLSHt54OhKotVp3UnPqMsVjlY8DNIQYxZBYN/ HbTA== X-Gm-Message-State: APjAAAUZHJxfaVDxdpJBdIoVk7i5cwh+jPdU8sl8fO8eeIVJFcOoNPRX euCg7ot23sHum5gBvEm3dSLTeaUiyGE= X-Received: by 2002:aa7:8494:: with SMTP id u20mr1377517pfn.76.1555745724610; Sat, 20 Apr 2019 00:35:24 -0700 (PDT) Received: from localhost.localdomain (rrcs-66-91-136-155.west.biz.rr.com. [66.91.136.155]) by smtp.gmail.com with ESMTPSA id z22sm7025492pgv.23.2019.04.20.00.35.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Apr 2019 00:35:23 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 19 Apr 2019 21:34:28 -1000 Message-Id: <20190420073442.7488-25-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190420073442.7488-1-richard.henderson@linaro.org> References: <20190420073442.7488-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 24/38] 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@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/s390x/translate.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) -- 2.17.1 Reviewed-by: David Hildenbrand Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/s390x/translate.c b/target/s390x/translate.c index 0afa8f7ca5..030129acbb 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; }