[PATCH (8/7)] Fix a bug in multiply-and-accumulate
Andrew Stubbs
ams@codesourcery.com
Thu Jul 21 13:48:00 GMT 2011
On 18/07/11 15:46, Richard Guenther wrote:
> Will signedness be always the same? Usually the canonical check to
> use would be !useless_type_conversion_p (type, TREE_TYPE (add_rhs)).
The signedness ought to be unimportant - any extend will be based on the
source type, and the signedness should not affect the addition
operation. That said, it really ought to remain correct or else bad
things could happen in later optimizations ....
Here is the patch I plan to commit, when patch 1 is approved, and my
testing is complete.
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: widening-multiplies-8.patch
Type: text/x-patch
Size: 1118 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110721/0af62f47/attachment.bin>
More information about the Gcc-patches
mailing list