diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-21 14:42:48 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-21 14:42:48 +0000 |
commit | 870fcc23335245f0bdeae25119a793ff51618015 (patch) | |
tree | cadbf5733257cf185cf62deba3c619c718dc7138 /gcc/genopinit.c | |
parent | 0fc1e6fa55ab2c412298e947ef56fff54d256d8d (diff) | |
download | gcc-870fcc23335245f0bdeae25119a793ff51618015.tar.gz |
* 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
Diffstat (limited to 'gcc/genopinit.c')
-rw-r--r-- | gcc/genopinit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/genopinit.c b/gcc/genopinit.c index e52ca068984..a71abb074d3 100644 --- a/gcc/genopinit.c +++ b/gcc/genopinit.c @@ -124,6 +124,8 @@ static const char * const optabs[] = "btrunc_optab->handlers[$A].insn_code = CODE_FOR_$(btrunc$a2$)", "nearbyint_optab->handlers[$A].insn_code = CODE_FOR_$(nearbyint$a2$)", "rint_optab->handlers[$A].insn_code = CODE_FOR_$(rint$a2$)", + "lrint_optab->handlers[$A].insn_code = CODE_FOR_$(lrint$a2$)", + "llrint_optab->handlers[$A].insn_code = CODE_FOR_$(llrint$a2$)", "sincos_optab->handlers[$A].insn_code = CODE_FOR_$(sincos$a3$)", "sin_optab->handlers[$A].insn_code = CODE_FOR_$(sin$a2$)", "asin_optab->handlers[$A].insn_code = CODE_FOR_$(asin$a2$)", |