From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 307563858C55; Tue, 17 May 2022 02:20:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 307563858C55 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105624] New: [13 Regression] ICE in final_scan_insn_1, at final.cc:2861 (error: could not split insn) Date: Tue, 17 May 2022 02:20:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: asolokha at gmx dot com 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: 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, 17 May 2022 02:20:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105624 Bug ID: 105624 Summary: [13 Regression] ICE in final_scan_insn_1, at final.cc:2861 (error: could not split insn) Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: x86_64-pc-linux-gnu gcc 13.0.0 20220515 snapshot (g:18547874ee205d830acb31f1e3c1c89fc7725c14) I= CEs when compiling the following testcase w/ -march=3Dk8 -O1: union U { double d; unsigned long long int i; }; double fabs (double x) { union U u; u.d =3D x; u.i &=3D ~0ULL >> 1; return u.d; } % x86_64-pc-linux-gnu-gcc-13.0.0 -march=3Dk8 -O1 -c ifnwa4ea.c ifnwa4ea.c: In function 'fabs': ifnwa4ea.c:15:1: error: could not split insn 15 | } | ^ (insn 8 17 18 2 (parallel [ (set (reg:DI 0 ax [91]) (and:DI (reg:DI 0 ax [91]) (reg:DI 20 xmm0 [89]))) (clobber (reg:CC 17 flags)) ]) "ifnwa4ea.c":14:11 530 {*anddi_1_btr} (expr_list:REG_DEAD (reg:DI 20 xmm0 [89]) (expr_list:REG_UNUSED (reg:CC 17 flags) (nil)))) during RTL pass: final ifnwa4ea.c:15:1: internal compiler error: in final_scan_insn_1, at final.cc:2861 0x73a629 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220515/work/gcc-13-20220515/gcc/rt= l-error.cc:108 0x6c15f7 final_scan_insn_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220515/work/gcc-13-20220515/gcc/fi= nal.cc:2861 0xb6e51b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220515/work/gcc-13-20220515/gcc/fi= nal.cc:2940 0xb6e775 final_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220515/work/gcc-13-20220515/gcc/fi= nal.cc:1997 0xb6f351 rest_of_handle_final =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220515/work/gcc-13-20220515/gcc/fi= nal.cc:4285 0xb6f351 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220515/work/gcc-13-20220515/gcc/fi= nal.cc:4363=