From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4E9503858D37; Tue, 16 Apr 2024 11:50:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E9503858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713268206; bh=Dq9l9TXs0mYkjeUQSdB9izy78uYRcxl47h/l/lQE7v0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EGYAi9z5Gu4fd3i0CSPbrAl9oF98AvXDuyyiZs0VF80KPIatXvqoeffCS3dhEUBoZ /hlZLkIXZP+sZjT9s5H3R8QShYWTshjD25xnzpRi8ZkBhdmHQcnwXMREPsTYDZGuVV tpOQC1QM5yqfhYnuXvVA33iq7w5HwAJninYGLcRY= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114734] [14] RISC-V rv64gcv_zvl256b miscompile with -flto -O3 -mrvv-vector-bits=zvl Date: Tue, 16 Apr 2024 11:50:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: needs-bisection, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW 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=3D114734 --- Comment #2 from Richard Biener --- probably -fwhole-program is enough, -flto not needed(?) # vectp_g.248_1401 =3D PHI ... _1411 =3D .SELECT_VL (ivtmp_1409, POLY_INT_CST [2, 2]); .. vect__193.250_1403 =3D .MASK_LEN_LOAD (vectp_g.248_1401, 32B, { -1, ... }, _1411, 0); vect__194.251_1404 =3D -vect__193.250_1403; vect_iftmp.252_1405 =3D (vector([2,2]) long int) vect__194.251_1404; # vect_iftmp.252_1406 =3D PHI # loop_len_1427 =3D PHI <_1411(5)> ... _1407 =3D loop_len_1427 + 18446744073709551615; _1408 =3D .VEC_EXTRACT (vect_iftmp.252_1406, _1407); iftmp.3_1204 =3D _1408; is stored to b[15]. Doesn't look too odd to me.=