summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/excess-precision-6.c
blob: fb8d57232121a11931e22dca7b4d5e633a4d8246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Excess precision tests.  Make sure sqrt is not inlined for float or
   double.  */
/* { dg-do compile } */
/* { dg-options "-mfpmath=387 -O2 -fno-math-errno -fexcess-precision=standard" } */

float f;
double d;

float fr;
double dr;

void
test_builtins (void)
{
  fr = __builtin_sqrtf (f);
  dr = __builtin_sqrt (d);
}

/* { dg-final { scan-assembler-not "fsqrt" } } */