diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2004-03-17 04:47:04 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2004-03-17 04:47:04 +0000 |
commit | d093738d94d297f7986c757dbb41b1b10be75c6d (patch) | |
tree | fb5d87bb48bc66fabd7917712651e0434c060009 /gcc/convert.c | |
parent | b57051b2f5459e1a55f502cac3973a995f1aa8ff (diff) | |
download | gcc-d093738d94d297f7986c757dbb41b1b10be75c6d.zip gcc-d093738d94d297f7986c757dbb41b1b10be75c6d.tar.gz gcc-d093738d94d297f7986c757dbb41b1b10be75c6d.tar.bz2 |
builtins.c (integer_valued_real_p): Add builtin rint.
* builtins.c (integer_valued_real_p): Add builtin rint.
(fold_builtin): Likewise.
* convert.c (convert_to_real): Likewise.
testsuite:
* gcc.dg/torture/builtin-integral-1.c: Also check for `rint'.
From-SVN: r79572
Diffstat (limited to 'gcc/convert.c')
-rw-r--r-- | gcc/convert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/convert.c b/gcc/convert.c index e8673bc..554cd48 100644 --- a/gcc/convert.c +++ b/gcc/convert.c @@ -175,6 +175,7 @@ convert_to_real (tree type, tree expr) && (((fcode == BUILT_IN_FLOORL || fcode == BUILT_IN_CEILL || fcode == BUILT_IN_ROUNDL + || fcode == BUILT_IN_RINTL || fcode == BUILT_IN_TRUNCL || fcode == BUILT_IN_NEARBYINTL) && (TYPE_MODE (type) == TYPE_MODE (double_type_node) @@ -182,6 +183,7 @@ convert_to_real (tree type, tree expr) || ((fcode == BUILT_IN_FLOOR || fcode == BUILT_IN_CEIL || fcode == BUILT_IN_ROUND + || fcode == BUILT_IN_RINT || fcode == BUILT_IN_TRUNC || fcode == BUILT_IN_NEARBYINT) && (TYPE_MODE (type) == TYPE_MODE (float_type_node))))) |