This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: disallow movm in a register class
- From: Ian Lance Taylor <iant at google dot com>
- To: EggenmÃller Bernd <egge-b at gmx dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 18 May 2010 17:11:36 -0700
- Subject: Re: disallow movm in a register class
- References: <4BF2EC24.4080304@gmx.de>
EggenmÃller Bernd <egge-b@gmx.de> writes:
> how can I disallow the mov operation for a register class.
> Can someone help me?
Please do not start a new thread by replying to an existing message.
That hides your message for all of us who use threaded e-mail readers.
If there is some mode which can be stored in both register classes,
then gcc requires that you provide a way to move values between those
registers. So you can't really disallow it. You could disallow
direct moves between the register classes if you like; you can do that
by setting REGISTER_MOVE_COST for the modes and by providing secondary
reloads to actually move the values.
Ian