summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/math-torture/trunc.c
blob: a71e026c51801f91cc580054f77b6e6bc9b34f4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do assemble } */

float testlf (float x)
{
  return __builtin_truncf (x);
}
double testl (double x)
{
  return __builtin_trunc (x);
}
long double testll (long double x)
{
  return __builtin_truncl (x);
}