[Patch, AArch64] Add support for alias instructions SXTL, SXTL2, UXTL and UXTL2

Yufeng Zhang Yufeng.Zhang@arm.com
Tue Jan 29 18:42:00 GMT 2013


Hi,

This patch adds support in GAS and opcodes for SXTL, SXTL2, UXTL and 
UXTL2 as the preferred aliases for SSHLL, SSHLL2, USHLL and USHLL2 with 
an immediate shift of #0.

OK for the trunk and the 2.23 branch?

Thanks,
Yufeng


include/opcode/

2013-01-30  Yufeng Zhang  <yufeng.zhang@arm.com>

	* aarch64.h (aarch64_op): Add OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2.

opcodes/

2013-01-30  Yufeng Zhang  <yufeng.zhang@arm.com>

	* aarch64-tbl.h (aarch64_opcode_table): Flag sshll, sshll2, ushll and
	ushll2 with F_HAS_ALIAS.  Add entries for sxtl, sxtl2, uxtl and uxtl2.
	* aarch64-asm.c (convert_xtl_to_shll): New function.
	(convert_to_real): Handle OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2 by
	calling convert_xtl_to_shll.
	* aarch64-dis.c (convert_shll_to_xtl): New function.
	(convert_to_alias): Handle OP_SXTL, OP_SXTL2, OP_UXTL and OP_UXTL2 by
	calling convert_shll_to_xtl.
	* aarch64-asm-2.c: Re-generate.
	* aarch64-dis-2.c: Re-generate.
	* aarch64-opc-2.c: Re-generate.

gas/testsuite/

2013-01-30  Yufeng Zhang  <yufeng.zhang@arm.com>

	* gas/aarch64/alias.s: Add new tests.
	* gas/aarch64/alias.d: Update.
	* gas/aarch64/no-aliases.d: Update.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aarch64-xtl.patch
Type: text/x-patch
Size: 8273 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20130129/68b1f8a2/attachment.bin>


More information about the Binutils mailing list