Question about GO_IF_LEGITIMIZE_ADDRESS
Peter Barada
pbarada@mail.wm.sps.mot.com
Mon Feb 18 09:06:00 GMT 2002
On the ColdFire V4, I'd like to use the bit test/set instructions, but
these instructions do not support absolute addressing.
I don't see any way of telling GO_IF_LEGITIMATE_ADDRESS to reject
SYMBOL_REFs for bittest instructions since the *instruction* isn't
passed to the maceo, just the operand. I could reject *all*
SYMBOL_REFs, but that produces really slow code. LEGITIMIZE_ADDRESS
also has the same problem.
I suppose I could modify the code to add the instruction to the
GO_IF_LEGITIMATE_ADDRESS and LEGITIMIZE_ADDRESS macros, but I'd
thought I'd ask for suggestions...
Are there any better ways to approach this problem?
--
Peter Barada Peter.Barada@motorola.com
Wizard 781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola) 781-270-0193 (fax)
More information about the Gcc
mailing list