public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/110496] New: ICE: tree check: expected none of vector_type, have vector_type in find_bswap_or_nop_1, at gimple-ssa-store-merging.cc:654
@ 2023-06-30  9:21 sirl at gcc dot gnu.org
  2023-06-30  9:51 ` [Bug tree-optimization/110496] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: sirl at gcc dot gnu.org @ 2023-06-30  9:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110496
           Summary: ICE: tree check: expected none of vector_type, have
                    vector_type in find_bswap_or_nop_1, at
                    gimple-ssa-store-merging.cc:654
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sirl at gcc dot gnu.org
  Target Milestone: ---

This testcase (reduced with cvise):

long contents, f_num;
int decide();
int f_MV0__x;
void f() {
  unsigned char *rptr;
  unsigned char valbuf[6];
  rptr = (unsigned char *)contents;
  if (decide())
    do {
      __builtin_memcpy(valbuf, &f_MV0__x, sizeof(int));
      (&valbuf[0])[4] = (&valbuf[0])[5] = 0;
    } while (0);
  else {
    int MV0__x = f_num;
    __builtin_memcpy(valbuf, &MV0__x, sizeof(int));
    (&valbuf[0])[4] = (&valbuf[0])[5] = 0;
  }
  rptr[1] = valbuf[4];
  rptr[2] = valbuf[5];
  rptr[4] = valbuf[1];
  rptr[5] = valbuf[2];
  __builtin_memset(valbuf, 0, 8);
}

ICEs with gcc@r14-2190:

during GIMPLE pass: store-merging
testcase.c: In function 'f':
testcase.c:4:6: internal compiler error: tree check: expected none of
vector_type, have vector_type in find_bswap_or_nop_1, at
gimple-ssa-store-merging.cc:654
    4 | void f() {
      |      ^
0x921335 tree_not_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/tree.cc:8936
0x11175d8 tree_not_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/tree.h:3581
0x11175d8 find_bswap_or_nop_1
        ../../gcc/gimple-ssa-store-merging.cc:654
0x17c6758 process_store
        ../../gcc/gimple-ssa-store-merging.cc:5269
0x17c6758 execute
        ../../gcc/gimple-ssa-store-merging.cc:5557

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

end of thread, other threads:[~2023-06-30 11:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-30  9:21 [Bug tree-optimization/110496] New: ICE: tree check: expected none of vector_type, have vector_type in find_bswap_or_nop_1, at gimple-ssa-store-merging.cc:654 sirl at gcc dot gnu.org
2023-06-30  9:51 ` [Bug tree-optimization/110496] " rguenth at gcc dot gnu.org
2023-06-30 10:15 ` sirl at gcc dot gnu.org
2023-06-30 10:59 ` cvs-commit at gcc dot gnu.org
2023-06-30 11:00 ` rguenth 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).