1 /* PR rtl-optimization/49235 */
2 /* { dg-do compile { target { int32plus } } } */
3 /* { dg-options "-O -fno-delete-null-pointer-checks -fno-tree-scev-cprop -ftree-vectorize -fno-vect-cost-model -w" } */
4 
5 void
foo(void)6 foo (void)
7 {
8   unsigned i;
9   unsigned *p = 0;
10   for (i = 0; i < 4; ++i)
11     *p++ = 0;
12   for (i = 0; i < 4; ++i)
13     *p++ = 0;
14 }
15 
16 void
bar(void)17 bar (void)
18 {
19   unsigned i;
20   unsigned *p = (unsigned *) (__UINTPTR_TYPE__) 0x12340000;
21   for (i = 0; i < 4; ++i)
22     *p++ = 0;
23   for (i = 0; i < 4; ++i)
24     *p++ = 0;
25 }
26