]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix condition on IT instruction...
authorYvan Roux <yvan.roux@st.com>
Mon, 20 Dec 2010 17:16:38 +0000 (17:16 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Mon, 20 Dec 2010 17:16:38 +0000 (17:16 +0000)
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.

From-SVN: r168088

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

index 5d4ea420c0ba93b42df623b2db8d00b7065768aa..4b57bdf733ecae3af9cbe827a090d4ab55af65d9 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 085e69068ad8cd4f7994b608be1610377b5ab3ae..2e76c01df4b3b127f51b45d74efd49c1aaf9def9 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