OSDN Git Service

2006-10-24 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Oct 2006 08:35:12 +0000 (08:35 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Oct 2006 08:35:12 +0000 (08:35 +0000)
commitacc2b92e4ca675b228de4d5ced9f65bbf35ad6f5
treee6f6ab1c1097626958f15e10fe8bd68d769702e3
parent13f7fd91de122b85c08d8c5efa54f83a410fc73a
2006-10-24  Richard Guenther  <rguenther@suse.de>

* builtins.c (fold_builtin_floor): Fold floor (x) where
x is nonnegative to trunc (x).
(fold_builtin_int_roundingfn): Fold lfloor (x) where x is
nonnegative to FIX_TRUNC_EXPR.

* gcc.dg/builtins-57.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117998 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-57.c [new file with mode: 0644]