aboutsummaryrefslogtreecommitdiff
path: root/libffi/src
diff options
context:
space:
mode:
authorScott Bambrough <scottb@netwinder.org>2000-05-11 18:16:37 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-05-11 18:16:37 +0000
commit7f8c11d5715dad01dffd26de3b5f6d028417373a (patch)
tree85a96b3cc4ba338824f1ca5374bf6aca87a9e18f /libffi/src
parent0f00654bf820efdf8d084931a58f98de866febc5 (diff)
downloadgcc-7f8c11d5715dad01dffd26de3b5f6d028417373a.zip
gcc-7f8c11d5715dad01dffd26de3b5f6d028417373a.tar.gz
gcc-7f8c11d5715dad01dffd26de3b5f6d028417373a.tar.bz2
sysv.S (ffi_call_SYSV): Doubles are not saved to memory correctly.
2000-05-11 Scott Bambrough <scottb@netwinder.org> * libffi/src/arm/sysv.S (ffi_call_SYSV): Doubles are not saved to memory correctly. Use conditional instructions, not branches where possible. From-SVN: r33852
Diffstat (limited to 'libffi/src')
-rw-r--r--libffi/src/arm/sysv.S16
1 files changed, 5 insertions, 11 deletions
diff --git a/libffi/src/arm/sysv.S b/libffi/src/arm/sysv.S
index 14230c4..874b80a 100644
--- a/libffi/src/arm/sysv.S
+++ b/libffi/src/arm/sysv.S
@@ -97,19 +97,13 @@ ENTRY(ffi_call_SYSV)
beq epilogue
# return FLOAT
- cmp a4, #FFI_TYPE_FLOAT
- bne retdouble
- stfs f0, [a3]
- b epilogue
+ cmp a4, #FFI_TYPE_FLOAT
+ stfeqs f0, [a3]
+ beq epilogue
# return DOUBLE or LONGDOUBLE
-retdouble:
- cmp a4, #FFI_TYPE_DOUBLE
- bne epilogue
-
- stfs f0, [a3, #0]
- stfs f1, [a3, #4]
- b epilogue
+ cmp a4, #FFI_TYPE_DOUBLE
+ stfeqd f0, [a3]
epilogue:
ldmfd sp!, {a1-a4, fp, pc}