* optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
commit870fcc23335245f0bdeae25119a793ff51618015
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Mar 2005 14:42:48 +0000 (21 14:42 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Mar 2005 14:42:48 +0000 (21 14:42 +0000)
treecadbf5733257cf185cf62deba3c619c718dc7138
parent0fc1e6fa55ab2c412298e947ef56fff54d256d8d
* optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
(lrint_optab, llrint_optab): Define corresponding macros.
* optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
* genopinit.c (optabs): Implement lrint_optab using lrintsi2
pattern and llrint_optab using llrintdi2 patterns.
* builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
(expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
flag_unsafe_math_optimizations is set.

testsuite:

* gcc.dg/builtins-46.c: Also check lrint* and llrint*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96802 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/genopinit.c
gcc/optabs.c
gcc/optabs.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-46.c