From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E436F3858C29; Thu, 10 Nov 2022 10:48:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E436F3858C29 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668077298; bh=1ZNPIRz9c5NpHnCv847wkY9btjuGk/Vt1Ps2v2ZdEEU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vLZpOZA5Fhj6BUMlGaGr5A8QDBcasMU8pb50vpB902/7QKdHaDZylCOUb9h5oYTK1 DaBWbnZZzlM3GXeWJuvsgOM8iMDJS33qr04nt0caqIoorQnRP1WlHNUG933Y4xMlql 51buVctg5b0f078IufEV/CSc66AwjQQQ2/3c95MA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107585] [13 Regression] ICE: in decompose, at rtl.h:2288 at -O Date: Thu, 10 Nov 2022 10:48:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.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: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.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=3D107585 --- Comment #3 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:49de156a6adb50e0624479f22c20141cadef812d commit r13-3874-g49de156a6adb50e0624479f22c20141cadef812d Author: Jakub Jelinek Date: Thu Nov 10 11:46:52 2022 +0100 i386: Fix up ix86_expand_int_sse_cmp [PR107585] The following patch fixes ICE on the testcase. I've used GEN_INT incorrectly thinking the code punts on the problematic boundaries. It does, but only for LE and GE, i.e. signed comparisons, for unsigned the boundaries are 0 and unsigned maximum, so when say unsigned char adds one to 127 or subtracts one from 128 we need to canonicalize it. 2022-11-10 Jakub Jelinek PR target/107585 PR target/107546 * config/i386/i386-expand.cc (ix86_expand_int_sse_cmp): Use gen_int_mode rather than GEN_INT. * gcc.dg/pr107585.c: New test.=