public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/111234] New: RISC-V: ICE in vsetvl pass
@ 2023-08-30  9:35 lehua.ding at rivai dot ai
  2023-08-30  9:38 ` [Bug target/111234] " lehua.ding at rivai dot ai
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: lehua.ding at rivai dot ai @ 2023-08-30  9:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111234
           Summary: RISC-V: ICE in vsetvl pass
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lehua.ding at rivai dot ai
  Target Milestone: ---

For this code, there is an internal compiler error.

#include <riscv_vector.h>

vint64m2_t f (vint32m1_t *a, int b, vbool32_t m)
{
  vint32m1_t va = *a;
  vint64m2_t vb = __riscv_vwadd_vx_i64m2 (va, 1, __riscv_vsetvlmax_e64m2 ());
  vint64m2_t vc = __riscv_vadd_vx_i64m2 (vb, 1, __riscv_vsetvlmax_e64m2 ());

  if (b != 0)
    vc = __riscv_vadd_vx_i64m2_mu (m, vc, vc, 1, __riscv_vsetvlmax_e64m2 ());

  return vc;
}

online reproduce URL: https://godbolt.org/z/j5ToxWYc8

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

end of thread, other threads:[~2024-04-29 14:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-30  9:35 [Bug target/111234] New: RISC-V: ICE in vsetvl pass lehua.ding at rivai dot ai
2023-08-30  9:38 ` [Bug target/111234] " lehua.ding at rivai dot ai
2023-08-31  2:10 ` cvs-commit at gcc dot gnu.org
2023-10-20  3:56 ` cvs-commit at gcc dot gnu.org
2024-04-24  8:50 ` [Bug target/111234] [13] " kito at gcc dot gnu.org
2024-04-29 14:02 ` cvs-commit at gcc dot gnu.org
2024-04-29 14:02 ` kito 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).