[gcc(refs/users/meissner/heads/work027)] Revert patch.

Michael Meissner meissner@gcc.gnu.org
Sun Nov 15 07:07:12 GMT 2020


https://gcc.gnu.org/g:3631fb2f3823a0cdd5ea4066b22fbcab98f96e95

commit 3631fb2f3823a0cdd5ea4066b22fbcab98f96e95
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Sun Nov 15 02:06:40 2020 -0500

    Revert patch.
    
    gcc/testsuite/
    2020-11-15  Michael Meissner  <meissner@linux.ibm.com>
    
            Revert
            * c-c++-common/dfp/convert-bfp-11.c: Rewrite tests to use __ibm128
            instead of long double if the long double type is IEEE 128-bit.

Diff:
---
 gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c | 39 +++++++++----------------
 1 file changed, 13 insertions(+), 26 deletions(-)

diff --git a/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c b/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c
index d207ebedf1b..95c433d2c24 100644
--- a/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c
+++ b/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c
@@ -12,36 +12,23 @@ volatile _Decimal64 dd;
 volatile _Decimal128 td;
 volatile float sf;
 volatile double df;
-
-/* If the default long double is IEEE 128-bit, use __ibm128 instead of long
-   double.  This test explicitly tests features of the IBM 128-bit long double
-   support.  We don't have a unique suffix for __ibm128 constanants, so just
-   convert a long double constant to the 128-bit type.  */
-#ifdef __LONG_DOUBLE_IBM128__
-#define LD __ibm128
-#else
-#define LD long double
-#endif
-
-volatile LD tf;
+volatile long double tf;
 
 /* A value slightly less than DEC32_MAX can be converted in both directions.  */
-CONVERT_VALID (101, sd, tf, 9.999998e96df, (LD)9.999998e96L, (LD)1.e+81L)
-CONVERT_VALID (102, tf, sd, (LD)9.999998e96L, 9.999998e96df, 0.df)
+CONVERT_VALID (101, sd, tf, 9.999998e96df, 9.999998e96L, 1.e+81L)
+CONVERT_VALID (102, tf, sd, 9.999998e96L, 9.999998e96df, 0.df)
 
 /* A value slightly less than DBL_MAX can be converted in both directions.  */
-CONVERT_VALID (201, tf, dd, (LD)1.79768e+308l, 1.79768e+308dd, 0.dd)
-CONVERT_VALID (202, dd, tf, 1.79768e+308dd, (LD)1.79768e+308l, (LD)2.e292l)
-CONVERT_VALID (203, tf, td, (LD)1.79768e+308l, 1.79768e+308dl, 1.e292dl)
-CONVERT_VALID (204, td, tf, 1.79768e+308dl, (LD)1.79768e+308l, (LD)2.e292l)
-
-/* Check values that are too large for the result type.  Do not use 'l' for the
-   suffix for isinf and signbit.  The compiler will automatically choose the
-   right function to use based on the type.  */
-CONVERT_TO_PINF (301, dd, tf, 1.8e+308dd,)
-CONVERT_TO_PINF (302, dd, tf, 9.9e+384dd,)
-CONVERT_TO_PINF (303, td, tf, 1.8e+308dl,)
-CONVERT_TO_PINF (304, td, tf, 9.9e+384dl,)
+CONVERT_VALID (201, tf, dd, 1.79768e+308l, 1.79768e+308dd, 0.dd)
+CONVERT_VALID (202, dd, tf, 1.79768e+308dd, 1.79768e+308l, 2.e292l)
+CONVERT_VALID (203, tf, td, 1.79768e+308l, 1.79768e+308dl, 1.e292dl)
+CONVERT_VALID (204, td, tf, 1.79768e+308dl, 1.79768e+308l, 2.e292l)
+
+/* Check values that are too large for the result type.  */
+CONVERT_TO_PINF (301, dd, tf, 1.8e+308dd, l)
+CONVERT_TO_PINF (302, dd, tf, 9.9e+384dd, l)
+CONVERT_TO_PINF (303, td, tf, 1.8e+308dl, l)
+CONVERT_TO_PINF (304, td, tf, 9.9e+384dl, l)
 
 CONVERT_TO_PINF (311, tf, sd, 1.0e+97L, d32)
 CONVERT_TO_PINF (312, tf, sd, 1.6e+308L, d32)


More information about the Gcc-cvs mailing list