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

2013-03-25 Thread Marcus Shawcroft

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  

* 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



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

2013-03-25 Thread Sofiane Naci
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  

* config/aarch64/aarch64.c (aarch64_classify_address): Support
PC-relative load in SI modes and above only.


aarch64-restrict-m-constraint.patch
Description: Binary data