diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2016-02-04 09:54:37 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2016-02-04 09:54:37 +0000 |
commit | 9fec9595fb7a7ee6fcd200443d0e4bd7a34fd734 (patch) | |
tree | 125eb1a8bd09f44c3f246c39db55d1f69f5e93ce /gcc | |
parent | eb9feb52f9528e7f425f318a5e857584d059e2e0 (diff) | |
download | gcc-9fec9595fb7a7ee6fcd200443d0e4bd7a34fd734.zip gcc-9fec9595fb7a7ee6fcd200443d0e4bd7a34fd734.tar.gz gcc-9fec9595fb7a7ee6fcd200443d0e4bd7a34fd734.tar.bz2 |
[ARM][2/4] Fix operand costing logic for SMUL[TB][TB]
PR target/65932
PR target/67714
* config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
From-SVN: r233132
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4146241..d5936b7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com> + + PR target/65932 + PR target/67714 + * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract + the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx. + 2016-02-04 Jim Wilson <jim.wilson@linaro.org> PR target/65932 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index e656a01..f7debcf 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -10318,8 +10318,10 @@ arm_new_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer_code, /* SMUL[TB][TB]. */ if (speed_p) *cost += extra_cost->mult[0].extend; - *cost += rtx_cost (XEXP (x, 0), mode, SIGN_EXTEND, 0, speed_p); - *cost += rtx_cost (XEXP (x, 1), mode, SIGN_EXTEND, 1, speed_p); + *cost += rtx_cost (XEXP (XEXP (x, 0), 0), mode, + SIGN_EXTEND, 0, speed_p); + *cost += rtx_cost (XEXP (XEXP (x, 1), 0), mode, + SIGN_EXTEND, 1, speed_p); return true; } if (speed_p) |