From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C66E7384AB4D; Tue, 30 Apr 2024 08:12:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C66E7384AB4D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714464756; bh=SWZFRWRagYFUFkpAqJ1jqUhFM29mx8vP6LjeTPRTmmc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NbnJiKmS/d8QfevVsdc1PSn1WJ4G9UUojHNaC4XIOE8iFYVPcFQ6MKxGtAv2q0P/1 lQRK4D1ayRkYhMKLq69ybuckTb9wXqrhrmuLEkMDT82KBTJ6sMo09d/CF7+WrTlKkU bdhIyoLD//ifz+cg21Abm8ll1plGZiQKVpuFE8PA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114883] [14/15 Regression] 521.wrf_r ICE with -O2 -march=sapphirerapids -fvect-cost-model=cheap Date: Tue, 30 Apr 2024 08:12:36 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D114883 --- Comment #11 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:04ef92a62af3a815b86a2037267cd4e747ae225c commit r15-64-g04ef92a62af3a815b86a2037267cd4e747ae225c Author: Jakub Jelinek Date: Tue Apr 30 10:11:47 2024 +0200 vect: Adjust vect_transform_reduction assertion [PR114883] The assertion doesn't allow IFN_COND_MIN/IFN_COND_MAX, which are commutative conditional binary operations like ADD/MUL/AND/IOR/XOR, and can be handled just fine. In particular, we emit vminpd %zmm3, %zmm5, %zmm0{%k2} vminpd %zmm0, %zmm3, %zmm5{%k1} and vmaxpd %zmm3, %zmm5, %zmm0{%k2} vmaxpd %zmm0, %zmm3, %zmm5{%k1} in the vectorized loops of the first and second subroutine. 2024-04-30 Jakub Jelinek Hongtao Liu PR tree-optimization/114883 * tree-vect-loop.cc (vect_transform_reduction): Allow IFN_COND_= MIN and IFN_COND_MAX in the assert. * gfortran.dg/pr114883.f90: New test.=