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

            Bug ID: 98066
           Summary: [11 Regression] ICE: Segmentation fault (in gsi_next)
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: powerpc-*-linux-gnu

gcc-11.0.0-alpha20201129 snapshot (g:bb67ad5cff58a707aaae645d4f45a913d8511c86)
ICEs when compiling the following testcase, reduced from
gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-2.c, w/ -mvsx -O1:

typedef int v4si __attribute__ ((vector_size (16)));

void
qs (v4si i1, v4si t7, int a0)
{
  if (a0 != 0)
    t7[a0] = a0;

  if (__builtin_vec_vcmpeq_p (a0, i1, t7))
    __builtin_abort ();
}

% powerpc-e300c3-linux-gnu-gcc-11.0.0 -mvsx -O1 -c zeu112my.c
during GIMPLE pass: isel
zeu112my.c: In function 'qs':
zeu112my.c:4:1: internal compiler error: Segmentation fault
    4 | qs (v4si i1, v4si t7, int a0)
      | ^~
0xdf2a16 crash_signal
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/toplev.c:330
0x104ba30 gsi_next
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/gimple-iterator.h:193
0x104ba30 gimple_expand_vec_exprs
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/gimple-isel.cc:264
0x104ba30 execute
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-11.0.0_alpha20201129/work/gcc-11-20201129/gcc/gimple-isel.cc:318

Reply via email to