]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/gcc.c-torture/execute/ieee/20010114-2.c
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / gcc.c-torture / execute / ieee / 20010114-2.c
diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/20010114-2.c b/gcc/testsuite/gcc.c-torture/execute/ieee/20010114-2.c
deleted file mode 100644 (file)
index e5ab948..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-extern void exit (int);
-extern void abort (void);
-
-float
-rintf (float x)
-{
-  static const float TWO23 = 8388608.0;
-
-  if (__builtin_fabs (x) < TWO23)
-    {
-      if (x > 0.0)
-        {
-          x += TWO23;
-          x -= TWO23;
-        }
-      else if (x < 0.0)
-        {
-          x = TWO23 - x;
-          x = -(x - TWO23);
-        }
-    }
-
-  return x;
-}
-
-int main (void)
-{
-  if (rintf (-1.5) != -2.0)
-    abort ();
-  exit (0);
-}