[PATCH][AARCH64] Restrict "m" constraint for narrow moves

Marcus Shawcroft marcus.shawcroft@arm.com
Mon Mar 25 09:59:00 GMT 2013


On 25/03/13 09:32, Sofiane Naci wrote:
> Hi,
>
> Loads and stores with PC-relative addresses are not supported for SHORT
> modes. This patch fixes a silent bug and implements this restriction for the
> generic "m" constraint.
>
> Tested successfully on aarch64-none-elf.
>
> OK for trunk?
>
> Thanks
> Sofiane
>
> -----
>
> 2013-03-25  Sofiane Naci  <sofiane.naci@arm.com>
>
> 	* config/aarch64/aarch64.c (aarch64_classify_address): Support
> 	PC-relative load in SI modes and above only.
>

OK.

This is also an issue in 4.8, please back port the patch.

Cheers

/Marcus



More information about the Gcc-patches mailing list