Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/lgpl3/gmp/dist/mpn/arm hint from scw: "bx" is a thu...



details:   https://anonhg.NetBSD.org/src/rev/cf9921808013
branches:  trunk
changeset: 767116:cf9921808013
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jul 09 15:00:08 2011 +0000

description:
hint from scw: "bx" is a thumb instruction.  add code to work with
non-thumb cpus.  now /usr/bin/cc on my shark actually runs properly
without crashing (but very very slowly.)

diffstat:

 external/lgpl3/gmp/dist/mpn/arm/invert_limb.asm |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r de368f3b965d -r cf9921808013 external/lgpl3/gmp/dist/mpn/arm/invert_limb.asm
--- a/external/lgpl3/gmp/dist/mpn/arm/invert_limb.asm   Sat Jul 09 14:59:16 2011 +0000
+++ b/external/lgpl3/gmp/dist/mpn/arm/invert_limb.asm   Sat Jul 09 15:00:08 2011 +0000
@@ -42,7 +42,10 @@
        adds    r1, r3, r0
        adc     r12, r12, r0
        rsb     r0, r12, r2
-       bx      lr
+ifdef(`ARM_THUMB_MODE',
+`      bx      lr
+',`    mov     pc, lr
+')
 
        ALIGN(4)
 L(4):  .word   approx_tab-8-512-L(2)



Home | Main Index | Thread Index | Old Index