Imported Upstream version 4.7.3
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / vect / pr52870.c
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -ftree-vectorize" } */
3
4 long
5 test (int *x)
6 {
7   unsigned long sx, xprec;
8
9   sx = *x >= 0 ? *x : -*x;
10
11   xprec = sx * 64;
12
13   if (sx < 16384)
14     foo (sx);
15
16   return xprec;
17 }