2010-12-20 Yvan Roux <yvan.roux@st.com>
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Dec 2010 17:16:38 +0000 (17:16 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Dec 2010 17:16:38 +0000 (17:16 +0000)
* config/arm/lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix
condition on IT instruction for early termination.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168088 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/lib1funcs.asm

index 5d4ea42..4b57bdf 100644 (file)
@@ -1,3 +1,8 @@
+2010-12-20  Yvan Roux  <yvan.roux@st.com>
+
+       * config/arm/lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix
+       condition on IT instruction for early termination.
+
 2010-12-20  Joseph Myers  <joseph@codesourcery.com>
 
        * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't define.
index 085e690..2e76c01 100644 (file)
@@ -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