This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH]Construct canonical scaled address expression in IVOPT
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Bin Cheng <Bin dot Cheng at arm dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 23 Sep 2013 16:20:30 +0100
- Subject: Re: [PATCH]Construct canonical scaled address expression in IVOPT
- Authentication-results: sourceware.org; auth=none
- References: <001001ceb5e8$486bfd80$d943f880$ at arm dot com> <CAFiYyc2WssVSvy29kfAOnCKgxVMuiGHTgDYdHfjKewZ_stHd7g at mail dot gmail dot com>
On 23/09/13 13:07, Richard Biener wrote:
> What's the problem
> with arm supporting reg1 * scale? Why shouldn't it being able to handle
> the implicit zero offset?
Something like "we don't have an instruction that can do that"...
Valid addresses are of the general form
'[' base-reg ']'
| '[' base-reg ',' offset ']'
| '[' base-reg ',' offset-reg ',' addr-scale-op ']'
The base register is mandatory, the scale can only be applied when there
is both a base and an offset which is a register.