This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Have run out of space in CONST_OK_FOR_LETTER_P
- From: Peter Barada <pbarada at mail dot wm dot sps dot mot dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Peter dot Barada at Motorola dot com
- Date: Mon, 14 Jan 2002 16:32:36 -0500
- Subject: Have run out of space in CONST_OK_FOR_LETTER_P
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)