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

Submitted by Uros Bizjak on June 17, 2012, 10:16 p.m.

Details

Message ID CAFULd4aVeTPs3F7aLo_tmqR457A1rV2iy8UYkhc2bqookvuPzQ@mail.gmail.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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);