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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [980211-1.c] - Blame information for rev 779

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

Line No. Rev Author Line
1 318 jeremybenn
/* Test long double on x86 and x86-64. */
2
 
3
/* { dg-do run } */
4
/* { dg-options -O2 } */
5
 
6
extern void abort (void);
7
 
8
__inline int
9
__signbitl0 (long double __x)
10
{
11
  union { long double __l; int __i[3]; } __u = { __l: __x };
12
 
13
  return (__u.__i[2] & 0x8000) != 0;
14
}
15
 
16
void
17
foo (long double x, long double y)
18
{
19
  long double z = x / y;
20
  if (__signbitl0 (x) && __signbitl0 (z))
21
    abort ();
22
}
23
 
24
int main()
25
{
26
  if (sizeof (long double) > sizeof (double))
27
    foo (-0.0, -1.0);
28
  return 0;
29
}

powered by: WebSVN 2.1.0

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