http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53176
--- Comment #21 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2012-05-06 23:25:40 UTC --- All this should be taken care of by the default rtx costs; I don't think any target patches should be needed for these targets at least not for this case. The default should be N*natural_set_cost, where natural_set_cost is the cost of setting a register (possibly the default) and N is the number of UNITS_PER_WORD for the rtx. And, the target rtx cost hook should only need to handle rtxes that are valid for the target; no phony insns in larger modes for which there is no named pattern (not documented as such but inferring from only valid addresses needing to be handled by TARGET_ADDRESS_COST).