This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Adjust gcc.dg/vect/bb-slp-32.c


This adjusts mentioned testcase to make it more reliably pass.

Tested on x86_64-unknown-linux-gnu.

Richard.

2015-11-16  Richard Biener  <rguenther@suse.de>

	* gcc.dg/vect/bb-slp-32.c: Adjust testcase.

Index: gcc/testsuite/gcc.dg/vect/bb-slp-32.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/bb-slp-32.c	(revision 230310)
+++ gcc/testsuite/gcc.dg/vect/bb-slp-32.c	(working copy)
@@ -3,17 +3,17 @@
 /* { dg-additional-options "-fvect-cost-model=dynamic" } */
 
 void bar (int *);
-int foo (int *p)
+int foo (int *p, int a, int b)
 {
   int x[4];
   int tem0, tem1, tem2, tem3;
-  tem0 = p[0] + 1;
+  tem0 = p[0] + 1 + a;
   x[0] = tem0;
-  tem1 = p[1] + 2;
+  tem1 = p[1] + 2 + b;
   x[1] = tem1;
-  tem2 = p[2] + 3;
+  tem2 = p[2] + 3 + b;
   x[2] = tem2;
-  tem3 = p[3] + 4;
+  tem3 = p[3] + 4 + a;
   x[3] = tem3;
   bar (x);
   return tem0 + tem1 + tem2 + tem3;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]