aboutsummaryrefslogtreecommitdiff
path: root/lib/arm/divsf3vfp.S
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2011-12-31 14:55:23 +0000
committerEd Schouten <ed@FreeBSD.org>2011-12-31 14:55:23 +0000
commit219fb0488994a289f1087f7b3da18789e068da12 (patch)
treed59ced7e19afaab87432b7610faefff3080e8d2a /lib/arm/divsf3vfp.S
parentb0a04aaa595ba76468e521f12727a872d144d6d0 (diff)
downloadsrc-4123e5d156bcf91a8278ca9ea0c0d1c4427ff203.tar.gz
src-4123e5d156bcf91a8278ca9ea0c0d1c4427ff203.zip
Import compiler-rt r147390.vendor/compiler-rt/compiler-rt-r147390
Diffstat (limited to 'lib/arm/divsf3vfp.S')
-rw-r--r--lib/arm/divsf3vfp.S9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/arm/divsf3vfp.S b/lib/arm/divsf3vfp.S
index 9eefcf31eba8..81ba90307897 100644
--- a/lib/arm/divsf3vfp.S
+++ b/lib/arm/divsf3vfp.S
@@ -15,10 +15,11 @@
// Divides two single precision floating point numbers using the Darwin
// calling convention where single arguments are passsed like 32-bit ints.
//
+ .syntax unified
.align 2
DEFINE_COMPILERRT_FUNCTION(__divsf3vfp)
- fmsr s14, r0 // move first param from r0 into float register
- fmsr s15, r1 // move second param from r1 into float register
- fdivs s13, s14, s15
- fmrs r0, s13 // 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
+ vdiv.f32 s13, s14, s15
+ vmov r0, s13 // move result back to r0
bx lr