Re: [PATCH v4 16/19] arm64: insn: Allow ADD/SUB (immediate) with LSL #12

2018-01-18 Thread Christoffer Dall
On Thu, Jan 04, 2018 at 06:43:31PM +, Marc Zyngier wrote: > The encoder for ADD/SUB (immediate) can only cope with 12bit > immediates, while there is an encoding for a 12bit immediate shifted > by 12 bits to the left. > > Let's fix this small oversight by allowing the LSL_12 bit to be set. >

[PATCH v4 16/19] arm64: insn: Allow ADD/SUB (immediate) with LSL #12

2018-01-04 Thread Marc Zyngier
The encoder for ADD/SUB (immediate) can only cope with 12bit immediates, while there is an encoding for a 12bit immediate shifted by 12 bits to the left. Let's fix this small oversight by allowing the LSL_12 bit to be set. Signed-off-by: Marc Zyngier ---