aboutsummaryrefslogtreecommitdiff
path: root/lib/arm/addsf3vfp.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arm/addsf3vfp.S')
-rw-r--r--lib/arm/addsf3vfp.S9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/arm/addsf3vfp.S b/lib/arm/addsf3vfp.S
index b747528de52b..43653d5265c0 100644
--- a/lib/arm/addsf3vfp.S
+++ b/lib/arm/addsf3vfp.S
@@ -15,10 +15,11 @@
// Adds two single precision floating point numbers using the Darwin
// calling convention where single arguments are passsed in GPRs
//
+ .syntax unified
.align 2
DEFINE_COMPILERRT_FUNCTION(__addsf3vfp)
- fmsr s14, r0 // move first param from r0 into float register
- fmsr s15, r1 // move second param from r1 into float register
- fadds s14, s14, s15
- fmrs r0, s14 // move result back to r0
+ vmov s14, r0 // move first param from r0 into float register
+ vmov s15, r1 // move second param from r1 into float register
+ vadd.f32 s14, s14, s15
+ vmov r0, s14 // move result back to r0
bx lr