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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [ieee/] [builtin-nan-1.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR middle-end/19983 */
2
 
3
typedef __SIZE_TYPE__ size_t;
4
 
5
extern void abort(void);
6
extern int memcmp(const void *, const void *, size_t);
7
 
8
double n1 = __builtin_nan("0x1");
9
double n2 = __builtin_nan("0X1");
10
 
11
int main()
12
{
13
  if (memcmp (&n1, &n2, sizeof(double)))
14
    abort();
15
  return 0;
16
}
17
 

powered by: WebSVN 2.1.0

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