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]: Remove fpcr register definition


This is actually an unused register, there is no point to define it.

2018-09-27  Uros Bizjak  <ubizjak@gmail.com>

    * config/i386/i386.md (FPCR_REG): Remove.
    (x86_fnstcw_1): Use (const_int 0) instead of FPCR_REG.
    (x86_fldcw_1): Remove insn pattern.
    (fnstenv): Do not clobber FPCR_REG.
    (fldenv): Ditto.
    * config/i386/i386.h (FIXED_REGISTERS) Remove fpsr register.
    (CALL_USED_REGISTERS): Ditto.
    (REG_ALLOC_ORDER): Ditto.
    (REG_CLASS_CONTENTS): Ditto.
    (HI_REGISTER_NAMES): Ditto.
    (ADDITIONAL_REGISTER_NAMES): Use defines instead
    of numerical constants.
    * config/i386/i386.c (regclass_map): Remove fpsr register.
    (dbx_register_map): Ditto.
    (dbx64_register_map): Ditto.
    (svr4_dbx_register_map): Ditto.
    (print_reg): Do not handle FPCR_REG.

testsuite/ChangeLog:

2018-09-27  Uros Bizjak  <ubizjak@gmail.com>

    * gcc.dg/rtl/x86_64/dfinit.c: Update scan-rtl-dump string.
    * gcc.dg/rtl/x86_64/times-two.c.before-df.c: Ditto.
    * gcc.target/i386/pr79804.c (foo): Use register "19", not "20".

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]