URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* PR target/10904 */
|
/* PR target/10904 */
|
/* Origin: <kminola@eng.umd.edu> */
|
/* Origin: <kminola@eng.umd.edu> */
|
|
|
/* Verify that the register allocator correctly aligns
|
/* Verify that the register allocator correctly aligns
|
floating-point registers on SPARC64. */
|
floating-point registers on SPARC64. */
|
|
|
/* { dg-do assemble } */
|
/* { dg-do assemble } */
|
/* { dg-options "-O2" } */
|
/* { dg-options "-O2" } */
|
|
|
extern int foo1();
|
extern int foo1();
|
extern int foo2();
|
extern int foo2();
|
|
|
void foo(int n, int b)
|
void foo(int n, int b)
|
{
|
{
|
int i, a;
|
int i, a;
|
|
|
foo1();
|
foo1();
|
|
|
a = (long)(b * ((double) 0.1));
|
a = (long)(b * ((double) 0.1));
|
|
|
for (i=0; i < n; i++) {
|
for (i=0; i < n; i++) {
|
foo2(a);
|
foo2(a);
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.