From patchwork Tue Dec 10 15:23:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 848779 Delivered-To: patch@linaro.org Received: by 2002:adf:ec08:0:b0:385:e875:8a9e with SMTP id x8csp387355wrn; Tue, 10 Dec 2024 07:31:33 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX67Ith8V4MChysQrv7uuREnwtw9PAmSlS4dv8D++WvI5WxjwUVR0iizaRXoi2cBSkqHnxbuQ==@linaro.org X-Google-Smtp-Source: AGHT+IEHDBN3hnAgkDlrQC3Gg0fzqs4c2EdTTATz0rTl+6wu0eCQ/XjAMH/b2GGCrFvjkXTgYQKx X-Received: by 2002:ac8:7d8e:0:b0:467:5734:d08b with SMTP id d75a77b69052e-46771f310fdmr75101391cf.31.1733844693160; Tue, 10 Dec 2024 07:31:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733844693; cv=none; d=google.com; s=arc-20240605; b=EA51xTiUGnpbKVPcY3+qhs1iZoMRe+FcnfZwOMzANGwOhGPISddJNxKU7QsCj8qRVf sDhtu31CdAQfRhJScPsUKc28GbnrtsdR3Se2ijZxl3f9c4rKPy/lB9rgEEXM48sou/FE oUJ1QbvpFehqS5/oMSisLtKtF/K9BRSwrPv1noSElg+5I+01d6c3NnPYKhDfaUO5kOeu zMfpbVd+QoUhDRePic4H3+JS3vIBDrWwR0cthefkjgkMrnIa16LKU18GBwXZb+OFQhTC Sasq+6+y0ODicoWuH1VAaXW9y3esNNaWsGR/1eAwfnqJSK6aUb8KgSPA1SqH2x03BORP AESg== 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:to:from :dkim-signature; bh=UbTYBT6M4AjLujOKc33PQnRp59jWU9i7YG2GCTYtKsU=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=lK0HYZCaHhfIgNDHIp1D1NZB3miL+KfDybAB8Pra7n/ifKUmhRoL69JF6J9kAjLpyI bZCu6rwOpx4zwdqrEKjPl1Okjs6mcTXqiWZe/8thzSJoXXB/XO28GTkLp0StD2+0i6Qd Qt0MlnLWnaU9GHWR/g9q4saOggJ7dXOv2xOUH2APRskc6qFjwAxmiUTMeTDsNGLFSzDZ VK2eSuXohMeNKTntKHcUbaHoYvmgmK2INQ7/sjcjriSWlZqwu0Du4RGX/DRs6PFAasra u2c5qeWe9Im+FM2qh37qptdKqwkT6cIWJsG4bP+FmxRoSrp01XXYPQ+YElHOIPBx4Ah5 +zgw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GBfrUCus; 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: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4675da363c2si64810261cf.234.2024.12.10.07.31.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Dec 2024 07:31:33 -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=GBfrUCus; 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 ) id 1tL26a-0004ey-MS; Tue, 10 Dec 2024 10:24:56 -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 1tL26W-0004YF-Jc for qemu-devel@nongnu.org; Tue, 10 Dec 2024 10:24:52 -0500 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tL26V-0008PL-6Z for qemu-devel@nongnu.org; Tue, 10 Dec 2024 10:24:52 -0500 Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-3eb494c23e8so595304b6e.0 for ; Tue, 10 Dec 2024 07:24:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733844289; x=1734449089; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=UbTYBT6M4AjLujOKc33PQnRp59jWU9i7YG2GCTYtKsU=; b=GBfrUCusP+CUbTqs96Cc8iylmVwZZAXt9vTaPZJXXdilZULRqeN2cur4mpdkxXh1bm YODE8qUOGjxuoJbOSyfMuSBbyzbKfDWEQuaSKAGpukvdLZBHUJt84xCFBwSQsPlM1Jxe Q+IlQFae3vCAMxYse6o3VxvDBIyI26X2kas2j1DIWPu8/WUIPJFEA8GKoiuAejTl7BKM n34T9XAJe6H3G6726vRaLdtv7ZfSuWQQPPsqLOb6VrYWwIjcqLKQ/z9KTFTeAxYgijyJ ej1Bo+hkXDgC7jR3BUdsx38ybyJp3yeIHqcqYg15r7XVS08zALDI85kZLj5p8xluC/+d 2V1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733844289; x=1734449089; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UbTYBT6M4AjLujOKc33PQnRp59jWU9i7YG2GCTYtKsU=; b=Bh57SFPo/4zOxV0LfaA7kxrIVVXomptj8aW0fHTnfgmxghn1sk80wtxnzrfkUMpK8Z sfIKQ0im4NgkY/TPL5IVjIuXxz0jpSfAE32UyceNleigiWiMx7QBDFWOVakGo38JYHXD 5K9zd2piumZ+gH5q0GqaT8DvWooXTRjlgrqaB3qkLQKYQhN1bl5RTXWT5550Hscsevc2 OOZwzPjOMJil/G44QTlfSxmbrGA1crpyqZOvxBqkLuCwRGcgxVb1oBTczCHq4WxwHrqH YdIlLN6DevHJ3MyFzOFsVooRFtANLvE1Nq9jZ84J9MswU0Y8g0rn3nLldj6RvKElcLPl qU+w== X-Gm-Message-State: AOJu0YyOo1dPt4ohefBsSJYFXD5DGH7pyRxzm/AjdiO0/ISdcTA1Z1Yk hMt4/vgKTEIemNKABMYvu44Er8PGtgNNo+vuPi4/fOkBr7DMg5H6Ea5Cl+ij7FLkuhqbAiSzypP aSt3nO4F1 X-Gm-Gg: ASbGncu1hQGpg1jhfi3Zm2zrQaKkDBzhV0HIowXuPZ7rENeUidUbZhtIR4QTXhyJ6Ir 26sf8h2v1aD+w0P7MQs5XKATcpndpYfuiuSNb0QVLNzPNCVIWRQvtRJc5nsji06HqWZwLRVGCz+ 3TfDo6mRZayz4iCTBMtVHYGlMIOq4evNuHjZVSh2GA6pPuAL+6GTeG4n6D1Sonrlc900sSE3KnV nw67Arhf8GnpoRi1zya3g4EeEM8P7/1N70jGVQKTz5keF6djcWhZ/nL2+FQAg== X-Received: by 2002:a05:6808:144a:b0:3eb:4681:a892 with SMTP id 5614622812f47-3eb66dd6250mr3460550b6e.5.1733844289657; Tue, 10 Dec 2024 07:24:49 -0800 (PST) Received: from stoup.. ([187.217.227.247]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3eb076b9168sm2776435b6e.14.2024.12.10.07.24.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2024 07:24:49 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 33/46] tcg/optimize: Use fold_masks_z in fold_setcond2 Date: Tue, 10 Dec 2024 09:23:48 -0600 Message-ID: <20241210152401.1823648-34-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241210152401.1823648-1-richard.henderson@linaro.org> References: <20241210152401.1823648-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22c; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22c.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 Signed-off-by: Richard Henderson Reviewed-by: Pierrick Bouvier --- tcg/optimize.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index 0097502425..dd6ef3d831 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -2450,9 +2450,7 @@ static bool fold_setcond2(OptContext *ctx, TCGOp *op) return fold_setcond(ctx, op); } - ctx->z_mask = 1; - ctx->s_mask = smask_from_zmask(1); - return false; + return fold_masks_z(ctx, op, 1); do_setcond_const: return tcg_opt_gen_movi(ctx, op, op->args[0], i);