URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-require-effective-target vect_int } */
|
/* { dg-require-effective-target vect_int } */
|
|
|
#include <stdarg.h>
|
#include <stdarg.h>
|
#include "tree-vect.h"
|
#include "tree-vect.h"
|
|
|
#define N 128
|
#define N 128
|
|
|
int *res[N];
|
int *res[N];
|
|
|
int
|
int
|
main1 (int *a, int *b, int *c, int *d, int dummy)
|
main1 (int *a, int *b, int *c, int *d, int dummy)
|
{
|
{
|
int i;
|
int i;
|
|
|
for (i = 0; i < N/2; i+=4)
|
for (i = 0; i < N/2; i+=4)
|
{
|
{
|
res[i] = a + 16;
|
res[i] = a + 16;
|
res[i+1] = b + 16;
|
res[i+1] = b + 16;
|
res[i+2] = c + 16;
|
res[i+2] = c + 16;
|
res[i+3] = d + 16;
|
res[i+3] = d + 16;
|
if (dummy == 32)
|
if (dummy == 32)
|
abort ();
|
abort ();
|
}
|
}
|
}
|
}
|
|
|
/* { 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.