public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "juzhe.zhong at rivai dot ai" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111857] New: RISC-V: Failed to vectorize small GNU vector if zvl4096b with fixed-vlmax Date: Wed, 18 Oct 2023 06:19:56 +0000 [thread overview] Message-ID: <bug-111857-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111857 Bug ID: 111857 Summary: RISC-V: Failed to vectorize small GNU vector if zvl4096b with fixed-vlmax Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: juzhe.zhong at rivai dot ai Target Milestone: --- typedef char vnx16i __attribute__ ((vector_size (16))); #define MASK_16 12, 13, 14, 15, 12, 13, 14, 15, 12, 13, 14, 15, 12, 13, 14, 15 vnx16i __attribute__ ((noinline, noclone)) test_1 (vnx16i x, vnx16i y) { return __builtin_shufflevector (x, y, MASK_16); } If we specify it as -march=rv64gcv --param=riscv-autovec-preference=fixed-vlmax. it can vectorize. But failed to vectorize it with -march=rv64gcv_zvl4096b --param=riscv-autovec-preference=fixed-vlmax https://godbolt.org/z/zx816ao5o
next reply other threads:[~2023-10-18 6:19 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-10-18 6:19 juzhe.zhong at rivai dot ai [this message] 2023-10-18 6:21 ` [Bug c/111857] " juzhe.zhong at rivai dot ai 2023-10-18 20:11 ` [Bug target/111857] " pinskia at gcc dot gnu.org 2023-10-21 1:25 ` cvs-commit at gcc dot gnu.org 2023-10-21 3:29 ` juzhe.zhong at rivai dot ai
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-111857-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).