summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Canon <scanon@apple.com>2011-03-21 17:35:26 +0000
committerStephen Canon <scanon@apple.com>2011-03-21 17:35:26 +0000
commit2caeeefe078e7c10170f02b717e4a5ab7623e554 (patch)
treec847d7bc960739699c110428aedaeed3bbf6bcf1
parent6bbe0bb0856f7e7cabe11bc0a10c268db034142b (diff)
downloadcompiler-rt-2caeeefe078e7c10170f02b717e4a5ab7623e554.tar.gz
slight re-arrangement to maybe pick up one cycle on dual-issue ARM cores
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@128003 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/arm/divmodsi4.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arm/divmodsi4.S b/lib/arm/divmodsi4.S
index 6e72eabbd..b11a4a8eb 100644
--- a/lib/arm/divmodsi4.S
+++ b/lib/arm/divmodsi4.S
@@ -40,8 +40,8 @@ DEFINE_COMPILERRT_FUNCTION(__divmodsi4)
// Apply the sign of quotient and modulus
ldr r1, [r6]
eor r0, r0, r4, asr #31
- sub r0, r0, r4, asr #31
eor r1, r1, r5, asr #31
+ sub r0, r0, r4, asr #31
sub r1, r1, r5, asr #31
str r1, [r6]
CLEAR_FRAME_AND_RETURN