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-require-effective-target vect_int } */
|
/* { dg-require-effective-target vect_int } */
|
|
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdarg.h>
|
#include <stdarg.h>
|
#include "tree-vect.h"
|
#include "tree-vect.h"
|
|
|
#define N 16
|
#define N 16
|
|
|
struct foostr {
|
struct foostr {
|
_Complex short f1;
|
_Complex short f1;
|
_Complex short f2;
|
_Complex short f2;
|
};
|
};
|
|
|
_Complex short a1[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
_Complex short a1[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
_Complex short a2[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
_Complex short a2[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
_Complex short b1[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
_Complex short b1[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
_Complex short b2[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
_Complex short b2[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
struct foostr c[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
struct foostr c[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
|
|
|
__attribute__ ((noinline)) void
|
__attribute__ ((noinline)) void
|
foo (void)
|
foo (void)
|
{
|
{
|
int i;
|
int i;
|
|
|
for (i = 0; i < N; i++)
|
for (i = 0; i < N; i++)
|
{
|
{
|
c[i].f1 = a1[i] + b1[i];
|
c[i].f1 = a1[i] + b1[i];
|
c[i].f2 = a2[i] + b2[i];
|
c[i].f2 = a2[i] + b2[i];
|
}
|
}
|
|
|
}
|
}
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
int i;
|
int i;
|
check_vect ();
|
check_vect ();
|
|
|
foo ();
|
foo ();
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" } } */
|
/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" } } */
|
/* { 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.