From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2DE0C3858C2C; Tue, 4 Jan 2022 13:16:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DE0C3858C2C From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103797] Clang vectorized LightPixel while GCC does not Date: Tue, 04 Jan 2022 13:16:57 +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: 12.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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: bug_status version resolution 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2022 13:16:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103797 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Version|unknown |12.0 Resolution|--- |FIXED --- Comment #20 from Richard Biener --- The division is now vectorized, your short testcase produces t: .LFB0: .cfi_startproc movss f(%rip), %xmm4 movss test+8(%rip), %xmm3 movq test(%rip), %xmm0 mulss %xmm4, %xmm3 movaps %xmm4, %xmm1 shufps $0xe0, %xmm1, %xmm1 mulps %xmm1, %xmm0 movhps .LC0(%rip), %xmm1 rcpps %xmm1, %xmm2 sqrtss %xmm3, %xmm3 mulps %xmm2, %xmm1 sqrtps %xmm0, %xmm0 divss %xmm4, %xmm3 mulps %xmm2, %xmm1 addps %xmm2, %xmm2 subps %xmm1, %xmm2 mulps %xmm2, %xmm0 movlps %xmm0, test(%rip) movss %xmm3, test+8(%rip) ret=