diff options
author | Stephen Hines <srhines@google.com> | 2013-10-25 06:26:44 +0000 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2013-10-25 06:26:44 +0000 |
commit | 3a6eb8083c342da436df8c7d1809dfeb8834bc6d (patch) | |
tree | e996e5d5c4b1e10105be7049931dde70ddd78d7c /lib/arm/divmodsi4.S | |
parent | 10362d66fffcd99bd5ced983e4b389dfeba114d0 (diff) | |
download | compiler-rt-3a6eb8083c342da436df8c7d1809dfeb8834bc6d.tar.gz compiler-rt-3a6eb8083c342da436df8c7d1809dfeb8834bc6d.tar.bz2 compiler-rt-3a6eb8083c342da436df8c7d1809dfeb8834bc6d.tar.xz |
Switch __ARM_ARCH_7S__ to __ARM_ARCH_EXT_IDIV__ for use of sdiv/udiv assembly.
__ARM_ARCH_EXT_IDIV__ is the define that ARM is using to indicate the presence
of hardware integer divide (sdiv/udiv). Previously, this code was only being
invoked for processors marked 7S. We now can correctly generate hardware
divides on cortex-a15 devices.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/arm/divmodsi4.S')
-rw-r--r-- | lib/arm/divmodsi4.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arm/divmodsi4.S b/lib/arm/divmodsi4.S index d31e510c..6495a8b4 100644 --- a/lib/arm/divmodsi4.S +++ b/lib/arm/divmodsi4.S @@ -24,7 +24,7 @@ .syntax unified .align 3 DEFINE_COMPILERRT_FUNCTION(__divmodsi4) -#if __ARM_ARCH_7S__ +#if __ARM_ARCH_EXT_IDIV__ tst r1, r1 beq LOCAL_LABEL(divzero) mov r3, r0 |