URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [dfp/] [pr31385.c] - Rev 706
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2" } */ typedef float fp_t __attribute__((mode(SD))); extern fp_t g(fp_t); fp_t bug(fp_t x) { fp_t result; int n; fp_t f, f3, y, z; n = 0; y = 1.DF; f = g(x); if (f < 0.DF) f = -f; f3 = 2.DF; z = (y + y + f / (y * y)); y = (z + z) / (9.DF) + f3 / (z * z); result = y; return (result); }
Go to most recent revision | Compare with Previous | Blame | View Log