re PR tree-optimization/77937 (ICE: in replace_one_candidate, at gimple-ssa-strength...
[gcc.git] / gcc / testsuite / gcc.dg / torture / pr77937-1.c
1 /* { dg-do compile } */
2 /* { dg-do options "-O3 -march=amdfam10" { target { x86_64-*-* } } } */
3
4 int *a;
5 int b, c, d;
6 void fn1(char *p1, int p2) {
7 int x;
8 while (1) {
9 x = 0;
10 for (; x < 8; x++)
11 p1[0] = -a[0] * d + p1[0] * c + 1 >> b >> 1;
12 p1 += p2;
13 }
14 }