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/] [pr44683.c] - Blame information for rev 298

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
int __attribute__((noinline,noclone))
2
copysign_bug (double x)
3
{
4
  if (x != 0.0 && (x * 0.5 == x))
5
    return 1;
6
  if (__builtin_copysign(1.0, x) < 0.0)
7
    return 2;
8
  else
9
    return 3;
10
}
11
int main(void)
12
{
13
  double x = -0.0;
14
  if (copysign_bug (x) != 2)
15
    __builtin_abort ();
16
  return 0;
17
}
18
 

powered by: WebSVN 2.1.0

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