URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* PR tree-optimization/29637 */
|
/* PR tree-optimization/29637 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -ftree-vectorize" } */
|
/* { dg-options "-O2 -ftree-vectorize" } */
|
|
|
typedef struct __attribute__ ((aligned (8)))
|
typedef struct __attribute__ ((aligned (8)))
|
{
|
{
|
short a, b, c, d;
|
short a, b, c, d;
|
} A;
|
} A;
|
|
|
typedef struct
|
typedef struct
|
{
|
{
|
A a[24];
|
A a[24];
|
} B;
|
} B;
|
|
|
static const A b = { 0, 0, 1, -1 };
|
static const A b = { 0, 0, 1, -1 };
|
|
|
void
|
void
|
foo (B *x)
|
foo (B *x)
|
{
|
{
|
int i;
|
int i;
|
for (i = 0; i <= 20; i += 4)
|
for (i = 0; i <= 20; i += 4)
|
x->a[i] = b;
|
x->a[i] = b;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.