This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/47477] [4.7/4.8/4.9 regression] Sub-optimal mov at end of method
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Oct 2013 13:40:45 +0000
- Subject: [Bug rtl-optimization/47477] [4.7/4.8/4.9 regression] Sub-optimal mov at end of method
- Auto-submitted: auto-generated
- References: <bug-47477-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47477
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Another testcase:
short a[1024], b[1024];
void
foo (void)
{
int i;
for (i = 0; i < 1024; i++)
{
short c = (char) a[i] + 5;
long long d = (long long) b[i] + 12;
a[i] = c + d;
}
}