| 1 |
/* { dg-do compile { target { powerpc*-*-* } } } */ |
| 2 |
/* { dg-options "-O2 -mvsx -mabi=ieeelongdouble -Wno-psabi" } */ |
| 3 |
/* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */ |
| 4 |
/* { dg-require-effective-target powerpc_vsx } */ |
| 5 |
/* { dg-require-effective-target longdouble128 } */ |
| 6 |
|
| 7 |
/* Check that the __builtin_powil generates a call to the correct function |
| 8 |
when long double uses IEEE 128-bit floating point. */ |
| 9 |
|
| 10 |
long double |
| 11 |
do_powl (long double a, int i) |
| 12 |
{ |
| 13 |
return __builtin_powil (a, i); |
| 14 |
} |
| 15 |
|
| 16 |
/* { dg-final { scan-assembler "bl __powikf2" { target { powerpc*-*-linux* } } } } */ |
| 17 |
/* { dg-final { scan-assembler "bl .__powidf2" { target { powerpc*-*-aix* } } } } */ |