From patchwork Tue May 14 00:05:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 164081 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1974282ili; Mon, 13 May 2019 17:16:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxB66Rd8KXyNSzV3uBa/+ii8l/Ruiy0hUuNnaYcOmyhW3mOKRPYfaSnHvqgiKdAMZJF+q6 X-Received: by 2002:a17:906:c838:: with SMTP id dd24mr9281316ejb.144.1557792968343; Mon, 13 May 2019 17:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557792968; cv=none; d=google.com; s=arc-20160816; b=Tt+XeRB5obobx8NRMPjIguV549WManBQbO+1O/ls85wF4KR4OQ625MMqo3hKw3+K2a wf8+I4pJGzIFVwwMvLpn4r/xG3TLGYL3/uyay7GRJgVpvKgWr6ac4HzHwTFRa/uE3rn7 CZWs+WvxsQsfmfmjq+ldsENyBKygKk39OIrOtGLdbBIB1spnthd9nqK/sR90+0OIgkwN WHpB1LnzHgdgS6OqaUcRwc6fCajEXZEtKX9oegTyjx4YSK6U17uN0e4K9q+prXvNAYlu TLRRcbbmmR16rgksTsU539LNX9CezeZ1/FEZp60heIZN9iDEoHTrni11Wwt5vuUupMcJ h+eQ== 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=EQD82OSyX5egn8Cjy6KvPDJfhFHpV/Vnu9CzXZKpVFjOF+Ccux6B94ZBdbJVI0IDiG 40zohPB8lKhkLHMWxGpQl+m+0cB6D2t6gxU/ZvP16JgujYHft0f0GRfO3l2bNGJoP/sd 5/jUU+qX29jNKGQNm+oIifKVnz2TMspqBk7Q/n2WGdrAoL+eRC7aX6y+e7dSPCm4yBU5 36rx5Ltlda3mB4HJBjTBCOvdlPJhlpJsys0id7ZxO+84vIjdD371MjKOmeZXe0pY/V6N /9gglP11kL35oCbZsO+g4VYLA/QpnKiFsi5z1Bw+TIC95/akxij3bwq/s3gS1oSTv3k2 Y4qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=YM3lIN7e; 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 t9si6567164edf.96.2019.05.13.17.16.08 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 13 May 2019 17:16: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=YM3lIN7e; 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]:36723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQL71-0001Wi-AH for patch@linaro.org; Mon, 13 May 2019 20:16:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hQL3u-0004h8-8j for qemu-devel@nongnu.org; Mon, 13 May 2019 20:13:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hQKxe-0003qE-25 for qemu-devel@nongnu.org; Mon, 13 May 2019 20:07:31 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:46951) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hQKxb-0003iS-Ri for qemu-devel@nongnu.org; Mon, 13 May 2019 20:06:25 -0400 Received: by mail-pg1-x544.google.com with SMTP id t187so7586535pgb.13 for ; Mon, 13 May 2019 17:06:20 -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=YM3lIN7ecRVVN96Zqwn3iTt3ZilJW4YCEcNw5L5LEGAKSF5X+pauae51nAl5dcRL8E BjwMplzL5TxfrmjPO5jP15Zx23/Dja9ESWt5syivIbsNp9q6BipXveJAkLNmyWEgpfYZ 4+3x9R72QAhSaNZgmUTnofXdkw+YPCnVSQ/tsjWbegNCHWJrgi9BC3TtfYG5DLoXrnjD i8V6HKagriz2SjyW8tx4Wql41bez/4I8hCBKQz/1SX/hvckrK7ffhoZBFbxqg61hRf/Q ehD1ZUQq/YTMgoYCR/00gxPSpFK9pdl7sxdrrXafCJFqJycW3U898CjUxO0mE2XnhBut Sz8Q== 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=mk2Nsa2Y91dC21LjLDKL8gMPC6hotPhkI3/wh0SIt+HHReuKYsL4XdquPQjlP/xXtC O/Jgim1Lbu0kEi5AHL+UIRtXhFsghDp7bmYbYQRtTyiIXkKqwpauLglVnM4OEZF7o+qA 3VmZK6XoWKIl1bYZezV6VaoJ5HTeFTF+WzzzJVG66RSEHxctZPjgGNcse/tMRrF63IXy g9vMmpiAyEWT9IQyXHxPdoOs0WDiAxIyWPA2fBW+gHtM2quf2zL+umkNDePU9vvAi55o +X/ZnbbjIuYiI+n+lMaQKIHaaMgo/a4RNCEEtLv1QLHAmTtbO5ROf0HrjpJNcyB5oxIH Tehw== X-Gm-Message-State: APjAAAWwvSQjP6HcAn6lN/cqfuirDFjrQvuBVU5lAefZrNYHTHQ6wVJS O5bS0XfUWHEtQ5whZEFwkfq9M+hTSkk= X-Received: by 2002:a63:7c55:: with SMTP id l21mr10588783pgn.121.1557792378991; Mon, 13 May 2019 17:06:18 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id u3sm238151pfn.29.2019.05.13.17.06.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 17:06:18 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 13 May 2019 17:05:37 -0700 Message-Id: <20190514000540.4313-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190514000540.4313-1-richard.henderson@linaro.org> References: <20190514000540.4313-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::544 Subject: [Qemu-devel] [PULL 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: peter.maydell@linux.org 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; }