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

            Bug ID: 78560
           Summary: powerpc64le ICE with -mcpu=power9
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anton at samba dot org
                CC: meissner at gcc dot gnu.org, segher at gcc dot gnu.org,
                    wschmidt at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc64le-linux

The following test case:

int a, b, d;
short *const c = (short *)&b;

void e(void)
{
        d = 3;

        for (; d < 100; d++) {
                a = 0;
                for (; a != 30; a = a + 5)
                        *c |= 4;
        }
}

when built with:

gcc -O3 -mcpu=power9 testcase.c

fails with:

testcase.c: In function ā€˜e’:
testcase.c:13:1: error: unrecognizable insn:
 }
 ^
(insn 7 6 8 2 (set (reg:V8HI 166)
        (unspec:V8HI [
                (reg:V8HI 166)
                (mem/c:HI (reg/f:DI 167) [2 MEM[(short int *)&b]+0 S2 A32])
                (const_int 0 [0])
            ] UNSPEC_VSX_SET)) -1
     (nil))
testcase.c:13:1: internal compiler error: in extract_insn, at recog.c:2311
0x1086b173 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc/gcc/rtl-error.c:108
0x1086b1d7 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc/gcc/rtl-error.c:116
0x1082f137 extract_insn(rtx_insn*)
        ../../gcc/gcc/recog.c:2311
0x10564c5b instantiate_virtual_regs_in_insn
        ../../gcc/gcc/function.c:1589
0x10564c5b instantiate_virtual_regs
        ../../gcc/gcc/function.c:1956
0x10564c5b execute
        ../../gcc/gcc/function.c:2005

Reply via email to