public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/108185] New: [RISC-V]RVV assemble not set vsetvli correct.
@ 2022-12-20  3:55 jiawei at iscas dot ac.cn
  2022-12-20  3:58 ` [Bug target/108185] " jiawei at iscas dot ac.cn
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jiawei at iscas dot ac.cn @ 2022-12-20  3:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108185
           Summary: [RISC-V]RVV assemble not set vsetvli correct.
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jiawei at iscas dot ac.cn
  Target Milestone: ---

Currently, when use gcc13 to compile follow code with rvv
extension(-march=rv64gcv -O3),


  void foo5_3 (int32_t * restrict in, int32_t * restrict out, size_t n, int
cond)
  {
    vint8m1_t v = *(vint8m1_t*)in;
    *(vint8m1_t*)out = v;
    vbool8_t v3 = *(vbool8_t*)in;
    *(vbool8_t*)(out + 200) = v3;
  }

it will generate asm as:

  vl1re8.v        v25,0(a0)
  sub     a5,a3,a5
  vs1r.v  v25,0(a1)
  vs1r.v  v25,0(a5)

seems not use vsetvli correctly, any suggestions?

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

end of thread, other threads:[~2023-03-23  8:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-20  3:55 [Bug target/108185] New: [RISC-V]RVV assemble not set vsetvli correct jiawei at iscas dot ac.cn
2022-12-20  3:58 ` [Bug target/108185] " jiawei at iscas dot ac.cn
2022-12-29  9:51 ` kito at gcc dot gnu.org
2023-01-03  1:54 ` jiawei at iscas dot ac.cn
2023-01-03  2:32 ` [Bug target/108185] [RISC-V] Sub-optimal code-gen for vsetvli: redundant stack store kito at gcc dot gnu.org
2023-02-03  3:05 ` juzhe.zhong at rivai dot ai
2023-03-07 13:45 ` cvs-commit at gcc dot gnu.org
2023-03-08  1:11 ` kito at gcc dot gnu.org
2023-03-23  8:40 ` cvs-commit at gcc dot gnu.org

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