rs6000: Fix gcc.target/powerpc testsuite target requirements.
[gcc.git] / gcc / testsuite / gcc.target / powerpc / float128-fma1.c
1 /* { dg-do compile { target lp64 } } */
2 /* { dg-require-effective-target powerpc_p9vector_ok } */
3 /* { dg-require-effective-target float128 } */
4 /* { dg-options "-mpower9-vector -O2" } */
5
6 __float128
7 xfma (__float128 a, __float128 b, __float128 c)
8 {
9 return __builtin_fmaf128 (a, b, c);
10 }
11
12 __float128
13 xfms (__float128 a, __float128 b, __float128 c)
14 {
15 return __builtin_fmaf128 (a, b, -c);
16 }
17
18 __float128
19 xfnma (__float128 a, __float128 b, __float128 c)
20 {
21 return -__builtin_fmaf128 (a, b, c);
22 }
23
24 __float128
25 xfnms (__float128 a, __float128 b, __float128 c)
26 {
27 return -__builtin_fmaf128 (a, b, -c);
28 }
29
30 /* { dg-final { scan-assembler "xsmaddqp" } } */
31 /* { dg-final { scan-assembler "xsmsubqp" } } */
32 /* { dg-final { scan-assembler "xsnmaddqp" } } */
33 /* { dg-final { scan-assembler "xsnmsubqp" } } */