public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/112450] New: RVV vectorization ICE in vect_get_loop_mask, at tree-vect-loop.cc:11037
@ 2023-11-09  1:14 juzhe.zhong at rivai dot ai
  2023-11-09  3:04 ` [Bug tree-optimization/112450] " juzhe.zhong at rivai dot ai
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: juzhe.zhong at rivai dot ai @ 2023-11-09  1:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112450
           Summary: RVV vectorization ICE in vect_get_loop_mask, at
                    tree-vect-loop.cc:11037
           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: ---

int a, b, d, e;
short c;
void f() {
  for (; e; e++) {
    int g = 6;
    for (; g > 2; g--) {
      int i = -8;
      while (i < 20) {
        i += 5;
        a += b;
      }
      c *= d;
    }
    b--;
  }
}

-O2 --param=riscv-autovec-lmul=m8 -fno-vect-cost-model

during GIMPLE pass: vect
<source>: In function 'f':
<source>:3:6: internal compiler error: in vect_get_loop_mask, at
tree-vect-loop.cc:11037
    3 | void f() {
      |      ^
0x7fa31fe47082 __libc_start_main
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1

https://gcc.godbolt.org/z/sda87oaW5

The ICE looks pretty odd. For partial vectorization with length, we should
never
reach 'vect_get_loop_mask' which is supposed by used by partial vectorization
with mask.

And it also reaches condition:

LOOP_VINFO_PARTIAL_VECTORS_STYLE (loop_vinfo) == vect_partial_vectors_avx512

which should be unlikely for RVV.

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

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

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-09  1:14 [Bug c/112450] New: RVV vectorization ICE in vect_get_loop_mask, at tree-vect-loop.cc:11037 juzhe.zhong at rivai dot ai
2023-11-09  3:04 ` [Bug tree-optimization/112450] " juzhe.zhong at rivai dot ai
2023-11-09  3:15 ` juzhe.zhong at rivai dot ai
2023-11-09  7:53 ` juzhe.zhong at rivai dot ai
2023-11-09  8:00 ` rguenth at gcc dot gnu.org
2023-11-09  8:10 ` juzhe.zhong at rivai dot ai
2023-11-09  9:55 ` rguenth at gcc dot gnu.org
2023-11-09 10:03 ` juzhe.zhong at rivai dot ai
2023-11-09 10:10 ` juzhe.zhong at rivai dot ai
2023-11-09 10:49 ` rguenth at gcc dot gnu.org
2023-11-09 11:37 ` rguenth at gcc dot gnu.org
2023-11-09 12:32 ` cvs-commit at gcc dot gnu.org
2023-11-12 21:15 ` pinskia 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).