Use mvnge AHI, #0x80000000 instead of mvnge AHI, ALO, lsr #1

This commit is contained in:
matt 2013-08-13 15:52:00 +00:00
parent 1271d298bd
commit c4948bca36

View File

@ -29,7 +29,7 @@
#include <machine/asm.h>
RCSID("$NetBSD: __aeabi_ldivmod.S,v 1.10 2013/08/13 15:46:31 matt Exp $")
RCSID("$NetBSD: __aeabi_ldivmod.S,v 1.11 2013/08/13 15:52:00 matt Exp $")
ENTRY(__aeabi_ldivmod)
#if !defined(_KERNEL) && !defined(_STANDALONE)
@ -137,7 +137,7 @@ ENTRY(__aeabi_ldivmod)
push {r0-r1, ip, lr}
cmp AHI, #0
mvnge ALO, #0
movge AHI, ALO, lsr #1
mvnlt AHI, #0x80000000
movlt ALO, #0
movlt AHI, #0x80000000
bl PLT_SYM(__aeabi_ldiv0)