From: Yvan Roux Date: Mon, 20 Dec 2010 17:16:38 +0000 (+0000) Subject: lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix condition on IT instruction... X-Git-Tag: releases/gcc-4.6.0~1731 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee102849bdd062adb177361b125500c07d415e78;p=thirdparty%2Fgcc.git lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix condition on IT instruction for early termination. 2010-12-20 Yvan Roux * config/arm/lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix condition on IT instruction for early termination. From-SVN: r168088 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d4ea420c0ba..4b57bdf733ec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-12-20 Yvan Roux + + * config/arm/lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix + condition on IT instruction for early termination. + 2010-12-20 Joseph Myers * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't define. diff --git a/gcc/config/arm/lib1funcs.asm b/gcc/config/arm/lib1funcs.asm index 085e69068ad8..2e76c01df4b3 100644 --- a/gcc/config/arm/lib1funcs.asm +++ b/gcc/config/arm/lib1funcs.asm @@ -641,7 +641,7 @@ pc .req r15 subhs \dividend, \dividend, \divisor, lsr #3 orrhs \result, \result, \curbit, lsr #3 cmp \dividend, #0 @ Early termination? - do_it hs, t + do_it ne, t movnes \curbit, \curbit, lsr #4 @ No, any more bits to do? movne \divisor, \divisor, lsr #4 bne 1b