[PATCH (2/7)] Widening multiplies by more than one mode
Andrew Stubbs
ams@codesourcery.com
Thu Jul 14 14:17:00 GMT 2011
On 12/07/11 12:04, Richard Guenther wrote:
> I wonder if we want to restrict the WIDEN_* operations to operate
> on types that have matching type/mode precision(**).
I've now modified the patch to allow bitfields, or other case where the
precision is smaller than the mode-size. I've also addressed the
formatting issues you pointed out (and in fact reorganised the code
slightly to make the rest of the series a bit cleaner).
As in the previous version of this patch, it's necessary to convert the
input values to the proper mode for the machine instruction, so the
basic tools for supporting the bitfields were already there - I just had
to tweak the conditionals to take bitfields into account.
The only this I haven't done is modified tree.def. Looking at it though,
I don't thing any needs changing? The code is still valid, and the
comments are correct (in fact, they may have been wrong before).
Is this version OK?
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: widening-multiplies-2.patch
Type: text/x-patch
Size: 17355 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110714/4d782d53/attachment.bin>
More information about the Gcc-patches
mailing list