Commit 7db2207b by Uros Bizjak Committed by Uros Bizjak

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
parent 3d42c070
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> 2007-05-07 Mark Mitchell <mark@codesourcery.com>
* gcc.dg/special/gcsec-1.c: Don't link statically on Solaris 10 * gcc.dg/special/gcsec-1.c: Don't link statically on Solaris 10
...@@ -62,43 +62,42 @@ main () ...@@ -62,43 +62,42 @@ main ()
/* Conversions from binary float to decimal float. */ /* Conversions from binary float to decimal float. */
sf = 30.0f; sf = 30.0f;
d32 = sf; d128 = sf;
if (d32 != 30.0df) if (d128 != 30.0dl)
link_error (); link_error ();
d64 = sf; d64 = sf;
if (d64 != 30.0dd) if (d64 != 30.0dd)
link_error (); link_error ();
d32 = sf;
if (d32 != 30.0df)
link_error ();
df = -2.0; df = -2.0;
d32 = df; d128 = df;
if (d32 != -2.0df) if (d128 != -2.0dl)
link_error (); link_error ();
d64 = df; d64 = df;
if (d64 != -2.0dd) if (d64 != -2.0dd)
link_error (); link_error ();
d128 = df; d32 = df;
if (d128 != -2.0dl) if (d32 != -2.0df)
link_error (); link_error ();
sf = 30.0f;
d128 = sf;
if (d128 != 30.0dl)
link_error ();
tf = -22.0l; tf = -22.0l;
d32 = tf; d128 = tf;
if (d32 != -22.0df) if (d128 != -22.0dl)
link_error (); link_error ();
d64 = tf; d64 = tf;
if (d64 != -22.0dd) if (d64 != -22.0dd)
link_error (); link_error ();
d128 = tf; d32 = tf;
if (d128 != -22.0dl) if (d32 != -22.0df)
link_error (); link_error ();
/* 2**(-11) = 0.00048828125. */ /* 2**(-11) = 0.00048828125. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment