/* PR rtl-optimization/49235 */ | |
/* { dg-do compile { target { int32plus } } } */ | |
/* { dg-options "-O -fno-delete-null-pointer-checks -fno-tree-scev-cprop -ftree-vectorize -fno-vect-cost-model -w" } */ | |
void | |
foo (void) | |
{ | |
unsigned i; | |
unsigned *p = 0; | |
for (i = 0; i < 4; ++i) | |
*p++ = 0; | |
for (i = 0; i < 4; ++i) | |
*p++ = 0; | |
} | |
void | |
bar (void) | |
{ | |
unsigned i; | |
unsigned *p = (unsigned *) (__UINTPTR_TYPE__) 0x12340000; | |
for (i = 0; i < 4; ++i) | |
*p++ = 0; | |
for (i = 0; i < 4; ++i) | |
*p++ = 0; | |
} |