From patchwork Wed May 1 05:05:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 163202 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp4133926ill; Tue, 30 Apr 2019 22:26:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxn6xq96ygIWZhVEq7SyRGjSc67l1lmaKFENBEP9RjnvlZPMsTcuSIQePXOcAqQuKFhW5KM X-Received: by 2002:a1c:4905:: with SMTP id w5mr5741870wma.88.1556688395197; Tue, 30 Apr 2019 22:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556688395; cv=none; d=google.com; s=arc-20160816; b=FQ4NjB5Hc1rHB/43YjGnll8KNWdRHQuMFtDUDA0jjL0x9bdmvNOOqE1S2+A4qRFC1i 6GuRtqfupOp+7ZZWS9eJOpLUW+MAMT2Q4ysLI3mfAG/cf/DP6lR/UFVQqhBWwtfsilwa /PbcOyNJdgnEM1qzX9FM9NclYxe9lj+NAGCSA79aMMnvQilOVYsp+9TJDBmVOzQYmBpZ vuXy1SZpM/LeOEHibfBauVVeho9jTicSUMN64wHODprI0hHWmGijt1SeyhT3MZSHY4MF Hi2VmSY1aLs1WfpXLzVJmFpIER33widjscHEt9jcKIo2rC3keDtnHEKxe1ITObv72bf1 gcVw== 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=o7dnHbCu/TOAfn/7tUi0VRqfElXssoeZ/3G17tDL/UE=; b=eULiCQIs8dTLsqIrP0hywWYyeeTFA4jlt/tP4L24rbk2VMrSwxvZb5Un/sNsodkJz2 2xNWorsR4dEmDcyMq25/7x3QLsoxsP092LrLytGfj/BscTuXUFRKs6YMEOMNWyJvf2GA Svc4j0uatJsa5tnMIkvCVy2X4/RoAx0zc5aH4sHEns5ttzmR972kLu/Bt4RbpCww94a8 BqXlFFCLA0E863i+SbY3JeFjwrRFrGYd27no43W2QLUgD6vcR/xQzlUAqCo8oeqfmYBR Z3+twP+79VxqcJuv4Y3rHo8/IHJCZwyJrU7EVb63Ipo0Kux+ZeFskSYQhJ/Gh4me+eOT YzFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=rD5TVTu8; 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 r67si2792094wme.59.2019.04.30.22.26.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 30 Apr 2019 22:26:35 -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=rD5TVTu8; 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]:36556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLhlK-0007VC-6L for patch@linaro.org; Wed, 01 May 2019 01:26:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLhRj-0006iz-Rr for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLhRg-00033l-R4 for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:19 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:34458) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLhRf-00032O-Aj for qemu-devel@nongnu.org; Wed, 01 May 2019 01:06:15 -0400 Received: by mail-pf1-x443.google.com with SMTP id b3so8157055pfd.1 for ; Tue, 30 Apr 2019 22:06:15 -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=o7dnHbCu/TOAfn/7tUi0VRqfElXssoeZ/3G17tDL/UE=; b=rD5TVTu8vbSfOONYe6q+d/y+JZUCAh+eYDr1aZoENSAEpIjjVpMI40OxitBrozIGYD CcwmaFHMNMCcfZwzFAHO3TRgRsU1JSppr8y74wMvmMBNEQ7NyzfRyymVKdFT355xoBRL kiolSWCcvg7sh+N7PKfvtniwGHC6zAE+wQ98yVL49jecl55/j4u6xjul25sKUBnKnp++ /5utHI4MG9km1+pl6W8b/L12riTDg8YVDNS0mvMIx4BQ2C+UjLrZ7ksl+4KVb38cpm/F 6C+bCTgj2kUqZOiI9bZIvMMAZH76SIO93E1yromtPefBNmV89zkcHUBIIAr84qnXmRGX xhMQ== 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=o7dnHbCu/TOAfn/7tUi0VRqfElXssoeZ/3G17tDL/UE=; b=KAhOJJmx70LBb5pobDLPRGUILhoY7wtTeNSrwUVLIm9DOE6BqTq/Qz8LquKGPQlQY9 1IDzwolbC4Ecd37AgheESYUS/G2p+Vahdw/zedj+79DMV/D1ChCpWrcSjuwxQ4PmMQBe 2yPX5nL8qWfdJ5EPPc4n40+1yGoh8/67yK0ewCy6qbVkaw88v5MzTE7d2YT1ETSa9atz MVZ8h5og0UHVpWgHMfiiXa34t873IBGwkjlxiA4pbUIS8zLVwr0mzK0NNrCmm9V12mmT oHjHY3ZzwjyYLlySaRgZ5dPLgpOfWfDH33FMMyWYpxY4v5IJi2lx8V+NQ1bGO1I1b1uH 8/xg== X-Gm-Message-State: APjAAAWa1CVHY++EnvzUlLD6TtRWDUNmRTe63ZUSbteAhi0Dc+UOaF8T COlh0HMpylFs1HeLiplGePG/rr1fjTE= X-Received: by 2002:aa7:82cb:: with SMTP id f11mr29661988pfn.0.1556687173985; Tue, 30 Apr 2019 22:06:13 -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.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Apr 2019 22:06:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 30 Apr 2019 22:05:31 -0700 Message-Id: <20190501050536.15580-25-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::443 Subject: [Qemu-devel] [PATCH v2 24/29] target/cris: Use tcg_gen_abs_tl 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: "Edgar E . Iglesias" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Cc: Edgar E. Iglesias Signed-off-by: Richard Henderson --- target/cris/translate.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) -- 2.17.1 diff --git a/target/cris/translate.c b/target/cris/translate.c index b005a5c20e..31b40a57f9 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -1686,18 +1686,11 @@ static int dec_cmp_r(CPUCRISState *env, DisasContext *dc) static int dec_abs_r(CPUCRISState *env, DisasContext *dc) { - TCGv t0; - LOG_DIS("abs $r%u, $r%u\n", dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); - t0 = tcg_temp_new(); - tcg_gen_sari_tl(t0, cpu_R[dc->op1], 31); - tcg_gen_xor_tl(cpu_R[dc->op2], cpu_R[dc->op1], t0); - tcg_gen_sub_tl(cpu_R[dc->op2], cpu_R[dc->op2], t0); - tcg_temp_free(t0); - + tcg_gen_abs_tl(cpu_R[dc->op2], cpu_R[dc->op1]); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op2], cpu_R[dc->op2], cpu_R[dc->op2], 4); return 2;