[PATCH ARM 5/6]: Architectural Extensions - Integer Divide Extensions
Matthew Gretton-Dann
matthew.gretton-dann@arm.com
Thu Sep 23 09:23:00 GMT 2010
All,
The attached patch adds support for the Integer Divide Extensions to
v7-A, under the 'idiv' extension.
When enabled the extension adds support for the UDIV and SDIV
instructions in ARM and Thumb states to v7-A. It is present by default
on Cortex-A15.
Note that v7-R and v7-M already have support for UDIV and SDIV but in
Thumb state only. This patch does not change the behaviour of those
architectures.
Proposed ChangeLogs:
gas/ChangeLog:
2010-09-22 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* config/tc-arm.c (arm_ext_adiv): Add.
(do_div): Add.
(insns): Accept UDIV and SDIV in ARM state.
(arm_cpus): The cortex-a15 option has all current v7-A
extensions.
(arm_extensions): Add 'idiv' extension.
(aeabi_set_public_attributes): Update Tag_DIV_use values for the
Integer Divide extension.
* doc/c-arm.texi: Document the idiv extension.
gas/testsuite/ChangeLog:
2010-09-22 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* gas/arm/armv7-a+idiv.d: New test.
* gas/arm/armv7-a+idiv.s: Likewise.
* gas/arm/attr-march-all.d: Update for Integer divide extension.
* gas/arm/attr-march-armv7-a+idiv.d: New test.
include/opcode/ChangeLog:
2010-09-22 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* arm.h (ARM_AEXT_ADIV): Add.
(ARM_ARCH_V7A_IDIV_MP_SEC): Likewise.
opcodes/ChangeLog:
2010-09-22 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* arm-dis.c (arm_opcodes): Support disassembly of UDIV and SDIV
in ARM state.
Thanks,
Matt
--
Matthew Gretton-Dann
Principal Engineer - PDSW Tools
ARM Ltd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1009-005-arch-extensions-idiv.patch
Type: text/x-patch
Size: 7667 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20100923/363bdc0f/attachment.bin>
More information about the Binutils
mailing list