public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/meissner/heads/work030)] PowerPC: Require IBM long double for conversion test.
@ 2020-12-17  5:52 Michael Meissner
  0 siblings, 0 replies; only message in thread
From: Michael Meissner @ 2020-12-17  5:52 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9acb7eccc5702aeb32e1fa695ba91fe0f0944947

commit 9acb7eccc5702aeb32e1fa695ba91fe0f0944947
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Thu Dec 17 00:51:13 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-12-17  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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-17  5:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17  5:52 [gcc(refs/users/meissner/heads/work030)] PowerPC: Require IBM long double for conversion test Michael Meissner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).