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, i386]: Improve IS_STACK_MODE and use it some more


Hello!

2016-05-23  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.h (IS_STACK_MODE): Enable for
    TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
    SSE_FLOAT_MODE_P macros.
    * config/i386/i386.c (ix86_preferred_reload_class): Use
    IS_STACK_MODE, INTEGER_CLASS_P and FLOAT_CLASS_P macros.  Cleanup
    regclass processing for CONST_DOUBLE_P.
    (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
    (ix86_rtx_costs): Remove redundant TARGET_80387 check
    with IS_STACK_MODE macro.
    * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
    with TARGET_SSE2.
    (*movdf_internal): Use IS_STACK_MODE macro.
    (*movsf_internal): Ditto.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.

Committed to mainline SVN.

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]