diff options
Diffstat (limited to 'gcc-4.8/gcc/testsuite/gcc.target/i386/math-torture/round.c')
-rw-r--r-- | gcc-4.8/gcc/testsuite/gcc.target/i386/math-torture/round.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/testsuite/gcc.target/i386/math-torture/round.c b/gcc-4.8/gcc/testsuite/gcc.target/i386/math-torture/round.c new file mode 100644 index 000000000..fddac7abb --- /dev/null +++ b/gcc-4.8/gcc/testsuite/gcc.target/i386/math-torture/round.c @@ -0,0 +1,15 @@ +/* { dg-do assemble } */ + +float testlf (float x) +{ + return __builtin_roundf (x); +} +double testl (double x) +{ + return __builtin_round (x); +} +long double testll (long double x) +{ + return __builtin_roundl (x); +} + |