[llvm-commits] Fix PR13936: Add sdiv/udiv in ARM mode for targets that support them

Weiming Zhao weimingz at codeaurora.org
Thu Sep 27 12:08:56 PDT 2012


Hi,

 

This patch fixes PR 13936 (http://llvm.org/bugs/show_bug.cgi?id=13936)

 

According to ARM manual [1], ARM mode sdiv/udiv are optional in ARMv7-A and
ARMv7-R on ARM mode. 

So, this patch adds the ARM mode sdiv/udiv definition and encoding  into

existing td files and use the existing target-feature: hwdiv flag to guard
it. 

So, we can avoid calls to RT lib if the hardware supports hw div.

 

Please review the attached patch. 

 

Thanks,

Weiming

 

[1] Architecture Reference Manual ARMv7-A and ARMv7-R edition,

https://silver.arm.com/download/ARM_and_AMBA_Architecture/AR570-DA-70000-r0p
0-00rel1/DDI0406C_b_arm_architecture_reference_manual.pdf

, Page A8-600

 

 

Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
The Linux Foundation

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120927/cce87913/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PR-13936-Added-hardware-integer-division-support-for.patch
Type: application/octet-stream
Size: 6242 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120927/cce87913/attachment.obj>


More information about the llvm-commits mailing list