OSDN Git Service

* gfortran.dg/subnormal_1.f90: new test.
authorkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 May 2005 18:35:20 +0000 (18:35 +0000)
committerkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 May 2005 18:35:20 +0000 (18:35 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100300 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/subnormal_1.f90 [new file with mode: 0644]

index 0416c70..f1eafd2 100644 (file)
@@ -1,3 +1,7 @@
+2005-05-28  Steven G. Kargl <kargls@comcast.net>
+
+       * gfortran.dg/subnormal_1.f90: New test.
+
 2005-05-28  Jan Hubicka  <jh@suse.cz>
 
        * tree-prof.exp: Fix comment.
diff --git a/gcc/testsuite/gfortran.dg/subnormal_1.f90 b/gcc/testsuite/gfortran.dg/subnormal_1.f90
new file mode 100644 (file)
index 0000000..4fbde58
--- /dev/null
@@ -0,0 +1,11 @@
+! { dg-do run }
+! { dg-options "-Wno-underflow" }
+! Check that the chopping of bits of subnormal numbers works.
+!
+program chop
+  real x
+  x = 1.
+  if (tiny(x)/2. /= tiny(x)/2. - (nearest(tiny(x),1.) - tiny(x))/2.) then
+    call abort
+  end if
+end program chop