1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-options "-O1 -mvsx -mdejagnu-cpu=power7 -mlong-double-128" } */
6 /* PR 67808: LRA ICEs on simple double to long double conversion test case */
8 #if defined(__LONG_DOUBLE_IEEE128__)
9 /* If long double is IEEE 128-bit, we need to use the __ibm128 type instead of
10 long double. We can't use __ibm128 on systems that don't support IEEE
11 128-bit floating point, because the type is not enabled on those
13 #define LDOUBLE __ibm128
15 #elif defined(__LONG_DOUBLE_IBM128__)
16 #define LDOUBLE long double
19 #error "long double must be either IBM 128-bit or IEEE 128-bit"
23 dfoo (LDOUBLE
*ldb1
, double *db1
)
41 ffoo (LDOUBLE
*ldb1
, float *db1
)
58 /* { dg-final { scan-assembler "xxlxor" } } */