Re: [PATCH 2/3] [ARC] Add scaled load pattern

2019-11-20 Thread Claudiu Zissulescu
You are right, I should start with cleaning up the movsi pattern :) I will come back to you with a proper patch when it is ready. Thank you, Claudiu On Wed, Nov 20, 2019 at 2:00 AM Jeff Law wrote: > > On 11/19/19 2:02 AM, Claudiu Zissulescu wrote: > > ARC processors can use scaled addresses, i.e

Re: [PATCH 2/3] [ARC] Add scaled load pattern

2019-11-19 Thread Jeff Law
On 11/19/19 2:02 AM, Claudiu Zissulescu wrote: > ARC processors can use scaled addresses, i.e., the offset part of the > load address can be shifted by 2 (multiplied by 4). Add this pattern > and a test for it. > > gcc/ > -xx-xx Claudiu Zissulescu > > * config/arc/arc.md (load_scaled

[PATCH 2/3] [ARC] Add scaled load pattern

2019-11-19 Thread Claudiu Zissulescu
ARC processors can use scaled addresses, i.e., the offset part of the load address can be shifted by 2 (multiplied by 4). Add this pattern and a test for it. gcc/ -xx-xx Claudiu Zissulescu * config/arc/arc.md (load_scaledsi): New pattern. testcase/ -xx-xx Claudiu Zissulescu