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]

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


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?

Uros.

Attachment: p.diff.txt
Description: Text document


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