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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [i386/] [20030217-1.c] - Rev 825

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

/* Test whether denormal floating point constants in hexadecimal notation
   are parsed correctly.  */
/* { dg-do run { target i?86-*-linux* x86_64-*-* } } */
/* { dg-options "-std=c99" } */
 
long double d = 0x0.0000003ffffffff00000p-16357L;
long double e = 0x0.0000003ffffffff00000p-16356L;
 
extern void abort (void);
extern void exit (int);
 
int
main (void)
{
  if (d != e / 2.0)
    abort ();
  exit (0);
}
 

Go to most recent revision | 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.