aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vector27.C
blob: 2f29577a4f0ab66ae482d386725ec87779d752fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */

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

void f (veci *a, veci *b, int c)
{
  *a = !*a || *b < ++c;
}
void g (vecf *a, vecf *b)
{
  *a = (*a < 1 && !(*b > 2)) ? *a + *b : 3;
}