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

            Bug ID: 69810
           Summary: PowerPC64: unrecognizable insn
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anton at samba dot org
  Target Milestone: ---

Another csmith fail on trunk:

int a, b;

void fn1(void)
{
        signed char c;
        long d;
        int e;

repeat:

        {
                int f = fn1;
                e = f == 0 ? : 0 / f;
                d = e ? : a;
                c = -d;
        }

        unsigned short g = c;
        b = g == 0 ? : 0 / g;
        if (b)
                goto repeat;
}

# gcc -O1 testcase.c

...

testcase.c:22:1: error: unrecognizable insn:
 }
 ^
(insn 72 71 35 5 (set (reg:CC 75 7 [179])
        (compare:CC (reg:HI 7 7)
            (const_int 0 [0]))) crash1b.i:19 -1
     (nil))
crash1b.i:22:1: internal compiler error: in extract_insn, at recog.c:2287
0x108128f3 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc/gcc/rtl-error.c:108
0x10812957 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc/gcc/rtl-error.c:116
0x107d67e7 extract_insn(rtx_insn*)
        ../../gcc/gcc/recog.c:2287
0x107d68af extract_insn_cached(rtx_insn*)
        ../../gcc/gcc/recog.c:2178
0x104d24b7 cleanup_subreg_operands(rtx_insn*)
        ../../gcc/gcc/final.c:3104
0x107d39b7 split_insn
        ../../gcc/gcc/recog.c:2901
0x107d9aeb split_all_insns()
        ../../gcc/gcc/recog.c:2955
0x107d9c2b rest_of_handle_split_after_reload
        ../../gcc/gcc/recog.c:3891
0x107d9c2b execute
        ../../gcc/gcc/recog.c:3920

Reply via email to