http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59814

            Bug ID: 59814
           Summary: powerpc64le ICE with -O2 -mpower8 -ffast-math
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anton at samba dot org

The following test case:

/* -O2 -mcpu=power8 -ffast-math */

float val;
int verbose;

void bar(float x);

void foo(void)
{
        if (val < 0.0) {
                val = 1.0;
                if (!verbose)
                        zot();
                bar(val);
        }
}

fails with:

# gcc -c -O2 -mcpu=power8 -ffast-math testcase.c
testcase.c: In function ‘foo’:
testcase.c:16:1: error: unrecognizable insn:
 }
 ^
(insn 52 16 3 3 (parallel [
            (set (reg:SF 33 1 [orig:125 D.2152 ] [125])
                (unspec:SF [
                        (reg:SF 9 9 [131])
                    ] UNSPEC_P8V_RELOAD_FROM_GPR))
            (clobber (reg:DI 8 8))
        ]) -1
     (nil))
testcase.c:16:1: internal compiler error: in extract_insn, at recog.c:2154

Reply via email to