gcc/testsuite/gcc.target/i386/pr84827.c
raw| 1 | /* PR target/84827 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-Ofast -fno-fp-int-builtin-inexact -ftrapping-math -fno-associative-math -mfpmath=387" } */ |
| 4 | |
| 5 | double |
| 6 | f1 (double a) |
| 7 | { |
| 8 | return __builtin_round (a); |
| 9 | } |
| 10 | |
| 11 | float |
| 12 | f2 (float a) |
| 13 | { |
| 14 | return __builtin_roundf (a); |
| 15 | } |
| 16 | |
| 17 | long double |
| 18 | f3 (long double a) |
| 19 | { |
| 20 | return __builtin_roundl (a); |
| 21 | } |