public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-7191] rs6000: don't expect __ibm128 with 64-bit long double [PR99708]
@ 2023-04-15  2:58 Alexandre Oliva
  0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2023-04-15  2:58 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:86b31d583a3657f11d930ff156c07b2e20ab05eb

commit r13-7191-g86b31d583a3657f11d930ff156c07b2e20ab05eb
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Fri Apr 14 23:53:36 2023 -0300

    rs6000: don't expect __ibm128 with 64-bit long double [PR99708]
    
    When long double is 64-bit wide, as on vxworks, the rs6000 backend
    defines neither the __ibm128 type nor the __SIZEOF_IBM128__ macro, but
    pr99708.c expected both to be always defined.  Adjust the test to
    match the implementation.
    
    
    Co-Authored-By: Kewen Lin <linkw@linux.ibm.com>
    
    for  gcc/testsuite/ChangeLog
    
            PR target/99708
            * gcc.target/powerpc/pr99708.c: Accept lack of
            __SIZEOF_IBM128__ when long double is 64-bit wide.

Diff:
---
 gcc/testsuite/gcc.target/powerpc/pr99708.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/powerpc/pr99708.c b/gcc/testsuite/gcc.target/powerpc/pr99708.c
index 02b40ebc40d..c6aa0511b89 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr99708.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr99708.c
@@ -14,9 +14,17 @@
 int main (void)
 {
   if (__SIZEOF_FLOAT128__ != sizeof (__float128)
-      || __SIZEOF_IBM128__ != sizeof (__ibm128))
+  /* FIXME: Once type __ibm128 gets supported with long-double-64,
+     we shouldn't need this conditional #ifdef and xfail.  */
+#ifdef __SIZEOF_IBM128__
+      || __SIZEOF_IBM128__ != sizeof (__ibm128)
+#else
+      || 1
+#endif
+     )
     abort ();
 
   return 0;
 }
 
+/* { dg-xfail-run-if "unsupported type __ibm128 with long-double-64" { longdouble64 } } */

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

only message in thread, other threads:[~2023-04-15  2:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-15  2:58 [gcc r13-7191] rs6000: don't expect __ibm128 with 64-bit long double [PR99708] Alexandre Oliva

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).