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-do run } */
|
/* { dg-do run } */
|
|
|
#include <stdlib.h>
|
#include <stdlib.h>
|
typedef struct
|
typedef struct
|
{
|
{
|
int a;
|
int a;
|
float b;
|
float b;
|
}str_t;
|
}str_t;
|
|
|
#define N 1000
|
#define N 1000
|
str_t A[N];
|
str_t A[N];
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
int i;
|
int i;
|
|
|
for (i = 0; i < N; i++)
|
for (i = 0; i < N; i++)
|
{
|
{
|
A[i].a = 0;
|
A[i].a = 0;
|
}
|
}
|
|
|
for (i = 0; i < N; i++)
|
for (i = 0; i < N; i++)
|
if (A[i].a != 0)
|
if (A[i].a != 0)
|
abort ();
|
abort ();
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
/* { dg-final { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" { xfail { "avr-*-*" } } } } */
|
/* { dg-final { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" { xfail { "avr-*-*" } } } } */
|
/* { dg-final { cleanup-ipa-dump "*" } } */
|
/* { dg-final { cleanup-ipa-dump "*" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.