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

            Bug ID: 95394
           Summary: [11 Regression] ICE in emit_move_insn, at expr.c:3814
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: x86_64-unknown-linux-gnu-gcc

gcc-11.0.0-alpha20200524 snapshot (g:d176184d98a00ab379ae5959aed1908a79995e6b)
ICEs when compiling the following testcase w/ -O1:

void
ri (__int128 *z8, int x8)
{
  int es;
  int *kx = &es;

  while (x8 != 1)
    while (kx < (int *) 2)
      {
        z8 = (__int128 *) &x8;
        *z8 /= 3;
      }
}

% x86_64-unknown-linux-gnu-gcc-11.0.0 -O1 -c h9pqh5we.c
during RTL pass: subreg3
h9pqh5we.c: In function 'ri':
h9pqh5we.c:13:1: internal compiler error: in emit_move_insn, at expr.c:3814
   13 | }
      | ^
0x622b77 emit_move_insn(rtx_def*, rtx_def*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200524/work/gcc-11-20200524/gcc/expr.c:3814
0x17647f4 resolve_simple_move
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200524/work/gcc-11-20200524/gcc/lower-subreg.c:1090
0x1765919 decompose_multiword_subregs
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200524/work/gcc-11-20200524/gcc/lower-subreg.c:1648
0x17662ad execute
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200524/work/gcc-11-20200524/gcc/lower-subreg.c:1812

Reply via email to