a peculiar fpload problem on an inferior processor

Dave Korn dave.korn.cygwin@googlemail.com
Thu May 6 10:31:00 GMT 2010


On 06/05/2010 10:00, Amker.Cheng wrote:

> here is the question : Is it possible to replace all direct fpload
> with "load_into_gpr ; move_gpr_into_fpr"
> sequence. I doubt it since the reload pass might generate direct
> fpload insn for spilling fpu register.

  It is possible.  Your expander can handle it before reload; to handle it
during and after reload, you need to implement a TARGET_SECONDARY_RELOAD hook.

http://gcc.gnu.org/onlinedocs/gccint/Register-Classes.html#index-TARGET_005fSECONDARY_005fRELOAD-3974

    cheers,
      DaveK



More information about the Gcc mailing list