https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68577
Bug ID: 68577 Summary: [6 Regression] ICE: in expand_direct_optab_fn, at internal-fn.c:2171 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: rsandifo at gcc dot gnu.org Target Milestone: --- Host: powerpc64le-unknown-linux-gnu Target: powerpc64le-unknown-linux-gnu trippels@gcc2-power8 posix % cat sched_cpucount.i int a, b; void __sched_cpucount() { while (b) { long l = b++; a += __builtin_popcountl(l); } } trippels@gcc2-power8 posix % gcc -c -O3 sched_cpucount.i sched_cpucount.i: In function ‘__sched_cpucount’: sched_cpucount.i:5:10: internal compiler error: in expand_direct_optab_fn, at internal-fn.c:2171 a += __builtin_popcountl(l); ^~~~~~~~~~~~~~~~~~~~~~ 0x105813d7 expand_direct_optab_fn ../../gcc/gcc/internal-fn.c:2171 0x1058205f expand_internal_call ../../gcc/gcc/internal-fn.c:2314 0x1058205f expand_internal_call(gcall*) ../../gcc/gcc/internal-fn.c:2322 0x10306a17 expand_call_stmt ../../gcc/gcc/cfgexpand.c:2550 0x10306a17 expand_gimple_stmt_1 ../../gcc/gcc/cfgexpand.c:3525 0x10306a17 expand_gimple_stmt ../../gcc/gcc/cfgexpand.c:3688 0x10309d93 expand_gimple_basic_block ../../gcc/gcc/cfgexpand.c:5694 0x10310327 execute ../../gcc/gcc/cfgexpand.c:6309