URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 38 |
Rev 156 |
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include "data1.h"
|
#include "data1.h"
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
if ((((long) (&a1)) & (ALIGNMENT1 - 1)))
|
if ((((long) (&a1)) & (ALIGNMENT1 - 1)))
|
abort ();
|
abort ();
|
if ((((long) (&a2)) & (ALIGNMENT2 - 1)))
|
if ((((long) (&a2)) & (ALIGNMENT2 - 1)))
|
abort ();
|
abort ();
|
if ((((long) (&a2)) & (ALIGNMENT3 - 1)))
|
if ((((long) (&a2)) & (ALIGNMENT3 - 1)))
|
abort ();
|
abort ();
|
if ((((long) (&a3)) & (ALIGNMENT4 - 1)))
|
if ((((long) (&a3)) & (ALIGNMENT4 - 1)))
|
abort ();
|
abort ();
|
|
|
printf ("PASS\n");
|
printf ("PASS\n");
|
|
|
return(0) ;
|
return(0) ;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.