expmed.c (expand_mult_highpart_optab): Replace optab_handler with the new widening_op...
authorAndreas Krebbel <Andreas.Krebbel@de.ibm.com>
Wed, 5 Oct 2011 10:20:04 +0000 (10:20 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Wed, 5 Oct 2011 10:20:04 +0000 (10:20 +0000)
2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* expmed.c (expand_mult_highpart_optab): Replace optab_handler
with the new widening_optab_handler.

From-SVN: r179541

gcc/ChangeLog
gcc/expmed.c

index 21910f23a675a02f80c8cc80db417687f9cd7f32..015db8a58261d8e2bf93af12b7cfeacc4eabb286 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
+
+       * expmed.c (expand_mult_highpart_optab): Replace optab_handler
+       with the new widening_optab_handler.
+
 2011-10-05  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/50609
index 1528fbb11127d5d00a7f52540e337456dbad237c..b3e6d6d181600d409ff0463e7f9ae8b0a0e2534c 100644 (file)
@@ -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))