https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77937
Bug ID: 77937 Summary: [7 Regression] ICE: in replace_one_candidate, at gimple-ssa-strength-reduction.c:3370 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org Target Milestone: --- markus@x4 ffmpeg % cat diracdsp.i int *a; int b, c, d; void fn1(char *p1, int p2) { int x; while (1) { x = 0; for (; x < 8; x++) p1[0] = -a[0] * d + p1[0] * c + 1 >> b >> 1; p1 += p2; } } markus@x4 ffmpeg % gcc -c -O3 -march=amdfam10 diracdsp.i diracdsp.i: In function ‘fn1’: diracdsp.i:3:6: internal compiler error: in replace_one_candidate, at gimple-ssa-strength-reduction.c:3370 void fn1(char *p1, int p2) { ^~~ 0x1269fe9 replace_one_candidate ../../gcc/gcc/gimple-ssa-strength-reduction.c:3370 0x126db67 replace_profitable_candidates ../../gcc/gcc/gimple-ssa-strength-reduction.c:3481 0x126dadb replace_profitable_candidates ../../gcc/gcc/gimple-ssa-strength-reduction.c:3490 0x1271fc6 analyze_candidates_and_replace ../../gcc/gcc/gimple-ssa-strength-reduction.c:3569 0x1271fc6 execute ../../gcc/gcc/gimple-ssa-strength-reduction.c:3643