Integer moves for fp regs
Michael Hayes
michaelh@ongaonga.chch.cri.nz
Wed Jul 29 15:04:00 GMT 1998
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.
More information about the Gcc
mailing list