Ian Lance Taylor schrieb:
Georg-Johann Lay <avr@xxxxxxxx> writes:
iii) Expand into MOV+LSHIFTRT and allow the resulting const in
*movsi_insn:
CSE et. al. will reconstruct the original constant and
replace MOV+LSHIFTRT with a single SET:
Bad: expanding was in vain and we Goto i)
I think this is the option you should use. You should use
TARGET_RTX_COSTS to make the constants which may not be immediate
operands expensive. Then CSE will not reconstruct them.
Jepp, that works.
Thanks a lot!
Georg-Johann