summaryrefslogtreecommitdiff
path: root/lib/arm/umodsi3.S
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2013-10-25 06:26:44 +0000
committerStephen Hines <srhines@google.com>2013-10-25 06:26:44 +0000
commit3a6eb8083c342da436df8c7d1809dfeb8834bc6d (patch)
treee996e5d5c4b1e10105be7049931dde70ddd78d7c /lib/arm/umodsi3.S
parent10362d66fffcd99bd5ced983e4b389dfeba114d0 (diff)
downloadcompiler-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/umodsi3.S')
-rw-r--r--lib/arm/umodsi3.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arm/umodsi3.S b/lib/arm/umodsi3.S
index 328e7054..188edf30 100644
--- a/lib/arm/umodsi3.S
+++ b/lib/arm/umodsi3.S
@@ -23,7 +23,7 @@
.syntax unified
.align 3
DEFINE_COMPILERRT_FUNCTION(__umodsi3)
-#if __ARM_ARCH_7S__
+#if __ARM_ARCH_EXT_IDIV__
tst r1, r1
beq LOCAL_LABEL(divzero)
udiv r2, r0, r1