From 4d8752f06ca9fa584fc2e659ac0c06918af1089a Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Wed, 5 Oct 2011 10:20:04 +0000 Subject: [PATCH] expmed.c (expand_mult_highpart_optab): Replace optab_handler with the new widening_optab_handler. 2011-10-05 Andreas Krebbel * expmed.c (expand_mult_highpart_optab): Replace optab_handler with the new widening_optab_handler. From-SVN: r179541 --- gcc/ChangeLog | 5 +++++ gcc/expmed.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 21910f23a675..015db8a58261 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-10-05 Andreas Krebbel + + * expmed.c (expand_mult_highpart_optab): Replace optab_handler + with the new widening_optab_handler. + 2011-10-05 Richard Guenther PR tree-optimization/50609 diff --git a/gcc/expmed.c b/gcc/expmed.c index 1528fbb11127..b3e6d6d18160 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -3467,7 +3467,7 @@ expand_mult_highpart_optab (enum machine_mode mode, rtx op0, rtx op1, /* Try widening multiplication. */ moptab = unsignedp ? umul_widen_optab : smul_widen_optab; - if (optab_handler (moptab, wider_mode) != CODE_FOR_nothing + if (widening_optab_handler (moptab, wider_mode, mode) != CODE_FOR_nothing && mul_widen_cost[speed][wider_mode] < max_cost) { tem = expand_binop (wider_mode, moptab, op0, narrow_op1, 0, @@ -3504,7 +3504,7 @@ expand_mult_highpart_optab (enum machine_mode mode, rtx op0, rtx op1, /* Try widening multiplication of opposite signedness, and adjust. */ moptab = unsignedp ? smul_widen_optab : umul_widen_optab; - if (optab_handler (moptab, wider_mode) != CODE_FOR_nothing + if (widening_optab_handler (moptab, wider_mode, mode) != CODE_FOR_nothing && size - 1 < BITS_PER_WORD && (mul_widen_cost[speed][wider_mode] + 2 * shift_cost[speed][mode][size-1] + 4 * add_cost[speed][mode] < max_cost))