| 1 |
/* { dg-do run } */ |
| 2 |
/* { dg-skip-if "" { powerpc*-*-darwin* powerpc-ibm-aix* } } */ |
| 3 |
/* { dg-require-effective-target ppc_float128_sw } */ |
| 4 |
/* { dg-options "-O2 -mvsx -mfloat128" } */ |
| 5 |
|
| 6 |
/* |
| 7 |
* PR target/99708 |
| 8 |
* |
| 9 |
* Verify that __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__ are properly defined. |
| 10 |
*/ |
| 11 |
|
| 12 |
#include <stdlib.h> |
| 13 |
|
| 14 |
int main (void) |
| 15 |
{ |
| 16 |
if (__SIZEOF_FLOAT128__ != sizeof (__float128) |
| 17 |
/* FIXME: Once type __ibm128 gets supported with long-double-64, |
| 18 |
we shouldn't need this conditional #ifdef and xfail. */ |
| 19 |
#ifdef __SIZEOF_IBM128__ |
| 20 |
|| __SIZEOF_IBM128__ != sizeof (__ibm128) |
| 21 |
#else |
| 22 |
|| 1 |
| 23 |
#endif |
| 24 |
) |
| 25 |
abort (); |
| 26 |
|
| 27 |
return 0; |
| 28 |
} |
| 29 |
|
| 30 |
/* { dg-xfail-run-if "unsupported type __ibm128 with long-double-64" { longdouble64 } } */ |