aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr89430-8-mem-ref-size.c
blob: 5f93112acf7d38bd7e207b333b7906e9137f444d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-cselim -fdump-tree-cselim-details" } */

int *t;

int f1 (int tt)
{
  int *t1 = t;
  *t1 = -5;
  if (*t1 < tt)
    *((unsigned *) t1) = 5;
  return *t1;
}

/* { dg-final { scan-tree-dump "Conditional store replacement" "cselim" } } */