From nobody Tue Feb 10 12:59:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1556950425; cv=none; d=zoho.com; s=zohoarc; b=msa4zc9zDl6lfph9fxvskmVPpFF4kv0iBgdG6VDdNx5pNQT6i46QkwG5D5bUdWu7gCkwFMAIvCYyURVN2rUcif1ev1pjDo31NkRLhzeMIHlEDbf3tNvz31Ut8ZT4AAUhLmk+7to5YhTSrDWyP3/tAJwtJp28uyphZPUweiCFeKA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556950425; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=njZylfJYYv8BcxCOaRQsx2/xRladRXvgAJ8dZdaUUo4=; b=UVVaSbh0v7cMdJctYNWuMwJTm/BD9DnGyRsTjJBN9s/Km8Wbf9OLtByWC1QEBRArSxusbh2wJ9r0JHs0hd8i4Ta1bqWrxQ3zqoFREovMvRUZl5yVB0aADlVlnCIy3H/kGm1jYczcIg2kD+rNy9+v2JejW0dRIcPHLyShVFsPRJ4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1556950425169311.86001946546; Fri, 3 May 2019 23:13:45 -0700 (PDT) Received: from localhost ([127.0.0.1]:51884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMnvT-0000ey-R1 for importer@patchew.org; Sat, 04 May 2019 02:13:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMnc6-00084w-OK for qemu-devel@nongnu.org; Sat, 04 May 2019 01:53:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMnc5-0004ZC-Qn for qemu-devel@nongnu.org; Sat, 04 May 2019 01:53:34 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:38628) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMnc5-0004Yj-LZ for qemu-devel@nongnu.org; Sat, 04 May 2019 01:53:33 -0400 Received: by mail-pf1-x443.google.com with SMTP id 10so3978639pfo.5 for ; Fri, 03 May 2019 22:53:33 -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.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 22:53:31 -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=njZylfJYYv8BcxCOaRQsx2/xRladRXvgAJ8dZdaUUo4=; b=c68dW8uTjhOrYNSajL/NL7Ypw9kvNpq4F8rO8AJWJxD+JrnvY1VqEN8hyVyjVD4sJh oikgrddzh/mFpXvlnijlsDpjIXCvnPXqWkY0jySsVWG3QVcIyS4QWPzyoiaZG1LFUt7L 6YRxphKIkf8n/l9ovZFnn3xxV7RPp3+M6iGdNQG+TxcPAcLmvZTGEiSXUtCAvDJj0108 CgxHeocsbSWkQ55VyF5TzlzT3OdwDTtjnxJAEWJ5eL8BeOGkEx9/j1Y151gRNBBBpuSg HaiiVeT2h91h+5dqAnMPT1kiZ242b03Gs1qcjSKgeWEz3cmoEr9W1wuG7unB/h5h512K srDg== 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=njZylfJYYv8BcxCOaRQsx2/xRladRXvgAJ8dZdaUUo4=; b=bh3djOOEIF042BcY77XMJoCBpvOWRl5vTv48mr07o0swD9yUQRbyU2TLYGtUzG6xxd xmb1+c1aKMyjOPe6j0SI8B/SNfC3TodP/b9paWoZq1k8yZ5PENtp1naDRSjsQ1P6RRnJ UtqNn1VmWPiYySYGmm2S0ofpAHgCtcmwdy190IfgbkY+9tZhiyZIKoFdkdS1iDoH3FiO RC/9ReEPcLJ3lLEIZ94/mWjTkhV3VXzhLjnmKslCfrBf20gzSHHDse4pkV4BsTB7LmPg rTbpBXBL2iGlTTl53/QSii3DNjRjMt7noC/EYpGojhPuJ20u4v1wK6qw4J5kEWBCyThw 04uA== X-Gm-Message-State: APjAAAWK3N3OEG9g0NDnSQlqtTtA1yxLUi6fIyk5f2OAuKRJ4vgYdVzT 7y0zDCslFO6iWKlIIuyRwvgvBcRHgM4= X-Google-Smtp-Source: APXvYqzNjj0I3XArr18UmrbdCrRAWs6NBMqrAW3LsgmKhXQSPP8eHRfi6ZD9G78loQwVhxRfJmJq8Q== X-Received: by 2002:a63:5443:: with SMTP id e3mr15950418pgm.265.1556949212426; Fri, 03 May 2019 22:53:32 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 3 May 2019 22:52:54 -0700 Message-Id: <20190504055300.18426-26-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::443 Subject: [Qemu-devel] [PATCH v3 25/31] 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: alex.bennee@linaro.org, david@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Richard Henderson Reviewed-by: David Hildenbrand --- target/cris/translate.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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, DisasContex= t *dc) =20 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); =20 - t0 =3D 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; --=20 2.17.1