summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vector8.C
blob: 5f9f9561d7f9ad1f07ef374a0b363cbdd1b29c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-options "" } */

/* Check for application of |, ^, and & on vector types.  */
#define vector __attribute__((vector_size(16) ))

vector float a;
vector int a1;
vector float b;
vector int b1;

int f(void)
{
 a =  a | b; /* { dg-error "" } */
 a =  a & b; /* { dg-error "" } */
 a =  a ^ b; /* { dg-error "" } */
 a1 =  a1 | b1;
 a1 =  a1 & b1;
 a1 =  a1 ^ b1;
}