This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, middle-end]: Implement significand{,f,l} usign fxtract insn


On Fri, 19 Jun 2009, Uros Bizjak wrote:

> Hello!
> 
> This patch copies implementation of significand{,f,l} from glibc.
> 
> 2009-06-19  Uros Bizjak <ubizjak@gmail.com>
> 
>     * optabs.h (enum optab_index): Add new OTI_significand.
>     (significand_optab): Define corresponding macro.
>     * optabs.c (init_optabs): Initialize significand_optab.
>     * genopinit.c (optabs): Implement significand_optab using
>     significand?f2 patterns.
>     * builtins.c (expand_builtin_mathfn): Handle
>     BUILT_IN_SIGNIFICAND{,F,L}.
>     (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
>     expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
> 
>     * config/i386/i386.md (significandxf2, significand<mode>2): New
>     expanders to implement significandf, significand and significandl
>     built-ins as inline x87 intrinsics.
> 
> testsuite/ChangeLog:
> 
> 2009-06-19  Uros Bizjak <ubizjak@gmail.com>
> 
>     * gcc.dg/builtins-34.c: Add significand cases.
> 
> Patch was bootstrapped and regression tested on x86_64-pc-linux-gnu {,-m32}.
> OK for mainline?

Ok.

Thanks,
Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]