Revise -mdisable-fpregs option and add new -msoft-mult option
[official-gcc.git] / gcc / testsuite / gcc.dg / cdce3.c
blob601ddf055fd7186aa7dff497ddecbae12728c107
1 /* { dg-do compile } */
2 /* { dg-require-effective-target hard_float } */
3 /* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump "cdce3.c:11: \[^\n\r]* function call is shrink-wrapped into error conditions\." "cdce" } } */
5 /* { dg-final { scan-tree-dump "sqrtf \\(\[^\n\r]*\\); \\\[tail call\\\]" "optimized" } } */
6 /* { dg-skip-if "doesn't have a sqrtf insn" { mmix-*-* } } */
8 float sqrtf (float);
9 float foo (float x)
11 return sqrtf (x);