From: Richard Earnshaw Date: Fri, 18 Oct 2019 19:02:12 +0000 (+0000) Subject: [arm] fix constraints on addsi3_carryin_alt2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=494c4921c7c7970562ab3ee3838809e8e7f0623a;p=gcc.git [arm] fix constraints on addsi3_carryin_alt2 addsi3_carryin_alt2 has a more strict constraint than the predicate when adding a constant. This leads to sub-optimal code in some circumstances. * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for operand 2. From-SVN: r277168 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb2abfe3dca..1c96b17631f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-10-18 Richard Earnshaw + + * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for + operand 2. + 2019-10-18 Richard Earnshaw * config/arm/arm.md (addsi3_carryin_shift_): Reorder operands diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 9754a761faf..fbe154a9873 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -893,7 +893,7 @@ [(set (match_operand:SI 0 "s_register_operand" "=l,r,r") (plus:SI (plus:SI (LTUGEU:SI (reg: CC_REGNUM) (const_int 0)) (match_operand:SI 1 "s_register_operand" "%l,r,r")) - (match_operand:SI 2 "arm_rhs_operand" "l,rI,K")))] + (match_operand:SI 2 "arm_not_operand" "l,rI,K")))] "TARGET_32BIT" "@ adc%?\\t%0, %1, %2