aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp58.c
blob: b64a2df8f33009e85b12bf593bec12b313a34636 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-cddce1" } */

long long
foo (long long a, signed char b, signed char c)
{
  int bc = b * c;
  return a + (short)bc;
}

/* EVRP should remove the truncation to short, keeping (long long)bc.  */
/* { dg-final { scan-tree-dump-not "short" "cddce1" { target int32plus } } } */