summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/math-torture/lround.c
blob: 756356d62d63fc689ffd3daab637315b9ea6cece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { dg-do assemble } */

long testlf (float x)
{
  return __builtin_lroundf (x);
}
long testl (double x)
{
  return __builtin_lround (x);
}
long testll (long double x)
{
  return __builtin_lroundl (x);
}
long long testllf (float x)
{
  return __builtin_llroundf (x);
}
long long testll_ (double x)
{
  return __builtin_llround (x);
}
long long testlll (long double x)
{
  return __builtin_llroundl (x);
}