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, i386]: Introduce missing FP control register (fpcr) definition


"Uros Bizjak" <ubizjak@gmail.com> writes:

> 2005-10-05  Uros Bizjak  <uros@kss-loka.si>
> 
> 	* config/i386/i386.h (FIRST_PSEUDO_REGISTER): Define to 54.
> 	(FIXED_REGISTERS, CALL_USED_REGISTERS): Add fpcr register.
> 	(REG_ALLOC_ORDER): Add one element to allocate fpcr register.
> 	(FRAME_POINTER_REGNUM): Update register number to 21.
> 	(REG_CLASS_CONTENTS): Update contents for added fpcr register.
> 	(HI_REGISTER_NAMES): Add "fpcr" for fpcr register.
> 
> 	* config/i386/i386.c (regclass_map): Add fpcr entry.
> 	(dbx_register_map, dbx64_register_map, svr4_dbx_register_map):
> 	Add fpcr entry.
> 
> 	* config/i386/i386.md (FPCR_REG): New constant.
> 	(x86_fnstcw_1, x86_fldcw_1): Use FPCR_REG instead of FPSR_REG.

This patch is OK for mainline.

Thanks.

Ian


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