Re: [PATCH 2/5] [ARC] Fix detection of long immediate for load/store operands.

2017-03-24 Thread Andrew Burgess
* Claudiu Zissulescu [2017-03-20 12:43:27 +0100]: > ARC can use scaled offsets when loading (i.e. ld.as rA,[base, > offset]). Where base and offset can be a register or an immediate > operand. The scaling only applies on the offset part of the > instruction. The compiler can accept an address

[PATCH 2/5] [ARC] Fix detection of long immediate for load/store operands.

2017-03-20 Thread Claudiu Zissulescu
ARC can use scaled offsets when loading (i.e. ld.as rA,[base, offset]). Where base and offset can be a register or an immediate operand. The scaling only applies on the offset part of the instruction. The compiler can accept an address like this: (plus:SI (mult:SI (reg:SI 2 r2 [orig:596 _2129 ]