public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111317] New: RISC-V: Incorrect COST model for RVV conversions
@ 2023-09-07  7:09 juzhe.zhong at rivai dot ai
  2023-09-12 14:29 ` [Bug target/111317] " rdapp at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-09-07  7:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111317

            Bug ID: 111317
           Summary: RISC-V: Incorrect COST model for RVV conversions
           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: ---

#include <stdint.h>

void foo (int32_t *__restrict a, int64_t * __restrict b, int n)
{
    for (int i = 0; i < n; i++)
      b[i] = (int64_t)a[i];
}

--param=riscv-autovec-preference=scalable -O3 -fopt-info-vec-missed:
Failed to vectorize:

<source>:5:23: missed: couldn't vectorize loop
<source>:6:24: missed: not vectorized: no vectype for stmt: _4 = *_3;

However, try -fno-vect-cost-model.

We must adjust the COST model for RVV corretly.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-13 11:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-07  7:09 [Bug c/111317] New: RISC-V: Incorrect COST model for RVV conversions juzhe.zhong at rivai dot ai
2023-09-12 14:29 ` [Bug target/111317] " rdapp at gcc dot gnu.org
2023-12-13 11:52 ` cvs-commit at gcc dot gnu.org
2023-12-13 11:54 ` juzhe.zhong at rivai dot ai

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).