This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/52760] Revision 185599 causes miscompare on sphinx3
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Mar 2012 12:46:20 +0000
- Subject: [Bug tree-optimization/52760] Revision 185599 causes miscompare on sphinx3
- Auto-submitted: auto-generated
- References: <bug-52760-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52760
--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-03-29 12:46:20 UTC ---
(In reply to comment #6)
> Created attachment 27030 [details]
> gcc48-pr52760.patch
>
> So do you prefer this instead?
Yes. In a non-constant case we'd miss a conversion, so I suppose we only
expect constant shift counts here - which means you should assert
constant_p instead of verifying it.
Thanks.