From nobody Tue Feb 10 23:14:12 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1633637788; cv=none; d=zohomail.com; s=zohoarc; b=BmxbAGfZ1JBRw5+ADyIYrlxDyMuMd9USPGjS2KH+J61AOhyxhO6ag0lttgBUDQW5a0GL3p/dRelL8CNIY31koJN4K8gsJdvpkr0vKV0nnIm+zYxbLhixxndoG9r5qj4lJNtijvNr6BVvCgLb7g/Mlb7BYn6q5r2JriCyeDC4iKM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1633637788; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=b8yIT3KaJZYt5gy5TyzFmTT/EtPGhvDZ/H5CgGbMauM=; b=C+SGiPiv7vMhn4xWSMBA9XmZVQnYuMR5Ut/d2dWBicEMTdd4EiQo7Vq3BwlyWdrExaNNXfB2lrjQDUmRRyHH6jD4DxkRkUD6EluyeWK0uzKJy6pK2/uXK9XgNb3moOXm2BPxxbHoZYlqIkCLeg4O0uOtzF7kUxNM7MlOBYiWa/A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 163363778850652.098694001648255; Thu, 7 Oct 2021 13:16:28 -0700 (PDT) Received: from localhost ([::1]:49352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYZoZ-0004Cz-Er for importer@patchew.org; Thu, 07 Oct 2021 16:16:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYZXF-0007Vi-D6 for qemu-devel@nongnu.org; Thu, 07 Oct 2021 15:58:34 -0400 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:34676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYZXD-0003pu-8I for qemu-devel@nongnu.org; Thu, 07 Oct 2021 15:58:33 -0400 Received: by mail-pg1-x533.google.com with SMTP id 133so851085pgb.1 for ; Thu, 07 Oct 2021 12:58:30 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id t2sm8995380pjf.1.2021.10.07.12.58.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 12:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=b8yIT3KaJZYt5gy5TyzFmTT/EtPGhvDZ/H5CgGbMauM=; b=wqJmIrBAe00fNIO30IGVx901g/Ju6u1wjqsWDURYS9GkMDZosjlE3IcD1JaxNbgFzT zDNgwKgFCX5APSbCyFV9moPG69I4l/1cee/A1nPxDjgA1EIhlzXCCB+I+RYnfTUVpmPV zHpM/VUciZKabVebTsWkcHyKPxZ+volL/1Gt7swlUxDkjDnLDVugD0BugpaX2s8gJOe6 gES1ON9GsNmviyN/xL5hSHbZOst25PDeUrYBejvYCETxqCCzpmiOWh8nNAw75lUN1Ob7 8oH9dYQCHD32FzXkXcmIXDFE/QEypruhsBV7CpTL+OM9bdJUrwSu2GdS4OAwI3KlpGZO 9Lhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b8yIT3KaJZYt5gy5TyzFmTT/EtPGhvDZ/H5CgGbMauM=; b=K4MCEVDKi1z6YTEPzOTXr/3LqSyE+bTDivovofVCrjJyXDzfpwvjRRsY3KJRHuKOLT 9mcCeF2yGQGgudbwR02INTJYxiYuLK9izZIO7Ps9SVAyRUuNLO+qOX6HPZh5flKiFczu DlL8wfST+jEXyt/A8OI+xIBzaeVBWSarOns4+rY4l9ji7+ZRLwlhXvLb/5h80WIM760q e6k+9iRkvbzDw+Z8pT7nm2LSkOUJ+FJZPwA35LF+b2WydZb5vqldJk3ajbokrVEJqFnw baRv3XKO2ntaMaHXHkyJLWJ/G1Qg9X7igVD/UNZctRcNim5SnX116rGGBp/KEelV+5jn AJNw== X-Gm-Message-State: AOAM533L9VLnRRSigrIkDDaAf56Da1mCl41PYuwJ7rzdf3e7P6csADfk 5J9pvGuLjr26uRe/3I/BTp2S5QaWvwho9A== X-Google-Smtp-Source: ABdhPJxuMV5JNKvZqOlPsf4bsK00Dig1yX7hHN/G+evaWCrAMcl2qHyW+He9oDfjizN+Pi1k6TF61g== X-Received: by 2002:a63:230c:: with SMTP id j12mr1246192pgj.1.1633636709406; Thu, 07 Oct 2021 12:58:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 42/48] tcg/optimize: Add more simplifications for orc Date: Thu, 7 Oct 2021 12:54:50 -0700 Message-Id: <20211007195456.1168070-43-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211007195456.1168070-1-richard.henderson@linaro.org> References: <20211007195456.1168070-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x533.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1633637789253100001 Content-Type: text/plain; charset="utf-8" Two simplifications that were missing from before the split to fold functions, and are now easy to provide. Signed-off-by: Richard Henderson --- tcg/optimize.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tcg/optimize.c b/tcg/optimize.c index ad94f246ff..9c11f83a4a 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -1562,6 +1562,8 @@ static bool fold_or(OptContext *ctx, TCGOp *op) static bool fold_orc(OptContext *ctx, TCGOp *op) { if (fold_const2(ctx, op) || + fold_xx_to_i(ctx, op, -1) || + fold_xi_to_x(ctx, op, -1) || fold_xi_to_not(ctx, op, 0)) { return true; } --=20 2.25.1