From patchwork Mon Mar 6 00:39:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 659205 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1575517wrb; Sun, 5 Mar 2023 16:53:11 -0800 (PST) X-Google-Smtp-Source: AK7set8mRTiRyz2FlqlZPVRiZW2LaTnA6UB5TgnOkGrBJJVVAlqDHOCc5NFSF3OWtYRF+0IfpYHB X-Received: by 2002:a05:622a:1a2a:b0:3bf:b8ae:6ece with SMTP id f42-20020a05622a1a2a00b003bfb8ae6ecemr16634103qtb.10.1678063990901; Sun, 05 Mar 2023 16:53:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678063990; cv=none; d=google.com; s=arc-20160816; b=PpE1BT8yXnt+USDliZI62ylHKgTiBZGksnK65MAPsXRZj5gNaTFvZUFtulwhNMnVOZ mCYAmucYC8V1YLCUkaHdw66chFMZU4+fvhbWHf/sPlr64rlLcYm3uSJnuCtigkWWiHNP lxbpYA+iDBIZ/fTIV3Cn96cun7dfNyvZF0/lk2BbNYH/Qi9gKj/volrqWqUeY/7+lweM OyYac2SchhGKRGxwuknvfAPXVO6Jn7a+xR9peBtWHMNHR1XUom6KGjzvEHfDywcmYpiT TEB5QjD7w7rVeFM4XR8AEa0pkOpuuer791rfUn7DQMAkvSdEwOltlyQ1DK+uXRBkZQZi KCIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xyrHR54CsDUJFtmjo+tDaKZCG9mCZOTIwNBxAWSn2dY=; b=ocIraGEM/9+n+FHwEQ/TR7299RXFVh6/p6EV+67nJnsX22Ao8DY7zc4a92jpml71ad ST9EqrA6d7ixRW/G/u+cyigNVbH/s629kZUFuurOSxiqNU0UKdM3gBBeHQI0wKc+Wap6 tcgCRuXik1kYUtB0yq6dkRiDILmtWgD2v5yOOBfBjsaha2MdBOI7rtgMwDXDjeI9yydE RnqeJ4Zz671dbzR4Ff2w7j0mvvyAZi2oOM4628pkyeWt0CwH677T3SMCcZOpjIsl+lq1 ruN6g4rWoP8KcNvMOMfpZLfuqfICRHaMfYnEyT8r2mrdavwp4kH9Inmv7qSqE1YXo4rS Y9ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tbzAkqYA; 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=pass (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 q37-20020a05620a2a6500b0074271e0c985si6647125qkp.189.2023.03.05.16.53.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Mar 2023 16:53:10 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=tbzAkqYA; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYz0y-00023x-F7; Sun, 05 Mar 2023 19:47:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYz0o-0001EX-DE for qemu-devel@nongnu.org; Sun, 05 Mar 2023 19:47:36 -0500 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYz0l-00083h-SQ for qemu-devel@nongnu.org; Sun, 05 Mar 2023 19:47:33 -0500 Received: by mail-pl1-x629.google.com with SMTP id p20so8476709plw.13 for ; Sun, 05 Mar 2023 16:47:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678063649; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xyrHR54CsDUJFtmjo+tDaKZCG9mCZOTIwNBxAWSn2dY=; b=tbzAkqYAM9PBCu2+NEr9Mybbw0kTekC0KNhrhVCJ0FK9RQTV67r0/HoVYjeWJSIaG4 ZoBKdWN43m2szr8tvfEGfe5LcK+j9JmNwHDtcQ1Vw3SOokQuyR3Ecp1o1MuVnU+XFNoJ oh4R440/uEL1ZsT4zB/kWV2VujS95LO0Fqrg2pTSuPRUl4U2H/CieSOvmHSGz8Zwh9GH VkHy529R1+in6fMmjwmAr16kM2NqcKsZYig3aFI4T7y/mSNglH0I7CjFLuwbHniNtGPa DqqZMZSnnwKtPp/xRQdmKgySJazRdfDK9iqPbF7VZM6qxC6PCQDfZNMQgs6DOZ49QD8D js1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678063649; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xyrHR54CsDUJFtmjo+tDaKZCG9mCZOTIwNBxAWSn2dY=; b=PTuoGjmoAQyKSFKgYcjgODnjjp6PrG2aq04CdRqTdutPUw40AmcvEo4S6nJTCoU6VY FWyF52twP289wM+FFrM/Hg6HgN7Gk5t7NgTPnc7Uq2IoocRIP2YAS9PhtGhAMl7DhUDl +EBJ8xnX/fEUB12m5b5ADvh1UnKp45+/98ILLxrkX0oPDCYY86ojbTxENyJpQgYcFYA7 OC+cVSujxOv8qI4zQPhJ+7ezA0GYdLaQ5iDzOK/LyNSX3PnBUyVqZFLXlWaHSywurR7L y9AJgJRZB66tAme3BcFR4v6RKSw3kxJmxTXE1IbW/rcP/Ay3nOcFejug+oRCkdixN/XU KbXw== X-Gm-Message-State: AO0yUKXSmuO7bVSj8hPc21LfvSE4+syuxlLPpT/4RcRtBtvtidb4If1r IttmQ26ViIR4Yf33+mOET7n89HO6Xwt7vUmorm2FJQ== X-Received: by 2002:a17:90a:52:b0:233:b20f:e646 with SMTP id 18-20020a17090a005200b00233b20fe646mr9573862pjb.0.1678063649164; Sun, 05 Mar 2023 16:47:29 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:87cc:49bb:2900:c08b]) by smtp.gmail.com with ESMTPSA id mv15-20020a17090b198f00b0023087e8adf8sm4971492pjb.21.2023.03.05.16.47.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Mar 2023 16:47:28 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Max Filippov Subject: [PULL 82/84] target/xtensa: Use tcg_gen_subfi_i32 in translate_sll Date: Sun, 5 Mar 2023 16:39:52 -0800 Message-Id: <20230306003954.1866998-83-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230306003954.1866998-1-richard.henderson@linaro.org> References: <20230306003954.1866998-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Reviewed-by: Max Filippov Signed-off-by: Richard Henderson --- target/xtensa/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index 41b84082de..2903c73f8e 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -2324,8 +2324,8 @@ static void translate_sll(DisasContext *dc, const OpcodeArg arg[], tcg_gen_shl_i32(arg[0].out, arg[1].in, dc->sar_m32); } else { TCGv_i64 v = tcg_temp_new_i64(); - TCGv_i32 s = tcg_const_i32(32); - tcg_gen_sub_i32(s, s, cpu_SR[SAR]); + TCGv_i32 s = tcg_temp_new(); + tcg_gen_subfi_i32(s, 32, cpu_SR[SAR]); tcg_gen_andi_i32(s, s, 0x3f); tcg_gen_extu_i32_i64(v, arg[1].in); gen_shift_reg(shl, s);