OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vector-2.c] - Blame information for rev 706

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "" } */
3
 
4
/* Check for application of |, ^, and & on vector types.  */
5
#define vector __attribute__((vector_size(16) ))
6
 
7
vector float a;
8
vector int a1;
9
vector float b;
10
vector int b1;
11
 
12
int f(void)
13
{
14
 a =  a | b; /* { dg-error "" } */
15
 a =  a & b; /* { dg-error "" } */
16
 a =  a ^ b; /* { dg-error "" } */
17
 a1 =  a1 | b1;
18
 a1 =  a1 & b1;
19
 a1 =  a1 ^ b1;
20
}
21
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.