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.target/] [i386/] [pr36578-1.c] - Rev 318

Compare with Previous | Blame | View Log

/* Test for unsafe floating-point conversions.  PR 36578.  */
/* { dg-do run } */
/* { dg-options "-msse2 -mfpmath=sse" } */
/* { dg-require-effective-target sse2 } */
 
#include "sse2-check.h"
 
extern void abort (void);
extern void exit (int);
extern int printf(const char *, ...);
 
volatile double d1 = 1.0;
volatile double d2 = 0x1.00001p-53;
volatile double d3;
 
static void
sse2_test (void)
{
  d3 = (double)((long double)d1 + (long double)d2);
  if (d3 != d1)
    abort ();
  exit (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.