This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Restrictive addressing mode
- From: Mohamed Shafi <shafitvm at gmail dot com>
- To: GCC <gcc at gcc dot gnu dot org>
- Date: Tue, 11 Aug 2009 10:11:25 +0530
- Subject: Restrictive addressing mode
Hello all,
I am trying to port a 32bit target in GCC 4.4.0
Of the addressing modes that are allowed by my target the one with
(base register + offset) is restrictive in QImode.
The restriction is that if the base register is not Stack Pointer then
this kind of address cannot come in a load instruction but only in
store instruction. So how can i implement this? Should i do a
define_expand for movQi3 and force it to a register when i get this
addressing mode?
Please let me know your thoughts on this.
Regards,
shafi