public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mumuxi_ll at outlook dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112538] New: [RISC-V] Failed to disable V-ext autovectorization using the '--param riscv-autovec-preference=none' Date: Wed, 15 Nov 2023 04:41:17 +0000 [thread overview] Message-ID: <bug-112538-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112538 Bug ID: 112538 Summary: [RISC-V] Failed to disable V-ext autovectorization using the '--param riscv-autovec-preference=none' Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mumuxi_ll at outlook dot com Target Milestone: --- Here is my test case: ``` #include <string.h> typedef char Str_30 [31]; Str_30 Str_2_Loc; void foo(void) { strcpy(Str_2_Loc, "DHRYSTONE PROGRAM"); } ``` Compiled with riscv64-unknown-elf-gcc -march=rv32imafdc_zve32f -mabi=ilp32d -S rvv_autovec_bug.c --param riscv-autovec-preference=none The result is: .string "DHRYSTONE PROGRAM" .text .align 1 .globl foo .type foo, @function foo: addi sp,sp,-16 sw ra,12(sp) sw s0,8(sp) addi s0,sp,16 lui a5,%hi(Str_2_Loc) addi a3,a5,%lo(Str_2_Loc) lui a5,%hi(.LC0) addi a4,a5,%lo(.LC0) mv a5,a3 vsetivli zero,9,e16,m8,ta,ma vle16.v v8,0(a4) vsetivli zero,9,e16,m8,ta,ma vse16.v v8,0(a5) nop lw ra,12(sp) lw s0,8(sp) addi sp,sp,16 jr ra It still generates the v-ext instructions automatically, which seems that the "--param riscv-autovec-preference=none" did not work.
next reply other threads:[~2023-11-15 4:41 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-11-15 4:41 mumuxi_ll at outlook dot com [this message] 2023-11-15 5:23 ` [Bug target/112538] " juzhe.zhong at rivai dot ai 2023-11-15 5:53 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-112538-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).