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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [altivec-23.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
/* Verify that it is possible to define variables of composite types
2
   containing vector types.  We used to crash handling the
3
   initializer of automatic ones.  */
4
 
5
/* { dg-do compile } */
6
/* { dg-require-effective-target powerpc_altivec_ok } */
7
/* { dg-options "-maltivec -mabi=altivec" } */
8
 
9
#include <altivec.h>
10
 
11
typedef vector int vt;
12
typedef struct { vt x; int y[sizeof(vt) / sizeof (int)]; } st;
13
#define INIT { 1, 2, 3, 4 }
14
 
15
void f ()
16
{
17
  vt x = INIT;
18
  vt y[1] = { INIT };
19
  st s = { INIT, INIT };
20
}
21
 
22
vt x = INIT;
23
vt y[1] = { INIT };
24
st s = { INIT, INIT };

powered by: WebSVN 2.1.0

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