On Sun, Jun 17, 2012 at 8:37 PM, Uros Bizjak <[email protected]> wrote:
> Hello!
>
> Please note that you will probably hit PR33329, this is the reason
> that we expand multiplications after reload. Please see [1] for
> further explanation. There is gcc.target/i386/pr33329.c test to cover
> this issue, but it is not effective anymore since the simplification
> happens at tree level.
>
> [1] http://gcc.gnu.org/ml/gcc-patches/2007-09/msg00668.html
Please adapt mentioned testcase with:
--cut here--
Index: testsuite/gcc.target/i386/pr33329.c
===================================================================
--- testsuite/gcc.target/i386/pr33329.c (revision 188703)
+++ testsuite/gcc.target/i386/pr33329.c (working copy)
@@ -5,12 +5,12 @@
void f (void)
{
- int tabs[8], tabcount;
+ int tabs[1024], tabcount;
- for (tabcount = 1; tabcount <= 8; tabcount += 7)
+ for (tabcount = 1; tabcount <= 1024; tabcount += 7)
{
int i;
- for (i = 0; i < 8; i++)
+ for (i = 0; i < 1024; i++)
tabs[i] = i * 2;
g (tabs);
}
--cut here--
Uros.