public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113913] New: [14] RISC-V: suboptimal code gen for intrinsic vcreate
@ 2024-02-13 22:33 ewlu at rivosinc dot com
  2024-02-13 22:54 ` [Bug target/113913] " pinskia at gcc dot gnu.org
  2024-02-16 23:33 ` juzhe.zhong at rivai dot ai
  0 siblings, 2 replies; 3+ messages in thread
From: ewlu at rivosinc dot com @ 2024-02-13 22:33 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113913
           Summary: [14] RISC-V: suboptimal code gen for intrinsic vcreate
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ewlu at rivosinc dot com
  Target Milestone: ---

godbolt: https://godbolt.org/z/svPsddaTd

Functions like 

vfloat16m2_t
test_vcreate_v_f16m1_f16m2 (vfloat16m1_t v0, vfloat16m1_t v1)
{
  return __riscv_vcreate_v_f16m1_f16m2 (v0, v1);
}

are generating code like

test_vcreate_v_f16m1_f16m2:
        vmv1r.v v11,v8
        vmv1r.v v10,v9
        vmv1r.v v8,v11
        vmv1r.v v9,v10
        ret

which should be optimized away into a nop like later functions in the testcase

test_vcreate_v_i64m2_i64m8:
        ret

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

end of thread, other threads:[~2024-02-16 23:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-13 22:33 [Bug target/113913] New: [14] RISC-V: suboptimal code gen for intrinsic vcreate ewlu at rivosinc dot com
2024-02-13 22:54 ` [Bug target/113913] " pinskia at gcc dot gnu.org
2024-02-16 23:33 ` 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).