From patchwork Mon Feb 27 05:42:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 656893 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2227648wrb; Mon, 27 Feb 2023 00:11:35 -0800 (PST) X-Google-Smtp-Source: AK7set9RuHQYvB6zErFLhWu/A3aCJKc6X1HIDy00LL/Dams4gtBszQXrpTb8ONRiJnuqvlqa5cpX X-Received: by 2002:ac8:7f95:0:b0:3bd:ad1:49c with SMTP id z21-20020ac87f95000000b003bd0ad1049cmr45674542qtj.24.1677485495753; Mon, 27 Feb 2023 00:11:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677485495; cv=none; d=google.com; s=arc-20160816; b=mEUkMQJP/kUd1VbJgQxv6rpR5km/gW8vkioS2HBx7y98eYN/JLRci82tgE0qjaieIc l9zOzz10JScyvmOYUiHyxLyIwi14KWjg96bFKnIRSPXa8bqQOLsEtv43AexHpnd+xSO0 CyHidAzIk+pAj7x2VMSAOeUlmrjDHzXjBKm7w0JJlRjcvR9xptqPSvdOxlZc1+FabMkG MgDnVhXMuDkPPziYXnNreAjwv0StkSpapD/8IF41LV46prhpbjLk29b+ewnYvs+bcDnm wlUqjF5X4CxoPLLBDUJhEObCoeFRWIfEPNoNhoyffe/ILyKuDU5b1K4pHPMkSuYC7deP 1AEw== 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=JLbIXbv3c6J31oUDt+65MrM/+9+0ofz54UivRKjyGyw=; b=N1Kp+HUK3E8WjMwu9RSX/yX2XBxn5LJ4kxYqTJFcf8PK9BnHXt5JfUKSFtvrr6kboL h0QY7MaRou0nIfvbCSg0hX5TgmL9g16Kr3eHMfm52lReRpYCGtAy/CNXdV4sRe7Wds35 byHOjopnJswNunqn7RxCK8fMTINRB5D4bLBSR3K3zZlF519rBKVOMeCjbfvLFuGDArj0 EMP2JLxZJJgsdsz3OqNLmVxA8dkAI0rSEfJ7/JHOxv2JOle15ITVm7Dbp2PKXYyipdR9 T9wmCSMe/eu/ycj8fNMsFlClgmEs1P+anz3/7rX5rZo3Qpt+FTBKNymfTXCN5DDWZ3IY kCww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QnidWXv7; 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 x19-20020ac85f13000000b003ba2cb1d4a9si6222235qta.494.2023.02.27.00.11.35 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 00:11:35 -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=QnidWXv7; 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 1pWWOY-0001lk-A0; Mon, 27 Feb 2023 00:49:54 -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 1pWWNX-00055F-Sc for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:48:52 -0500 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWWNU-0007dR-FI for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:48:51 -0500 Received: by mail-pj1-x1029.google.com with SMTP id nw10-20020a17090b254a00b00233d7314c1cso8875675pjb.5 for ; Sun, 26 Feb 2023 21:48:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=JLbIXbv3c6J31oUDt+65MrM/+9+0ofz54UivRKjyGyw=; b=QnidWXv7ZWJNKObdzSVc0lCypHJDXCDp27/D8eTGG/43vIpHq9h8xYz5Pvyb7Sgpfc CgsW9z9S21qR5S94+z116PdZ94/XPR9hLg9Xmij0gCR/niXzntOmtudUBdaFA/D6XJzG arfAX+5CcuspWigeaZ3Q7g5cloXI6QZs9WO59jqOwDCqpXJNuwIYzfIJHXwiX8RlWM79 48eWVM6ZqL/3nPce203Qdj0BFdXa6h1bv2XJdIJWHPbDiqL5m/9u/sGYiKVPWvsWafQn diivcANvMdEnNMfzJK0zvqhdss1oYge3ulX9kODNjk6uDp1xiv6Vx/QrpVUXAqbfNcKP tSBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=JLbIXbv3c6J31oUDt+65MrM/+9+0ofz54UivRKjyGyw=; b=1p9hZSqnKGU/+GtdmAP14iNm2rJVImO/rIMXCbgg/L3YU76ML08fGQnCyuwlN1tt+F BUesj+Z6CgCyP0+mkimMauuwzfr1zHf7Gp/wYNKFn7Jd/WQzPyhRHPV8l2JjJ73k/+al XzLCpJfVpzQqFlsfURCv6iRrKLohCjOmignqMIvqvb8+rJakUkVdRD3AblqdYktT/2Qg YQ5g7njsDDHQMrL5mms5XY9jcALTvJok78NIPG4pIQMVQ+hxYSkaKlCJOK+Q1wpqjsqS VfaHGQ/XoJma8bm5oE9hd+TiqiViIY0Wb4+ngYWziEDTNXmySGU607mfl6ao7TAKw4Hf pjkw== X-Gm-Message-State: AO0yUKXDCxSeSLori7nIocJP2LcqaHmqVO7CCRkIvDhaOXRgwp7nULIK Jgu8rei1cnvoQym/jhFCuV38so6gqn2GUBtxRv4= X-Received: by 2002:a17:902:f604:b0:19d:297:f2fb with SMTP id n4-20020a170902f60400b0019d0297f2fbmr4327822plg.53.1677476917086; Sun, 26 Feb 2023 21:48:37 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id im16-20020a170902bb1000b0019a983f0119sm3553986plb.307.2023.02.26.21.48.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 21:48:36 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, jcmvbkbc@gmail.com, kbastian@mail.uni-paderborn.de, ysato@users.sourceforge.jp, gaosong@loongson.cn, jiaxun.yang@flygoat.com, tsimpson@quicinc.com, ale@rev.ng, mrolnik@gmail.com, edgar.iglesias@gmail.com Subject: [PATCH 65/70] target/xtensa: Use tcg_gen_subfi_i32 in translate_sll Date: Sun, 26 Feb 2023 19:42:28 -1000 Message-Id: <20230227054233.390271-66-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227054233.390271-1-richard.henderson@linaro.org> References: <20230227054233.390271-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1029.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=unavailable 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 Signed-off-by: Richard Henderson Reviewed-by: Max Filippov Reviewed-by: Philippe Mathieu-Daudé --- 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);