From: Steven G. Kargl Date: Sat, 28 May 2005 18:35:20 +0000 (+0000) Subject: * gfortran.dg/subnormal_1.f90: new test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1aa35ae8ee1188cdc524e1785c5ad13499922d4;p=gcc.git * gfortran.dg/subnormal_1.f90: new test. From-SVN: r100300 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0416c70aed4..f1eafd2500e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2005-05-28 Steven G. Kargl + + * gfortran.dg/subnormal_1.f90: New test. + 2005-05-28 Jan Hubicka * 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 index 00000000000..4fbde58078b --- /dev/null +++ b/gcc/testsuite/gfortran.dg/subnormal_1.f90 @@ -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