gcc/testsuite/g++.target/i386/excess-precision-6.C
raw| 1 | // Excess precision tests. Make sure sqrt is not inlined for float or |
| 2 | // double. |
| 3 | // { dg-do compile } |
| 4 | // { dg-options "-mfpmath=387 -O2 -fno-math-errno -fexcess-precision=standard" } |
| 5 | |
| 6 | float f; |
| 7 | double d; |
| 8 | |
| 9 | float fr; |
| 10 | double dr; |
| 11 | |
| 12 | void |
| 13 | test_builtins (void) |
| 14 | { |
| 15 | fr = __builtin_sqrtf (f); |
| 16 | dr = __builtin_sqrt (d); |
| 17 | } |
| 18 | |
| 19 | // { dg-final { scan-assembler-not "fsqrt" } } |