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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [dfp/] [convert-bfp-12.c] - Rev 700

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

/* Test for bug where fold wrongly removed conversions to double and
   replaced them by conversions to float.  */
 
#include "dfp-dbg.h"
 
volatile float f = __builtin_inff ();
volatile _Decimal32 d32 = 1e40DF;
 
int
main (void)
{
  if ((double) f == (double) d32)
    FAILURE
 
  FINISH
}
 

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.