From patchwork Sat Apr 20 07:34:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 162574 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp309777jan; Sat, 20 Apr 2019 00:54:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpWD1PZjLPwp5Pw6lPz4ePMLF3hzlyOAUtkh7l7pIx3PlOVs/vTKM3EJ6qoQQ9nun/aIRZ X-Received: by 2002:adf:f102:: with SMTP id r2mr5646066wro.136.1555746871289; Sat, 20 Apr 2019 00:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555746871; cv=none; d=google.com; s=arc-20160816; b=NvGdbUKk1dkvZlWaKH1oFsWgTc2lrXTK5gj3KQs4jyRHi7oZAJgQ8avDRGfyp2cAaT fSjeqOO3MqcHwkTF3GwLd5pAcaL2qJScRsxafJvGWQPZ6FRoy0DXv0DAEnlGbwNSCmoK T2Go2rHh7y4jzRp/Krds3W81arLngLFq/dWnfSLvj5T70LM9rfWqXHPDNO/ugYZXE3Va MSAVjAD7bFE7K3bqTS9kpztvy5OwsP68N+qUTEyRsylaGbfOkARtURpMmiBVGzw8gN2x YsAR8h3DU/AuiIvgHFEzZZ/jR8Kji0YU4KsZUwc4YlhCcLm5gtJgawiHjzW2f5W5a6oj akcA== 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=pqun8ODH+BipBhEXC50lCfhJUx093WlLNlb2HRBn9Eg=; b=lxNnDCXKv4k6TQNohxGWrMhnF0n8YCNkwr3ralWbCp+frQrOBBoJJx4Hw/38Sl2A1I NupTqYlg8wnfW83P1mGKJwkecwzpVAOH1pJVY//Wl3aEfozkQ/lw/B8obpqspfNEOY38 Lr8FfPbfFlxsI/nzZD/2rbN79yO4rUHjSC45iIvQo2SM6DzrvVnUlvmh9TpSTRMQwJTr LuGwOEykp4p1f/blL/dq2VQhq+abZdLepOP4aajjV1iequKqAtrLgw9sqetM5a6hk/83 iF/Cs+a19JjIVo5GRyTbNORUux2WQrBG3aia6ituY5dvo+M4+aZJ06oRQXGuTcNw4Wlb soMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DS4tB6EW; 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 b11si6110712wrm.63.2019.04.20.00.54.31 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 20 Apr 2019 00:54:31 -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=DS4tB6EW; 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]:38324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHkpQ-0008OF-Ka for patch@linaro.org; Sat, 20 Apr 2019 03:54:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHkXI-0000ku-8P 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 1hHkXD-0000I0-Ak for qemu-devel@nongnu.org; Sat, 20 Apr 2019 03:35:42 -0400 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]:34830) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHkXB-0008W6-ST for qemu-devel@nongnu.org; Sat, 20 Apr 2019 03:35:37 -0400 Received: by mail-pf1-x441.google.com with SMTP id t21so3478344pfh.2 for ; Sat, 20 Apr 2019 00:35:27 -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=pqun8ODH+BipBhEXC50lCfhJUx093WlLNlb2HRBn9Eg=; b=DS4tB6EWM9gB0boq5JwaDI+1dKKq4nZiqPuTm2e+J23E00Ib006TXDMiz6ohJZJuQN lyhJGPbkO3XAYK2A9jEnqTRxoY3mdrQgIp9tEgvIHZNRr2ldYph35frWtwvriq9jhH1K gdgxybrqfyESTv2WiK/G0+qX1qj/QEhq1tM4lNsixIl9Huqmz7GjZeCmBT8/BElRzlrQ vI3tquo9tbbX2N4zLL5UK7xpVJB4+0rMmWEDmqE283vrKJvUxJi5ya7zBInkhVNb4iPx 1sK1xnvx2mHRIxX2FtW4DBzehtOJBE/qIlOQGc7jUVWY1VLjvXVlED6VEwLO+7ynMoDt TgfQ== 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=pqun8ODH+BipBhEXC50lCfhJUx093WlLNlb2HRBn9Eg=; b=MNx7nnFiiw112E9Y05TraSpgvkCkWkUdt89wHAAKaoaDvICLLLU94kMhHgx5NY8JOO DuALKkVZNCEcmYhgEH3PaCZQRVdBRLg75mXd/2TtznTCelcH2NYq9MMH/ffVu1xo7DEl EcxIj5ouCVE9d0RLa9L8GX1H5WoLh4k7usWpPTm8qhFiaNjCONi9ZE0+BQHxqVTq0z5t Vy369Kqd59YQwmIKVNnmPc9zhbyMbCE9W/HIqVURsWRNwnbU/IOV4ZGcbmex7UeQJn4K 9Xkk6+rS2PXl2YDoYyZaGgSXMc8zSo85wtEuE/XpKIUhDtkOLZbefVREJGY0okZCqvPr FmMA== X-Gm-Message-State: APjAAAWFWJRJbDsQIlL5m8zjDSLHOL2E3rg4dvHYXBxHDuTcTvZmvLCB wMcfgGrY03vikuYXRpMts+i9NoO4FeM= X-Received: by 2002:a62:388d:: with SMTP id f135mr8555509pfa.103.1555745726081; Sat, 20 Apr 2019 00:35:26 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Apr 2019 00:35:25 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 19 Apr 2019 21:34:29 -1000 Message-Id: <20190420073442.7488-26-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::441 Subject: [Qemu-devel] [PATCH 25/38] target/xtensa: Use tcg_gen_abs_i32 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/xtensa/translate.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index 65561d2c49..62be8a6f6a 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -1707,14 +1707,7 @@ void restore_state_to_opc(CPUXtensaState *env, TranslationBlock *tb, static void translate_abs(DisasContext *dc, const OpcodeArg arg[], const uint32_t par[]) { - TCGv_i32 zero = tcg_const_i32(0); - TCGv_i32 neg = tcg_temp_new_i32(); - - tcg_gen_neg_i32(neg, arg[1].in); - tcg_gen_movcond_i32(TCG_COND_GE, arg[0].out, - arg[1].in, zero, arg[1].in, neg); - tcg_temp_free(neg); - tcg_temp_free(zero); + tcg_gen_abs_i32(arg[0].out, arg[1].in); } static void translate_add(DisasContext *dc, const OpcodeArg arg[],