[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / maddld-1.c
blob4edecf1c86d8bdec6892ffd46f08fe4a7ab4604e
1 /* { dg-do compile } */
2 /* { dg-options "-mdejagnu-cpu=power9 -O2" } */
4 /* This file tests the maddld instruction can be used in SI mode
5 on power9 machine. */
7 int
8 s_madd (int a, int b, int c)
10 return (a * b) + c;
13 unsigned int
14 u_madd (unsigned int a, unsigned int b, unsigned int c)
16 return (a * b) + c;
19 /* { dg-final { scan-assembler-times {\mmaddld\s} 2 } } */
20 /* { dg-final { scan-assembler-not {\mmul} } } */
21 /* { dg-final { scan-assembler-not {\madd} } } */