This is the mail archive of the gcc@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]

Re: Integer moves for fp regs


Jeffrey A Law writes:
 > I believe it is still necessary if HARD_REGNO_MODE_OK allows floating
 > point registers to hold integer mode values.

Do you know which bits of GCC require this behaviour?

 > ?  I thought caller-save tried to build and recognize suitable load/store
 > insns for each mode and if a particular mode didn't work it wouldn't
 > use it.

Yes, it does this.  However, if HARD_REGNO_MODE_OK allows both
floating point and integer modes of the same size for a register,
then caller save will use integer save/restore instructions.
For most architectures this is of no concern since the representation
of the bit pattern is not important.



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