[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr99708.c
blobc6aa0511b89259dc288bc416b53b48f294622a5b
1 /* { dg-do run } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* powerpc-ibm-aix* } } */
3 /* { require-effective-target ppc_float128_sw } */
4 /* { dg-options "-O2 -mvsx -mfloat128" } */
6 /*
7 * PR target/99708
9 * Verify that __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__ are properly defined.
12 #include <stdlib.h>
14 int main (void)
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
25 abort ();
27 return 0;
30 /* { dg-xfail-run-if "unsupported type __ibm128 with long-double-64" { longdouble64 } } */