[PATCH v5 12/23] arm64: insn: Allow ADD/SUB (immediate) with LSL #12

Catalin Marinas catalin.marinas at arm.com
Wed Mar 7 10:13:59 PST 2018


On Thu, Mar 01, 2018 at 03:55:27PM +0000, 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.
> 
> Reviewed-by: Christoffer Dall <christoffer.dall at linaro.org>
> Signed-off-by: Marc Zyngier <marc.zyngier at arm.com>

Acked-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list