]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/61208 (armhf: generated asm code produces "branch out of range" error...
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 22 May 2014 15:38:51 +0000 (15:38 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 22 May 2014 15:38:51 +0000 (15:38 +0000)
PR target/61208
* arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.

From-SVN: r210812

gcc/ChangeLog
gcc/config/arm/arm.md

index 3d6a4a4d1e705ee6c7b60e18f76de97dd0f249d6..f09c3b7b40f81efb4cb8217a0a9d18a3ed6594ce 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
+
+       PR target/61208
+       * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
+
 2014-05-22  Nick Clifton  <nickc@redhat.com>
 
        * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted
index 22025949aa841a4fb08dc6b49243e8657a40ebbf..348a89c7b0a9970bddaf552c1de71650ffed10eb 100644 (file)
 
 (define_insn_and_split "*arm_cmpdi_unsigned"
   [(set (reg:CC_CZ CC_REGNUM)
-        (compare:CC_CZ (match_operand:DI 0 "s_register_operand" "l,r,r")
-                       (match_operand:DI 1 "arm_di_operand"     "Py,r,rDi")))]
+        (compare:CC_CZ (match_operand:DI 0 "s_register_operand" "l,r,r,r")
+                       (match_operand:DI 1 "arm_di_operand"     "Py,r,Di,rDi")))]
 
   "TARGET_32BIT"
   "#"   ; "cmp\\t%R0, %R1\;it eq\;cmpeq\\t%Q0, %Q1"
     operands[1] = gen_lowpart (SImode, operands[1]);
   }
   [(set_attr "conds" "set")
-   (set_attr "enabled_for_depr_it" "yes,yes,no")
-   (set_attr "arch" "t2,t2,*")
-   (set_attr "length" "6,6,8")
+   (set_attr "enabled_for_depr_it" "yes,yes,no,*")
+   (set_attr "arch" "t2,t2,t2,a")
+   (set_attr "length" "6,6,10,8")
    (set_attr "type" "multiple")]
 )