blob: aa10af24960320a090679a80c06d29c4d4c275d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1-details" } */
long long
foo (long long a, signed char b, signed char c)
{
int bc = b * c;
return a + (short)bc;
}
/* { dg-final { scan-tree-dump "Folded into" "vrp1" { target int32plus } } } */
/* { dg-final { scan-tree-dump "Folding statement: _\[0-9\]\* = \\(long long int\\) bc_\[0-9\]\*;" "vrp1" { target int16 } } } */
/* { dg-final { cleanup-tree-dump "vrp1" } } */
|