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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O1" } */
3
/* { dg-add-options ieee } */
4
#include <math.h>
5
 
6
extern void abort (void);
7
void __attribute__((noinline)) f (double x)
8
{
9
  double pluszero = pow (x, 0.5);
10
  double minuszero = sqrt (x);
11
  if (signbit (pluszero) == signbit (minuszero))
12
    abort ();
13
}
14
 
15
int main(void)
16
{
17
  f (-0.0);
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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