From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 220A7385780D; Wed, 6 Apr 2022 09:40:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 220A7385780D From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105173] [10/11/12 Regression] ICE: during GIMPLE pass: reassoc: verify_ssa failed (definition in block 2 follows the use) at -Ofast with decimals since r7-950-g8a85cee26eabf5cf Date: Wed, 06 Apr 2022 09:40:42 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.4 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: Wed, 06 Apr 2022 09:40:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105173 --- Comment #3 from Richard Biener --- [local count: 1073741824]: i.0_1 =3D i; _2 =3D (_Decimal32) i.0_1; _12 =3D (_Decimal64) _2; _13 =3D (_Decimal64) d_8(D); _3 =3D _12 * _13; _4 =3D (_Decimal64) c_9(D); _5 =3D -_4; _6 =3D _3 * _5; d_10 =3D (_Decimal32) _6; _11 =3D (int) d_10; Transforming _12 =3D (_Decimal64) _2; into _14 =3D _12 * -1.0e+0; Transforming _3 =3D _12 * _13; into _15 =3D _14 * _4; Transforming _6 =3D _3 * _5; into _6 =3D _15 * _13; [local count: 1073741824]: i.0_1 =3D i; _2 =3D (_Decimal32) i.0_1; _14 =3D _12 * -1.0e+0; _12 =3D (_Decimal64) _2; _13 =3D (_Decimal64) d_8(D); _4 =3D (_Decimal64) c_9(D); _15 =3D _14 * _4; _6 =3D _15 * _13; d_10 =3D (_Decimal32) _6; _11 =3D (int) d_10; return _11; and the logic wrt gimple *insert_point =3D find_insert_point (stmt, oe1->op, oe2->op); ... if (insert_point =3D=3D gsi_stmt (gsi)) gsi_insert_before (&gsi, stmt, GSI_SAME_STMT); else insert_stmt_after (stmt, insert_point); does not work for (gdb) p debug_gimple_stmt (stmt) _12 =3D (_Decimal64) _2; $4 =3D void (gdb) p oe1->op $5 =3D (gdb) p oe2->op $6 =3D testing a fix.=