From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ED8653857831; Wed, 4 May 2022 12:36:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED8653857831 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105479] New: ICE in subreg_size_lowpart_offset, at emit-rtl.cc:1673 Date: Wed, 04 May 2022 12:36:02 +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, ra 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: Wed, 04 May 2022 12:36:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105479 Bug ID: 105479 Summary: ICE in subreg_size_lowpart_offset, at emit-rtl.cc:1673 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, ra Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: aarch64-linux-gnu gfortran 13.0.0 20220501 snapshot (g:75bbc3da3e5f75f683fa33e309045c582efd20= eb) ICEs when compiling the following testcase, extracted from test/f90_correct/src/ei10.F90 from the Classic Flang test suite, w/ -mcpu= =3Da64fx -O2 -fnon-call-exceptions -ftrapv: subroutine copy_str_to_result( str, result) integer :: result(:) character(len=3D*) :: str integer :: i do i=3D1,len(str) result(i) =3D iachar(str(i:i)) enddo end subroutine % aarch64-linux-gnu-gfortran-13.0.0 -mcpu=3Da64fx -O2 -fnon-call-exceptions -ftrapv -c vdhfytlt.f90 during RTL pass: reload vdhfytlt.f90:10:14: 10 | end subroutine | ^ internal compiler error: in subreg_size_lowpart_offset, at emit-rtl.cc:1673 0x6d94a8 subreg_size_lowpart_offset(poly_int<2u, unsigned long>, poly_int<2= u, unsigned long>) =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-2= 0220501/gcc/emit-rtl.cc:1673 0xb8d4fa gen_lowpart_SUBREG(machine_mode, rtx_def*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-2= 0220501/gcc/emit-rtl.cc:1037 0xdea08f emit_spill_move =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-2= 0220501/gcc/lra-constraints.cc:1245 0xdec749 split_reg =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-2= 0220501/gcc/lra-constraints.cc:5915 0xded2e9 split_if_necessary =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-2= 0220501/gcc/lra-constraints.cc:6101 0xdfb200 inherit_in_ebb =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-2= 0220501/gcc/lra-constraints.cc:6633 0xdfb200 lra_inheritance() =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-2= 0220501/gcc/lra-constraints.cc:6958 0xde1d4c lra(_IO_FILE*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-2= 0220501/gcc/lra.cc:2404 0xd98189 do_reload =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-2= 0220501/gcc/ira.cc:5940 0xd98189 execute =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-2= 0220501/gcc/ira.cc:6126=