Message ID | 20241222162446.2415717-42-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp3036258wrq; Sun, 22 Dec 2024 08:31:55 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWqi6FyX+AISNHsIYjE4wRoF4bnshEwYwm9Ul21THRQOo6Krx/BEblTP9yFYon5mat05YJ5qA==@linaro.org X-Google-Smtp-Source: AGHT+IEg5vD0uKLueoUShtrHOSwogh2e2i16ZG4+jVLjYfigkr6+c1VBNQk+X8nDXy8AFY4+2E1t X-Received: by 2002:a05:620a:1792:b0:7b6:d1f6:3df with SMTP id af79cd13be357-7b9ba75bf6emr1664836385a.21.1734885115433; Sun, 22 Dec 2024 08:31:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734885115; cv=none; d=google.com; s=arc-20240605; b=CMBjeFJEWD30eAAe9ytv6Ka8PTkw2DOuDZhOVO95mwDpLg/4RLRfiSZfCe7fg93taz DRNuuOKhfo7FBHZ6dZsex4miqOmJjcTgw3KSRlSd5kdE4KcrdoMJ2pKlv01XDuaoCCBY ueuzqV6YsV0dz7qwUuGkVFctMkV/qJJk6hoNv6SZs4ccTWGepsQA/dd0YlL3jz/Jjg2o 8BwtQGUUsyVkt4wIppYZLD99wx7E17kERiscxj2RwdkhrSP77Z+u4yaT/FD15HJJdiaq FXfiNme0K98Pjl5LToyUxkvoZhIdX7gcoD5FmBBfTvbOnT1S5uFUZru1TVGmLCFPGhEG 8x7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=rGaisTWn6CCAvd5l9eh9fSq3ae4swEAtCSXmPrNxbdQ=; fh=vm85eyWrvOAHduw3sqEA+cYBqvHB7M0MHFcRJg7VWOo=; b=KwgCtVFgI7PE93/v//+r93MwfhgL/IEU3o5nwOwEjOM+ccSLer2Hk0c68Pwe6K5BnE PKvJjabRZTOPH8dmcyRIGL4qx9T3qGj7L1h50YWCsCXNnfUx9YXLE5mEe2MrqTHcIz+e VRC1IWTlKoBJ4IDlPQGQSPbo/+XUC5tPLH/N8hpIuLeI4QO0OpyrdJHNhDWw3A1OG6DZ sl/kGefxVhkibrozGMJyDb2nBQAN0ofd91J9Y58GlMHXhbs8/dykG0lO6XA0F9bK9aF8 60H63nOBX8Enk8G2KeFLcdRoqUtGPjMAlYoLyqCkqcpFCDZtlx0pZdXKqFsMhyl+O9qv i8OQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yMpELYTb; 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; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b9ac2ad91asi1013687885a.39.2024.12.22.08.31.55 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Dec 2024 08:31:55 -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=yMpELYTb; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tPOoY-0004sz-0Z; Sun, 22 Dec 2024 11:28:23 -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 <richard.henderson@linaro.org>) id 1tPOoT-0004oV-RA for qemu-devel@nongnu.org; Sun, 22 Dec 2024 11:28:18 -0500 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1tPOoS-0003if-9C for qemu-devel@nongnu.org; Sun, 22 Dec 2024 11:28:17 -0500 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-725ee27e905so4253091b3a.2 for <qemu-devel@nongnu.org>; Sun, 22 Dec 2024 08:28:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734884895; x=1735489695; darn=nongnu.org; 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=rGaisTWn6CCAvd5l9eh9fSq3ae4swEAtCSXmPrNxbdQ=; b=yMpELYTbGDEy8dq7HlpmvyPsBEW0p6u4eYfCSxDg94wSyeuSo/9/WMj6VuHwL/DrgE kNbN4fIbDZq31gC5TYSngVr3YDMSzSC0BZC7QLoUJ94XwcqpTarho1GPl+ooX99obtCZ T0aRQb5WxI3PcKzqM5Jk52lod5z6X+CeZ2XwpsHCnPayB5/mfR6yYljEHHfbjz+jcXMI KxP7rl+bZbO7KMofUW5vNgCk6a4mXJ+xD21LOYiyhrAwQHieADng2EGbWLcUHmIy1VDO Qpqu/T1NTt2Udthgd8eHTX/zvfB92GvcIm9uyKvxWTSA3+bUJ/Ia6BimJA5p6TBE02Sx wuig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734884895; x=1735489695; 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=rGaisTWn6CCAvd5l9eh9fSq3ae4swEAtCSXmPrNxbdQ=; b=juf2nWPhTuydp/UdnOCSJdyNmgWrqqha7yZ9rcwiYfhaFfdulet/voYr/dPgSbIsdB QV2R04oNpNfRKyhqx42uJsmquuezTPiFhzaOjFt06ncOpY7HIEklV/QliY4tagWNsson BDg+b7IGkZuTVLkeo5tpxS2QqWYA3XoSHQc1fI7MS8seUgRt5hfje3yB3rgQLS26bCpn rCYf3CejjW4ARibl5s77ZUkq1Lpxuu4fMtx1aKUThWrwh7t7irbiQRzPZiZLKokXEFG2 Zq9iEduCjlGOCVV/kXKokKkJnyc28r5bvlvWLUeEAsqR4+k/wyGB6hgRAbgPXJXqOn8x Z4Bg== X-Gm-Message-State: AOJu0YwbRY3bIxpUw6v5QfvKLPN0K4jQOJ8AWc0PD0r3tv0P+jY78w1x c/pUxKms7WAXbFMJdy2Zz8iMPR+N5Ck9r6oiLi8vyWapwzvxxpJLszbwzUouoP7A2nZ1W8FU6vC kQUw= X-Gm-Gg: ASbGncvrAd4I+Kox1G6+gov04GSCwGYtmaCFxY7M3Ydr6uAGo5mDtJAm3paodyBm5an u02yvkqo6czhDtsW0yeAFGbmaZt3Xz4UCaTad006IwbkbHSu9xcMo/QJTpVcQ2wqwwSxI8C8nHI Uvuj7Nzrg1r/LwdlGIcO4nrEy9PmX9gTGCI6DeNLoYSkzN+7io4CbZZ+WIQf2vsrdDB5KMGXKpl AqN0FtQzC0L64X0UuQVjp5WjjxZadASvJa6fMPxs/yPKlY4VXM1dxNhVq/1Nic= X-Received: by 2002:a05:6a00:3cc1:b0:726:41e:b32e with SMTP id d2e1a72fcca58-72abdd3ced1mr12744599b3a.4.1734884894729; Sun, 22 Dec 2024 08:28:14 -0800 (PST) Received: from stoup.. ([71.212.144.252]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-842dcaca43bsm5848808a12.66.2024.12.22.08.28.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2024 08:28:14 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: Pierrick Bouvier <pierrick.bouvier@linaro.org> Subject: [PATCH v3 41/51] tcg/optimize: Simplify sign bit test in fold_shift Date: Sun, 22 Dec 2024 08:24:36 -0800 Message-ID: <20241222162446.2415717-42-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241222162446.2415717-1-richard.henderson@linaro.org> References: <20241222162446.2415717-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg: Remove in-flight mask data from OptContext
|
expand
|
diff --git a/tcg/optimize.c b/tcg/optimize.c index 052b5a060e..e53e6b6969 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -2513,7 +2513,7 @@ static bool fold_sextract(OptContext *ctx, TCGOp *op) static bool fold_shift(OptContext *ctx, TCGOp *op) { - uint64_t s_mask, z_mask, sign; + uint64_t s_mask, z_mask; TempOptInfo *t1, *t2; if (fold_const2(ctx, op) || @@ -2548,8 +2548,7 @@ static bool fold_shift(OptContext *ctx, TCGOp *op) * If the sign bit is known zero, then logical right shift * will not reduce the number of input sign repetitions. */ - sign = -s_mask; - if (sign && !(z_mask & sign)) { + if (~z_mask & -s_mask) { return fold_masks_s(ctx, op, s_mask); } break;