From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD8BD388F07B; Mon, 29 Jun 2020 10:58:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD8BD388F07B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593428300; bh=V/OL1ShW0GfxygyMiqvm4JroPgTnKTLWErGLUAbAv6I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KTFIll9zaGHUjSngMvvg0tPAKEVxwnb6LEpwoulXgKKFDePnFLdBf9IzxH/JIvXLO /ljuN7+udNfPLJwp7x1uPk+Nt3wmQN7AYGelhdeEKjEgDDgRLnAD/zy9xIN7f3UgwD NBQVzwPYgDL6w9Ol6DmBMn3O9Vi1UIccdgYm4HIw= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95854] ICE in find_bswap_or_nop_1 of pass store-merging Date: Mon, 29 Jun 2020 10:58:20 +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: 11.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: 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 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: Mon, 29 Jun 2020 10:58:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95854 --- Comment #2 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:35cf3c55165efe8226cb9e5397ab0620130396ea commit r11-1704-g35cf3c55165efe8226cb9e5397ab0620130396ea Author: Kaipeng Zhou Date: Wed Jun 24 22:48:45 2020 +0800 store-merging: ICE in find_bswap_or_nop_1 PR95854. The patch add a judgement in find_bswap_or_nop_1 to make sure both operand1 and operand2 cannot be converted to unsigned HOST_WIDE_INT. If not, return NULL. gcc/ChangeLog: 2020-06-24 Kaipeng Zhou PR tree-optimization/95854 * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Return NULL if operand 1 or 2 of a BIT_FIELD_REF cannot be converted to unsigned HOST_WIDE_INT. gcc/testsuite/ChangeLog: 2020-06-24 Kaipeng Zhou PR tree-optimization/95854 * gcc.dg/pr95854.c: New test.=