Re: [wide-int] Simplify mult-to-shift conversion

2013-11-09 Thread Kenneth Zadeck
On 11/09/2013 05:51 AM, Richard Sandiford wrote: Trunk expand_mult uses the following code to handle CONST_DOUBLEs: /* If we are multiplying in DImode, it may still be a win to try to work with shifts and adds. */ if (CONST_DOUBLE_HIGH (scalar_op1) == 0

[wide-int] Simplify mult-to-shift conversion

2013-11-09 Thread Richard Sandiford
Trunk expand_mult uses the following code to handle CONST_DOUBLEs: /* If we are multiplying in DImode, it may still be a win to try to work with shifts and adds. */ if (CONST_DOUBLE_HIGH (scalar_op1) == 0 && (CONST_DOUBLE_LOW (scalar_op1) > 0