Commit 74d6ba00 by Tom de Vries Committed by Tom de Vries

re PR tree-optimization/49121 (FAIL: gcc.dg/tree-ssa/ivopt_infer_2.c…

re PR tree-optimization/49121 (FAIL: gcc.dg/tree-ssa/ivopt_infer_2.c scan-tree-dump-times ivopts "Replacing" 0)

2011-05-24  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/49121
	* gcc.dg/tree-ssa/ivopt_infer_2.c: Adapt test.

From-SVN: r174103
parent 74424c73
2011-05-24 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/49121
* gcc.dg/tree-ssa/ivopt_infer_2.c: Adapt test.
2011-05-23 Jason Merrill <jason@redhat.com> 2011-05-23 Jason Merrill <jason@redhat.com>
* g++.dg/cpp0x/defaulted28.C: New. * g++.dg/cpp0x/defaulted28.C: New.
......
...@@ -5,19 +5,19 @@ ...@@ -5,19 +5,19 @@
#define TYPE char* #define TYPE char*
#endif #endif
extern int a[]; extern char a[];
/* Can not infer loop iteration from array -- exit test can not be replaced. */ /* Can not infer loop iteration from array -- exit test can not be replaced. */
void foo (int i_width, TYPE dst, TYPE src1, TYPE src2) void foo (unsigned int i_width, TYPE dst)
{ {
TYPE dstn= dst + i_width;
TYPE dst0 = dst;
unsigned long long i = 0; unsigned long long i = 0;
for( ; dst <= dstn; ) unsigned long long j = 0;
for ( ; j < i_width; )
{ {
dst0[i] = ( src1[i] + src2[i] + 1 +a[i]) >> 1; *dst = a[i];
dst++; dst++;
i += 16; i += 2;
j += 1;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment