URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <stdarg.h>
|
#include <stdarg.h>
|
#include "tree-vect.h"
|
#include "tree-vect.h"
|
|
|
struct s
|
struct s
|
{
|
{
|
int *x;
|
int *x;
|
int x1;
|
int x1;
|
int x2;
|
int x2;
|
int x3;
|
int x3;
|
int *y;
|
int *y;
|
};
|
};
|
|
|
struct s arr[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
struct s arr[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
|
|
__attribute__ ((noinline)) void
|
__attribute__ ((noinline)) void
|
foo (int i, int *in_x, int *in_y)
|
foo (int i, int *in_x, int *in_y)
|
{
|
{
|
arr[i].x = in_x;
|
arr[i].x = in_x;
|
arr[i].y = in_y;
|
arr[i].y = in_y;
|
}
|
}
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
int a, b;
|
int a, b;
|
|
|
check_vect ();
|
check_vect ();
|
|
|
foo (5, &a, &b);
|
foo (5, &a, &b);
|
|
|
if (arr[5].x != &a || arr[5].y != &b)
|
if (arr[5].x != &a || arr[5].y != &b)
|
abort ();
|
abort ();
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
/* { dg-final { cleanup-tree-dump "vect" } } */
|
/* { dg-final { cleanup-tree-dump "vect" } } */
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.