aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/vector-scalar.c
blob: 1b32cc67bddde5debfe0bda987fc10a303c2d14f (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */

typedef float vecf __attribute__ ((vector_size (4 * sizeof (float))));
typedef short veci __attribute__ ((vector_size (8 * sizeof (short))));

void f (vecf *d, veci *i)
{
  (void) ((*d *= 2) < 0);
  (void) ((((*i - 1) >> 2) != 0) | *i);
}