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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [pr27006.c] - Rev 774

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

/* { dg-options "-maltivec" } */
 
extern void abort ();
 
typedef union
{
  int i[4];
  __attribute__((altivec(vector__))) int v;
} vec_int4;
 
int main (void)
{
  vec_int4 i1;
 
  i1.v = (__attribute__((altivec(vector__))) int){31, 31, 31, 31};
 
  if (i1.i[0] != 31)
    abort ();
 
  return 0;
}
 
 

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

powered by: WebSVN 2.1.0

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