summaryrefslogtreecommitdiff
path: root/lib/builtins/arm/aeabi_dcmp.S
diff options
context:
space:
mode:
authorWeiming Zhao <weimingz@codeaurora.org>2017-01-27 01:21:00 +0000
committerWeiming Zhao <weimingz@codeaurora.org>2017-01-27 01:21:00 +0000
commit164a6f2dc1023111b14c93c1036a9d3c5a55c16b (patch)
treeec25b69f11ee23dadd92c9fc1bfd7e1cc0e66393 /lib/builtins/arm/aeabi_dcmp.S
parent0e474360af3bb5dbefd93c45a8d16d9db4260048 (diff)
[Builtin][ARM] Add Thumb1 support for aeabi_c{f,d}cmp.S and dcmp.S
Reviewers: compnerd, rengolin Reviewed By: rengolin Subscribers: aemerson, llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D28985 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@293247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/arm/aeabi_dcmp.S')
-rw-r--r--lib/builtins/arm/aeabi_dcmp.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/builtins/arm/aeabi_dcmp.S b/lib/builtins/arm/aeabi_dcmp.S
index 43e439268..51539c0ac 100644
--- a/lib/builtins/arm/aeabi_dcmp.S
+++ b/lib/builtins/arm/aeabi_dcmp.S
@@ -26,10 +26,10 @@ DEFINE_COMPILERRT_FUNCTION(__aeabi_dcmp ## cond) \
bl SYMBOL_NAME(__ ## cond ## df2) SEPARATOR \
cmp r0, #0 SEPARATOR \
b ## cond 1f SEPARATOR \
- mov r0, #0 SEPARATOR \
+ movs r0, #0 SEPARATOR \
pop { r4, pc } SEPARATOR \
1: SEPARATOR \
- mov r0, #1 SEPARATOR \
+ movs r0, #1 SEPARATOR \
pop { r4, pc } SEPARATOR \
END_COMPILERRT_FUNCTION(__aeabi_dcmp ## cond)