view gcc/testsuite/c-c++-common/vector-2.c @ 16:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
line wrap: on
line source

/* { 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;
}