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/] [ieee/] [builtin-nan-1.c] - Rev 297

Compare with Previous | Blame | View Log

/* PR middle-end/19983 */
 
typedef __SIZE_TYPE__ size_t;
 
extern void abort(void);
extern int memcmp(const void *, const void *, size_t);
 
double n1 = __builtin_nan("0x1");
double n2 = __builtin_nan("0X1");
 
int main()
{
  if (memcmp (&n1, &n2, sizeof(double)))
    abort();
  return 0;
}
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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