From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2CD543858438; Mon, 18 Jul 2022 19:24:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CD543858438 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106347] New: [13 Regression] ICE in ix86_output_ssemov, at config/i386/i386.cc:5565, or ICE in final_scan_insn_1, at final.cc:2860 (error: could not split insn) Date: Mon, 18 Jul 2022 19:24:37 +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: Mon, 18 Jul 2022 19:24:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106347 Bug ID: 106347 Summary: [13 Regression] ICE in ix86_output_ssemov, at config/i386/i386.cc:5565, or ICE in final_scan_insn_1, at final.cc:2860 (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-unknown-linux-gnu 1. gcc 13.0.0 20220717 snapshot (g:7bcd7f47359b903bf7a193b95d4450d9d69c60ba) I= CEs when compiling the following testcase w/ -O2 -fno-expensive-optimizations: __int128 m; int n; __attribute__ ((noinline)) int return_zero (void) { return 0; } void foo (void) { while (m < 0) { if (n || return_zero ()) __builtin_trap (); ++m; } } % x86_64-unknown-linux-gnu-gcc-13.0.0 -O2 -fno-expensive-optimizations -c n75cwvsz.c during RTL pass: final n75cwvsz.c: In function 'foo': n75cwvsz.c:20:1: internal compiler error: in ix86_output_ssemov, at config/i386/i386.cc:5565 20 | } | ^ 0x7bc5e8 ix86_output_ssemov(rtx_insn*, rtx_def**) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220717/work/gcc-13-20220717/gcc/co= nfig/i386/i386.cc:5565 0xb34761 final_scan_insn_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220717/work/gcc-13-20220717/gcc/fi= nal.cc:2826 0xb34d0b 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_p20220717/work/gcc-13-20220717/gcc/fi= nal.cc:2939 0xb34eb4 final_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220717/work/gcc-13-20220717/gcc/fi= nal.cc:1996 0xb35a66 rest_of_handle_final =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220717/work/gcc-13-20220717/gcc/fi= nal.cc:4284 0xb35a66 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220717/work/gcc-13-20220717/gcc/fi= nal.cc:4364 2. Changing "while (m < 0)" to "while (m < 1)" yields the following ICE instea= d: n75cwvsz.c:20:1: error: could not split insn 20 | } | ^ (insn:TI 3 57 93 5 (set (mem/c:V1TI (reg/f:DI 7 sp) [3 %sfp+-16 S16 A128]) (reg:TI 4 si [orig:84 _3 ] [84])) "n75cwvsz.c":18:7 81 {*movti_internal} (nil)) during RTL pass: final n75cwvsz.c:20:1: internal compiler error: in final_scan_insn_1, at final.cc:2860 0x727cc3 _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_p20220717/work/gcc-13-20220717/gcc/rt= l-error.cc:108 0x6bc2f0 final_scan_insn_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220717/work/gcc-13-20220717/gcc/fi= nal.cc:2860 0xb34d0b 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_p20220717/work/gcc-13-20220717/gcc/fi= nal.cc:2939 0xb34eb4 final_1 =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220717/work/gcc-13-20220717/gcc/fi= nal.cc:1996 0xb35a66 rest_of_handle_final =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220717/work/gcc-13-20220717/gcc/fi= nal.cc:4284 0xb35a66 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.0_p20220717/work/gcc-13-20220717/gcc/fi= nal.cc:4364=