summaryrefslogtreecommitdiff
path: root/lib/arm/gedf2vfp.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/gedf2vfp.S
parentb0a04aaa595ba76468e521f12727a872d144d6d0 (diff)
downloadsrc-test2-219fb0488994a289f1087f7b3da18789e068da12.tar.gz
src-test2-219fb0488994a289f1087f7b3da18789e068da12.zip
Notes
Diffstat (limited to 'lib/arm/gedf2vfp.S')
-rw-r--r--lib/arm/gedf2vfp.S9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/arm/gedf2vfp.S b/lib/arm/gedf2vfp.S
index 9993f52fb49d..55603b83e306 100644
--- a/lib/arm/gedf2vfp.S
+++ b/lib/arm/gedf2vfp.S
@@ -16,12 +16,13 @@
// Uses Darwin calling convention where double precision arguments are passsed
// like in GPR pairs.
//
+ .syntax unified
.align 2
DEFINE_COMPILERRT_FUNCTION(__gedf2vfp)
- fmdrr d6, r0, r1 // load r0/r1 pair in double register
- fmdrr d7, r2, r3 // load r2/r3 pair in double register
- fcmpd d6, d7
- fmstat
+ vmov d6, r0, r1 // load r0/r1 pair in double register
+ vmov d7, r2, r3 // load r2/r3 pair in double register
+ vcmp.f64 d6, d7
+ vmrs apsr_nzcv, fpscr
movge r0, #1 // set result register to 1 if greater than or equal
movlt r0, #0
bx lr