Have run out of space in CONST_OK_FOR_LETTER_P

Peter Barada pbarada@mail.wm.sps.mot.com
Mon Jan 14 13:50:00 GMT 2002


I'm in the midst of adding Coldfire V4E support to gcc-3.1, and
there's no room left in the m68k CONST_OK_FOR_LETTER_P to add in the
range [-1, 0-7] which the mov3q.l instruction supports.  I've
attempted to get around this by creating an EXTRA_CONSTRAINT that
accepts if its a constant integer, and its value is in range:

  (((CODE) == 'R') && TARGET_CFV4)			\
   ? (GET_CODE (OP) == CONST_INT			\
      && (INTVAL (OP) == -1				\
          || (INTVAL (OP) >= 1 && INTVAL (OP) <= 7)))	\
   :                                                    \

Is there a better way to do this?  Is there any way to extend
CONST_OK_FOR_LETTER_P?  Are there any letters left that can be used
for CONST_OK_FOR_LETTER_P, or EXTRA_CONSTRAINT? 

-- 
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