[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr79439-3.c
blob0cc80f4af42745f2d464b85f6618b0c3a0639991
1 /* { dg-do compile { target { powerpc-*-linux* && ilp32 } } } */
2 /* { dg-options "-O2 -fpic -fno-reorder-blocks" } */
3 /* { dg-require-effective-target fpic } */
5 /* Analog of pr79439-1.c for 32-bit Linux. */
7 int f (void);
9 void
10 g (void)
14 int
15 rec (int a)
17 int ret = 0;
18 if (a > 10 && f ())
19 ret += rec (a - 1);
20 g ();
21 return a + ret;
24 /* { dg-final { scan-assembler-times {\mbl f@plt\M} 1 } } */
25 /* { dg-final { scan-assembler-times {\mbl g@plt\M} 1 } } */
26 /* { dg-final { scan-assembler-times {\mbl rec@plt\M} 0 } } */