This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/55116] [4.8 Regression] LRA failed to decompose ASHIFT
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Oct 2012 13:14:03 +0000
- Subject: [Bug middle-end/55116] [4.8 Regression] LRA failed to decompose ASHIFT
- Auto-submitted: auto-generated
- References: <bug-55116-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55116
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-10-29 13:14:03 UTC ---
ix86_decompose_address has
case ASHIFT:
if (index)
return 0;
index = XEXP (op, 0);
tmp = XEXP (op, 1);
if (!CONST_INT_P (tmp))
return 0;
scale = INTVAL (tmp);
if ((unsigned HOST_WIDE_INT) scale > 3)
return 0;
scale = 1 << scale;
break;