OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr35456.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
extern void abort (void);
2
 
3
double
4
__attribute__ ((noinline))
5
not_fabs (double x)
6
{
7
  return x >= 0.0 ? x : -x;
8
}
9
 
10
int main()
11
{
12
  double x = -0.0;
13
  double y;
14
 
15
  y = not_fabs (x);
16
 
17
  if (!__builtin_signbit (y))
18
    abort();
19
 
20
  return 0;
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.