From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4E8C43858403; Sat, 3 Feb 2024 06:57:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E8C43858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706943438; bh=+nnPi6MlMcngdq2RnyCUXLduM9m2MAeTmiSKdpfJHmc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eFf7H05KfDqj40HG/cAEY/IPbcI1B8H+x8jF4XCT3fkjm+40h1pcoRhi8MLf0efxT yMZRutt8lGuYFAEfYKEstD2CdznPeMq1RqJWa447q55Cab4MMa0rNjCq/RQdXJ14xV XbVohytXEww5Bjglj3OopddHPyLqU2nE10hfkHLM= From: "pan2.li at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/51492] vectorizer does not support saturated arithmetic patterns Date: Sat, 03 Feb 2024 06:57:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.6.2 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pan2.li at intel dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D51492 --- Comment #15 from Li Pan --- (In reply to Tamar Christina from comment #14) > Awesome! Feel free to reach out if you need any help. >=20 > It=E2=80=99s likely easier to start with add and sub and get things pipe = cleaned and > expand incrementally than to try and do it all at once. Cool, thanks in advance. I will first try to make a SAT_ADD to the direct optab for a POC following = your RFC and suggestion. Looks like at least match.pd and internal-fn.def will be touched. I am learning how match.pd works right now.=