From c46e3569611f60b8a3e34ebe7dda79fb72175415 Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Thu, 22 May 2014 15:56:34 +0000 Subject: [PATCH] re PR target/61208 (armhf: generated asm code produces "branch out of range" error in gas with -Os) PR target/61208 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2. From-SVN: r210816 --- gcc/ChangeLog | 5 +++++ gcc/config/arm/arm.md | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 92b1ffad583a..e90dc13b0392 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-05-22 Richard Earnshaw + + PR target/61208 + * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2. + 2014-05-20 Senthil Kumar Selvaraj Backport from mainline r210325 diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index bb4174867586..96cb78f96048 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -7569,12 +7569,13 @@ (define_insn "*arm_cmpdi_unsigned" [(set (reg:CC_CZ CC_REGNUM) - (compare:CC_CZ (match_operand:DI 0 "s_register_operand" "r") - (match_operand:DI 1 "arm_di_operand" "rDi")))] + (compare:CC_CZ (match_operand:DI 0 "s_register_operand" "r,r") + (match_operand:DI 1 "arm_di_operand" "rDi,rDi")))] "TARGET_32BIT" "cmp\\t%R0, %R1\;it eq\;cmpeq\\t%Q0, %Q1" [(set_attr "conds" "set") - (set_attr "length" "8")] + (set_attr "arch" "a,t2") + (set_attr "length" "8,10")] ) (define_insn "*arm_cmpdi_zero" -- 2.47.2