From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 524613858D32; Wed, 15 Nov 2023 05:23:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 524613858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700025797; bh=9Ug5+XBKmyeZVOcf8bxNDf7t7jgblCmOC/VBy2+l0Uo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bn+AHGKOZhyC24JNAVV6XO/cgCosF1X7rgKRVCF68G4sqFCERENelC+JrDMuz7+LC L3yDpg+RB5f/V3jKTWQD/qrmQHyrc9cfBVQ3kocDfHVjcvGsdBM/+GDnCdPqDUmAiC X1mk83yUhA8tvwuRERHenyVGhsJeisEEw7cnmukM= From: "juzhe.zhong at rivai dot ai" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112538] [RISC-V] Failed to disable V-ext autovectorization using the '--param riscv-autovec-preference=none' Date: Wed, 15 Nov 2023 05:23:16 +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: 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: cc 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=3D112538 JuzheZhong changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |juzhe.zhong at rivai dot ai --- Comment #1 from JuzheZhong --- Duplicate bug of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112537 It generates vector codes since it is lower int __builtin_memcpy https://godbolt.org/z/f36feoW6x Current expanding memcpy into RVV by default as long as TARGET_VECTOR is tr= ue. More details see expand_block_move in riscv-string.cc Maybe you need to add=20 if (!flag_tree_vectorize) return false; in expand_block_move .=