This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]