| 1 |
/* { dg-require-effective-target ppc_float128_sw } */ |
| 2 |
/* { dg-options "-O2 -mvsx -Wno-psabi -mabi=ibmlongdouble -mlong-double-128" } */ |
| 3 |
|
| 4 |
/* Test to make sure that __float128 and long double cannot be combined |
| 5 |
together, when long double uses the IBM extended double format, and |
| 6 |
__float128 uses the IEEE 128-bit format. */ |
| 7 |
__float128 |
| 8 |
add (__float128 a, long double b) |
| 9 |
{ |
| 10 |
return a+b; /* { dg-error "IEEE 128-bit and IBM 128-bit floating point" } */ |
| 11 |
} |
| 12 |
|
| 13 |
long double |
| 14 |
sub (long double a, __float128 b) |
| 15 |
{ |
| 16 |
return a-b; /* { dg-error "IEEE 128-bit and IBM 128-bit floating point" } */ |
| 17 |
} |