1 /* { dg-do compile } */
2 /* { dg-options "-O3" } */
3 /* { dg-additional-options "-march=amdfam10" { target i?86-*-* x86_64-*-* } } */
4 
5 int *a;
6 int b, c, d;
fn1(char * p1,int p2)7 void fn1(char *p1, int p2) {
8   int x;
9   while (1) {
10     x = 0;
11     for (; x < 8; x++)
12       p1[0] = -a[0] * d + p1[0] * c + 1 >> b >> 1;
13     p1 += p2;
14   }
15 }
16