[PATCH, AArch64] Accept negative immediates in MOVI <imm8>

Marcus Shawcroft marcus.shawcroft@gmail.com
Mon May 13 15:29:00 GMT 2013


On 13 May 2013 15:55, Yufeng Zhang <Yufeng.Zhang@arm.com> wrote:
> Hi,
>
> This patch changes the assembler to accept the range between -128 and 255 in
> the MOVI <imm8> operand.
>
> OK for the trunk?
>
> Thanks,
> Yufeng
>
>
> gas/
>
> 2013-05-13  Yufeng Zhang  <yufeng.zhang@arm.com>
>
>         * testsuite/gas/aarch64/diagnostic.s: Update.
>         * testsuite/gas/aarch64/diagnostic.l: Ditto.
>         * testsuite/gas/aarch64/movi.s: Add new tests.
>         * testsuite/gas/aarch64/movi.d: Update.
>
> opcodes/
>
> 2013-05-13  Yufeng Zhang  <yufeng.zhang@arm.com>
>
>         * aarch64-asm.c (aarch64_ins_advsimd_imm_modified): Remove
> assertion.
>         * aarch64-opc.c (operand_general_constraint_met_p): Relax the range
>         check from [0, 255] to [-128, 255].


OK

This is a bug fix therefore it should be back ported to 2.23.


Cheers
/Marcus



More information about the Binutils mailing list