URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-require-effective-target section_anchors } */
|
/* { dg-require-effective-target section_anchors } */
|
/* { 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 32
|
#define N 32
|
|
|
static int a[N][N];
|
static int a[N][N];
|
static int b[N][N];
|
static int b[N][N];
|
static int c[N][N];
|
static int c[N][N];
|
|
|
void clobber(int *);
|
void clobber(int *);
|
|
|
int *foo(void)
|
int *foo(void)
|
{
|
{
|
int i;
|
int i;
|
int j;
|
int j;
|
|
|
clobber (&a[0][0]);
|
clobber (&a[0][0]);
|
clobber (&b[0][0]);
|
clobber (&b[0][0]);
|
clobber (&c[0][0]);
|
clobber (&c[0][0]);
|
|
|
for (i = 0; i < N; i++) {
|
for (i = 0; i < N; i++) {
|
for (j = 0; j < N; j++) {
|
for (j = 0; j < N; j++) {
|
c[j][i] += a[j][i] + c[j][i];
|
c[j][i] += a[j][i] + c[j][i];
|
}
|
}
|
}
|
}
|
return &c[0][0];
|
return &c[0][0];
|
}
|
}
|
|
|
/* { dg-final { scan-ipa-dump-times "Increasing alignment of decl" 3 "increase_alignment" } } */
|
/* { dg-final { scan-ipa-dump-times "Increasing alignment of decl" 3 "increase_alignment" } } */
|
/* { dg-final { cleanup-ipa-dump "increase_alignment" } } */
|
/* { dg-final { cleanup-ipa-dump "increase_alignment" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.