[gcc(refs/users/meissner/heads/work029)] PowerPC: Require IBM long double for conversion test.

Michael Meissner meissner@gcc.gnu.org
Mon Nov 30 18:32:30 GMT 2020


https://gcc.gnu.org/g:791b8555679f2f13bf74a2b21f4aa96e4b778568

commit 791b8555679f2f13bf74a2b21f4aa96e4b778568
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Mon Nov 30 13:32:15 2020 -0500

    PowerPC: Require IBM long double for conversion test.
    
    The test c-c++-common/dfp/convert-bfp-11.c explicit expects long double to use
    the IBM 128-bit extended double format.  In particular, some of the tests
    expect an infinity to be created if decimal values that are converted that are
    too large for IBM extended double.  However, the numbers do fit in the range
    for IEEE 128-bit format, since it has a larger exponent than the IBM 128-bit
    format.  The test fails because an infinity is not generated.
    
    gcc/testsuite/
    2020-11-30  Michael Meissner  <meissner@linux.ibm.com>
    
            * c-c++-common/dfp/convert-bfp-11.c: Require IBM 128-bit long
            double.

Diff:
---
 gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 95c433d2c24..8c970bb76db 100644
--- a/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c
+++ b/gcc/testsuite/c-c++-common/dfp/convert-bfp-11.c
@@ -1,4 +1,5 @@
-/* { dg-skip-if "" { ! "powerpc*-*-linux*" } } */
+/* { dg-require-effective-target dfp } */
+/* { dg-require-effective-target ppc_long_double_ibm } */
 
 /* Test decimal float conversions to and from IBM 128-bit long double. 
    Checks are skipped at runtime if long double is not 128 bits.


More information about the Gcc-cvs mailing list