[PATCH] Fix PR31703, a bug in the shift lim code I added
H. J. Lu
hjl@lucon.org
Thu Apr 26 16:08:00 GMT 2007
On Thu, Apr 26, 2007 at 04:33:12PM +0200, Richard Guenther wrote:
>
> I forgot to consider the case we have a widened result. The simple
> fix is to always create a new lhs for storing the bittest result rather
> than trying to re-use the old one.
>
> Bootstrapped on x86_64-unknown-linux-gnu, testing in progress. I'll
> apply after that finished.
>
> Richard.
>
> 2007-04-26 Richard Guenther <rguenther@suse.de>
>
> PR tree-optimization/31703
> * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
> the right type for the target of the bittest.
>
> * gcc.c-torture/compile/pr31703.c: New testcase.
>
Can you make it a runtime testcase since gcc miscompiled it on
64bit host?
Thanks.
H.J.
More information about the Gcc-patches
mailing list