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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vector-subscript-1.c] - Blame information for rev 713

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 "-w" } */
3
 
4
#define vector __attribute__((vector_size(16) ))
5
/* Check that vector[index] works and index[vector] is rejected.  */
6
 
7
float vf(vector float a)
8
{
9
  return 0[a]; /* { dg-error "subscripted value is neither array nor pointer nor vector" } */
10
}
11
 
12
 
13
float fv(vector float a)
14
{
15
  return a[0];
16
}
17
 

powered by: WebSVN 2.1.0

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