From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B51B3858C5E; Wed, 11 Oct 2023 02:35:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B51B3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696991701; bh=wc//BQJRT0AudFiRyKc/e347MTHo5kgZh5ucnKi+aK4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JlHj0Vq21xES/I+QeW0XWqEN+IRX0cusxa/X16wlkvCNvH/k72BoMU6AzGjHzxm7K hiUwbe6nVWxYdNGhb33BW0OsAoH9xVvWFpImU8HRnbsOPbQnGafrvW2C7lhPoIGanr XPevjY0BMlgSffGr44VrK4Qjtc1kt8rlOqX9VkR8= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111765] RISC-V: Faild to vectorize gen-vect-34.c Date: Wed, 11 Oct 2023 02:35:01 +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: missed-optimization 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=3D111765 --- Comment #3 from JuzheZhong --- If we specify the vector length to RVV and SVE: https://godbolt.org/z/njvsqYWhn Both can vectorize. ARM SVE: -msve-vector-bits=3D128 RVV: --param=3Driscv-autovec-preference=3Dfixed-vlmax=