This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Widening multiplication limitations


On 27 March 2013 10:05, Richard Biener <richard.guenther@gmail.com> wrote:
> On Tue, Mar 26, 2013 at 6:30 PM, Frederic Riss <frederic.riss@gmail.com> wrote:
>> Here, the code trying to expand a signed by unsigned widening multiply
>> explicitly checks that the operand isn't a constant. Why is that? I
>> removed that condition to try to find the failing cases, but the few
>> million random multiplies that I threw at it didn't fail in any
>> visible way.
>
> Not sure, the limitation does not make sense to me.  Probably the
> code assumes that it would have been easy to convert the constant
> to the same signedness as treeop0.  Simply removing the check
> seems correct to me.

Thanks for the confirmation. I'll try to see if these modifications
pass regstrap on a primary target and then maybe submit a patch.

Fred


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]