From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CA9723858401; Wed, 6 Mar 2024 18:25:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA9723858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709749505; bh=C94aeZv6dtaiKa7T84hm3pd2upVk5AqwPCqHXhRIWKs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=l9Wp6eKXQojBp+7Yo/FliwE32SiNV/ZC+pJyJsC2jWODPznJVi40uuysPLbKT53v/ OgLN4AHoG3kdMXDQnIwO/dUhEqNU7oCB3Saaz8OoIYkSV4rOO8XaT+kpGEKqx5XNjS DMRQ/B4fhcZ/4lmQsov49LVR6KAu15cC7It9xlE8= From: "vineetg at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112817] RISC-V: RVV: provide attribute riscv_rvv_vector_bits for VLS codegen Date: Wed, 06 Mar 2024 18:25: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: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vineetg at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED 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=3D112817 --- Comment #15 from Vineet Gupta --- (In reply to Vineet Gupta from comment #14) > 2. implement gcc toggle -mrvv-vector-bits=3Dzvl which essentially copies = the > xxx from -march string Done: commit 0a01d1232ff0a8b094270fbf45c9fd0ea46df19f Author: Pan Li Date: Fri Feb 23 15:37:28 2024 +0800 RISC-V: Introduce gcc option mrvv-vector-bits for RVV This patch would like to introduce one new gcc option for RVV. To appoint the bits size of one RVV vector register. Valid arguments to '-mrvv-vector-bits=3D' are: * scalable * zvl The scalable will pick up the zvl*b in the march as the minimal vlen. For example, the minimal vlen will be 512 when march=3Drv64gcv_zvl512b and mrvv-vector-bits=3Dscalable. The zvl will pick up the zvl*b in the march as exactly vlen. For example, the vlen will be 1024 exactly when march=3Drv64gcv_zvl1024b and mrvv-vector-bits=3Dzvl. The internal option --param=3Driscv-autovec-preference will be replaced by option -mrvv-vector-bits. Aka: * -mrvv-vector-bits=3Dscalable indicates --param=3Driscv-autovec-preference=3Dscalable * -mrvv-vector-bits=3Dzvl indicates --param=3Driscv-autovec-preference=3Dfixed-vlmax You can also take -fno-tree-vectorize for --param=3Driscv-autovec-preference=3Dnone. The internal option --param=3Driscv-autovec-preference is unavailable a= fter this patch.=