gcc/testsuite/gcc.dg/pr51867.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O0 -fno-math-errno -fdump-rtl-expand" } */ |
| 3 | |
| 4 | extern float sqrtf(float); |
| 5 | |
| 6 | float a(float x) |
| 7 | { |
| 8 | return sqrtf(x); |
| 9 | } |
| 10 | float b(float x) |
| 11 | { |
| 12 | return sqrtf(x); |
| 13 | } |
| 14 | /* Here the calls to sqrtf should be expanded into CALL_INSNs, rather than |
| 15 | fpu sqrtf rtl patterns. */ |
| 16 | /* { dg-final { scan-rtl-dump-times "call_insn" 2 "expand" } } */ |