summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/arm/udivmodsi4.S
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/arm/udivmodsi4.S')
-rw-r--r--compiler-rt/lib/arm/udivmodsi4.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/arm/udivmodsi4.S b/compiler-rt/lib/arm/udivmodsi4.S
index 5fe53fe5fd0..aee2776671f 100644
--- a/compiler-rt/lib/arm/udivmodsi4.S
+++ b/compiler-rt/lib/arm/udivmodsi4.S
@@ -74,14 +74,17 @@ LOCAL_LABEL(mainLoop):
// this way, we can merge the two branches which is a substantial win for
// such a tight loop on current ARM architectures.
subs r, a, b, lsl i
+ itt hs
orrhs q, q,one, lsl i
movhs a, r
+ it ne
subsne i, i, #1
bhi LOCAL_LABEL(mainLoop)
// Do the final test subtraction and update of quotient (i == 0), as it is
// not performed in the main loop.
subs r, a, b
+ itt hs
orrhs q, #1
movhs a, r
OpenPOWER on IntegriCloud