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] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* Test for unsafe floating-point conversions.  PR 36578.  */
2
/* { dg-do run } */
3
/* { dg-options "-msse2 -mfpmath=sse" } */
4
/* { dg-require-effective-target sse2 } */
5
 
6
#include "sse2-check.h"
7
 
8
extern void abort (void);
9
extern void exit (int);
10
extern int printf(const char *, ...);
11
 
12
volatile double d1 = 1.0;
13
volatile double d2 = 0x1.00001p-53;
14
volatile double d3;
15
 
16
static void
17
sse2_test (void)
18
{
19
  d3 = (double)((long double)d1 + (long double)d2);
20
  if (d3 != d1)
21
    abort ();
22
  exit (0);
23
}

powered by: WebSVN 2.1.0

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