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

typedef int int32_t __attribute__((mode (__SI__)));

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

void f (veci *a, vecf *b, int c)
{
  *a = c || *b;
  *a = *a || c;
}