| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target ppc_float128_sw } */ |
| 3 |
/* { dg-options "-O2 -mabi=ieeelongdouble -Wno-psabi" } */ |
| 4 |
|
| 5 |
/* When GCC is configured with an older library that does not support IEEE |
| 6 |
128-bit, it issues a warning if you change the long double type. We use |
| 7 |
-Wno-psabi to silence this warning. Since this is a code generation test, |
| 8 |
it does not matter if the library has full IEEE 128-bit support. */ |
| 9 |
|
| 10 |
/* Check that complex divide generates the right call for __ibm128 when long |
| 11 |
double is IEEE 128-bit floating point. */ |
| 12 |
|
| 13 |
typedef _Complex long double c_ibm128_t __attribute__((mode(__IC__))); |
| 14 |
|
| 15 |
void |
| 16 |
divide (c_ibm128_t *p, c_ibm128_t *q, c_ibm128_t *r) |
| 17 |
{ |
| 18 |
*p = *q / *r; |
| 19 |
} |
| 20 |
|
| 21 |
/* { dg-final { scan-assembler {\mbl .*__divtc3\M} } } */ |