URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [regstack.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-options "-O2" }
inline double foo (double x)
{
register double r;
asm volatile ("fsqrt" : "=t" (r) : "0" (x));
return r;
}
struct X
{
~X() {}
};
int b;
double bar (X x)
{
if (b)
return 1.0;
return 36.0 * foo (36.0);
}
int main ()
{
X x;
if (bar (x) != 216.0)
return 1;
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log