1  /* PR target/91408 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O2 -ftree-loop-vectorize -fno-tree-forwprop" } */
       4  
       5  long long a;
       6  unsigned char b;
       7  short *c;
       8  int d;
       9  
      10  void
      11  foo (long long *x)
      12  {
      13    unsigned char *e = (char *) x;
      14    int f, g = 0;
      15    for (d = 0; d < 8; d++)
      16      {
      17        f = b - e[d];
      18        if (f < 0)
      19  	f = -f;
      20        g += f;
      21      }
      22    c[0] = g;
      23  }
      24  
      25  void
      26  bar (void)
      27  {
      28    foo (&a);
      29  }