This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question about GO_IF_LEGITIMIZE_ADDRESS
- From: Peter Barada <pbarada at mail dot wm dot sps dot mot dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 18 Feb 2002 11:27:02 -0500
- Subject: Question about GO_IF_LEGITIMIZE_ADDRESS
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)