Patchwork [testsuite] : Increase array size in gcc.target/i386/pr33329.c

login
register
mail settings
Submitter Uros Bizjak
Date June 17, 2012, 10:16 p.m.
Message ID <CAFULd4aVeTPs3F7aLo_tmqR457A1rV2iy8UYkhc2bqookvuPzQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/165354/
State New
Headers show

Comments

Uros Bizjak - June 17, 2012, 10:16 p.m.
Hello!

gcc.target/i386/pr33329.c is fully optimized with tree optimizers to a
constant. Attached patch increases array size to avoid
over-optimization and to perform intended RTL optimization check.

2012-06-17  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.target/i386/pr33329.c (f): Increase tabs array to 1024.

Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN.

Uros.
}

Patch

Index: gcc.target/i386/pr33329.c
===================================================================
--- gcc.target/i386/pr33329.c	(revision 188714)
+++ gcc.target/i386/pr33329.c	(working copy)
@@ -5,11 +5,11 @@ 
 
 void f (void)
 {
-  int tabs[8], tabcount;
+  int tabs[1024], tabcount;
 
   for (tabcount = 1; tabcount <= 8; tabcount += 7)
     {
       int i;
-      for (i = 0; i < 8; i++)
+      for (i = 0; i < 1024; i++)
 	tabs[i] = i * 2;
       g (tabs);