convert-bfp-fold.c: Remove extra assignment to sf variable.

* gcc.dg/dfp/convert-bfp-fold.c: Remove extra assignment to
        sf variable.  Rearrange conversions from binary float to decimal float.

From-SVN: r124507
This commit is contained in:
Uros Bizjak 2007-05-07 20:32:35 +02:00 committed by Uros Bizjak
parent 3d42c07025
commit 7db2207b2f
2 changed files with 20 additions and 16 deletions

View File

@ -1,3 +1,8 @@
2007-05-07 Uros Bizjak <ubizjak@gmail.com>
* gcc.dg/dfp/convert-bfp-fold.c: Remove extra assignment to
sf variable. Rearrange conversions from binary float to decimal float.
2007-05-07 Mark Mitchell <mark@codesourcery.com>
* gcc.dg/special/gcsec-1.c: Don't link statically on Solaris 10

View File

@ -62,43 +62,42 @@ main ()
/* Conversions from binary float to decimal float. */
sf = 30.0f;
d32 = sf;
if (d32 != 30.0df)
d128 = sf;
if (d128 != 30.0dl)
link_error ();
d64 = sf;
if (d64 != 30.0dd)
link_error ();
d32 = sf;
if (d32 != 30.0df)
link_error ();
df = -2.0;
d32 = df;
if (d32 != -2.0df)
d128 = df;
if (d128 != -2.0dl)
link_error ();
d64 = df;
if (d64 != -2.0dd)
link_error ();
d128 = df;
if (d128 != -2.0dl)
link_error ();
sf = 30.0f;
d128 = sf;
if (d128 != 30.0dl)
d32 = df;
if (d32 != -2.0df)
link_error ();
tf = -22.0l;
d32 = tf;
if (d32 != -22.0df)
d128 = tf;
if (d128 != -22.0dl)
link_error ();
d64 = tf;
if (d64 != -22.0dd)
link_error ();
d128 = tf;
if (d128 != -22.0dl)
d32 = tf;
if (d32 != -22.0df)
link_error ();
/* 2**(-11) = 0.00048828125. */