| 1 |
/* { dg-do compile { target { powerpc*-*-linux* } } } */ |
| 2 |
/* { dg-require-effective-target ppc_float128_sw } */ |
| 3 |
/* { dg-require-effective-target vsx_hw } */ |
| 4 |
/* { dg-options "-mvsx -O2 -mabi=ibmlongdouble -Wno-psabi" } */ |
| 5 |
|
| 6 |
/* PR 82333 was an internal compiler abort where the compiler thought that a |
| 7 |
long double _Complex constant was the same as __float128 _Complex. */ |
| 8 |
|
| 9 |
_Complex long double vld; |
| 10 |
_Complex _Float128 vf128; |
| 11 |
|
| 12 |
_Complex long double |
| 13 |
fld (_Complex long double arg0) |
| 14 |
{ |
| 15 |
return 0; |
| 16 |
} |
| 17 |
|
| 18 |
_Complex _Float128 |
| 19 |
ff128 (_Complex _Float128 arg0) |
| 20 |
{ |
| 21 |
return 0; |
| 22 |
} |
| 23 |
|
| 24 |
void |
| 25 |
tld (void) |
| 26 |
{ |
| 27 |
vld = fld (vld); |
| 28 |
} |
| 29 |
|
| 30 |
void |
| 31 |
tf128 (void) |
| 32 |
{ |
| 33 |
vf128 = ff128 (vf128); |
| 34 |
} |