[PATCH] Enable the __ARM_ARCH_EXT_IDIV__ predefine generation on ARM

Silviu Baranga Silviu.Baranga at arm.com
Thu Oct 17 08:01:36 PDT 2013


Hi,

The following set of patches enable the generation of the __ARM_ARCH_EXT_IDIV__ predefine
for ARM targets which support division instructions. This will fix PR17555.

clang_ext.diff:
Targets having the hwdiv or hwdiv-arm feature will also the __ARM_ARCH_EXT_IDIV__ predefine.

Also adds the -mhwdiv option to modify these features. The arguments to this option
can be arm/thumb/arm,thumb and indicate in which mode the hardware division instructions
are supported (for example passing -mhwdiv=arm means the target support hardware division
instructions in arm mode but not in thumb mode).

clang_defaults.diff:
Depends on clang_ext.diff.

Sets the default hwdiv/hwdiv-arm features for different targets. The feature is added by
default for all AArch32 v8 targets, Cortex-A7, Cortex-A15, swift, Cortex-A53, Cortex-A57,
Cortex-R5, Cortex-M4 and Cortex-M3.

Please review!

Thanks,
Silviu

-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2557590
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2548782
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang_ext.diff
Type: application/octet-stream
Size: 9022 bytes
Desc: clang_ext.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131017/2bb5be0c/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang_defaults.diff
Type: application/octet-stream
Size: 7482 bytes
Desc: clang_defaults.diff
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131017/2bb5be0c/attachment-0001.obj>


More information about the cfe-commits mailing list