[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / float128-math.c
blobd1e222397187a65c4a8f5030b6fb7451b13c5fae
1 /* { dg-require-effective-target ppc_float128_sw } */
2 /* { dg-require-effective-target vsx_hw } */
3 /* { dg-options "-mvsx -O2 -mfloat128 -mlong-double-128 -mabi=ieeelongdouble -Wno-psabi" } */
5 /* Test whether we convert __builtin_<math>l to __builtin_<math>f128 if the
6 default long double type is IEEE 128-bit. We leave off the \M in matching
7 the calls, so power10 will match using bl foo@notoc. Also test that using
8 the explicit __builtin_<math>f128 function does not interfere with the
9 __builtin_<math>l function. */
11 extern __float128 sinf128 (__float128);
13 void foo (__float128 *p, long double *q)
15 *p = sinf128 (*p);
16 *q = __builtin_sinl (*q);
19 /* { dg-final { scan-assembler {\mbl __sinieee128} } } */
20 /* { dg-final { scan-assembler-not {\mbl sinl} } } */