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
This commit is contained in:
parent
74424c737a
commit
74d6ba0061
2 changed files with 16 additions and 11 deletions
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
* g++.dg/cpp0x/defaulted28.C: New.
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
#define TYPE char*
|
||||
#endif
|
||||
|
||||
extern int a[];
|
||||
extern char a[];
|
||||
|
||||
/* 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;
|
||||
for( ; dst <= dstn; )
|
||||
{
|
||||
dst0[i] = ( src1[i] + src2[i] + 1 +a[i]) >> 1;
|
||||
dst++;
|
||||
i += 16;
|
||||
}
|
||||
unsigned long long i = 0;
|
||||
unsigned long long j = 0;
|
||||
for ( ; j < i_width; )
|
||||
{
|
||||
*dst = a[i];
|
||||
dst++;
|
||||
i += 2;
|
||||
j += 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* { dg-final { scan-tree-dump-times "Replacing" 0 "ivopts"} } */
|
||||
|
|
Loading…
Add table
Reference in a new issue