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

            Bug ID: 125245
           Summary: [17 Regression] ICE at -O1 during RTL pass: x86_cse
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xxs_chy at outlook dot com
  Target Milestone: ---

gcc version 17.0.0 20260509 (experimental) (GCC)

Testcase:
#include <stdint.h>
typedef int16_t v2i16 __attribute__((vector_size(4)));
int16_t g5;
_Bool g26;
void f15(v2i16, int16_t, void *);
void f3()
{
    v2i16 vec6;
    goto lbl_br7;
lbl_br6:
    f15(vec6, 0, 0);
lbl_br7:
    vec6[0] = 0;
lbl_br10:
    g5 = vec6[0];
    vec6[1] = g5;
    if (g26) goto lbl_br6;
    g26 = 7;
    vec6[0] = 0;
    goto lbl_br10;
}

Command:
> gcc -O1 reduced.c

Dump:
during RTL pass: x86_cse
reduced.c: In function ‘f3’:
reduced.c:21:1: internal compiler error: Segmentation fault
   21 | }
      | ^
0x25d2fbd internal_error(char const*, ...)
        ../../gcc/gcc/diagnostic-global-context.cc:787
0x11d1a2f crash_signal
        ../../gcc/gcc/toplev.cc:325
0x7aa42c24251f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x1771bb1 ix86_place_single_vector_set
        ../../gcc/gcc/config/i386/i386-features.cc:3342
0x1772f02 x86_cse
        ../../gcc/gcc/config/i386/i386-features.cc:5074
0x1772f02 execute
        ../../gcc/gcc/config/i386/i386-features.cc:4464
/data/Projects/gcc-trunk/install/libexec/gcc/x86_64-pc-linux-gnu/17.0.0/cc1
-quiet -imultiarch x86_64-linux-gnu reduced.c -quiet -dumpdir a- -dumpbase
reduced.c -dumpbase-ext .c -mtune=generic -march=x86-64 -O1 -freport-bug -o
/tmp/ccwNc117.s

Reply via email to