This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/71608] Wrong constant folding
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Jun 2016 15:29:56 +0000
- Subject: [Bug tree-optimization/71608] Wrong constant folding
- Auto-submitted: auto-generated
- References: <bug-71608-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71608
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
--- Comment #4 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> Hmm. Doesnt -2 * x overflow?
(-2) * x gives INT_MIN, no overflow there. 2*x does overflow. And we optimize
the first to the second...