Re: [PATCH] [ARC] Fix legitimize pic address.

2019-10-28 Thread Jeff Law
On 10/22/19 2:10 AM, Claudiu Zissulescu wrote: > Hi Andrew, > > There are cases when an pic address gets complicated, and it needs to > be resolved via force_reg function found in > prepare_move_operands. When this happens, we need to disambiguate the > pic address and re-legitimize it. Testcase a

[PATCH] [ARC] Fix legitimize pic address.

2019-10-22 Thread Claudiu Zissulescu
Hi Andrew, There are cases when an pic address gets complicated, and it needs to be resolved via force_reg function found in prepare_move_operands. When this happens, we need to disambiguate the pic address and re-legitimize it. Testcase added as well. The patch needs to be applied to trunk and g