Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/float128-math.c

raw
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" } */
4
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. */
10
11 extern __float128 sinf128 (__float128);
12
13 void foo (__float128 *p, long double *q)
14 {
15 *p = sinf128 (*p);
16 *q = __builtin_sinl (*q);
17 }
18
19 /* { dg-final { scan-assembler {\mbl __sinieee128} } } */
20 /* { dg-final { scan-assembler-not {\mbl sinl} } } */