From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 106BB3858CD1; Wed, 22 Nov 2023 07:29:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 106BB3858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700638185; bh=tIBpts+L9lVxfVrJWUJmUAruV2IZyPvMa0Vzdz8ouRM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=g0/PYDLW7W0gx5f3eMlkKW1+9e/NLBejwT2db67caB397eLo++D5dq2Vdsnv1FLsd s9T+siF5lK+QjjVqsHfIS7aYA/tiMFM3iTCQD7jmpQrjp3/SRrgWLRKcaEur6x4TdP Cp+ALNOx9EK4M551BhcKUVmMih+df6pc+//iqmeY= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112661] [14] RISC-V ICE: in duplicate_and_interleave, at tree-vect-slp.cc:8025 with maxval_char_3.f90 vlen256b Date: Wed, 22 Nov 2023 07:29:44 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: juzhe.zhong at rivai dot ai 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: 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=3D112661 --- Comment #2 from JuzheZhong --- (In reply to Robin Dapp from comment #1) > Confirmed, smaller example: >=20 > program main > implicit none > integer, parameter :: n=3D5 > character(len=3D6), dimension(n,n) :: a > character(len=3D6), dimension(n) :: r1 > integer :: i > logical, dimension(n,n) :: mask >=20 > write (unit=3Da,fmt=3D'(I6.6)') (i*i+200-17*i,i=3D1,n*n) > mask =3D .true. > forall (i=3D1:n) > mask(i,i) =3D .false. > end forall >=20 > r1 =3D maxval(a, dim=3D1, mask=3Dmask) >=20 > end program main >=20 > compiled with -O3 -march=3Drv64gcv_zvl256b Thanks Robin. I am gonna work on C/C++ bugs. You work on fortran so that we won't do duplicate=20 work. Is that OK for you ? Thanks.=