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