blob: b6f57f81e72b6f15beb128c89ec57f32864c03cc [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
unsigned int foo(unsigned int i)
{
int t1 = i;
int t2 = t1 << 8;
return t2;
}
int bar(int i)
{
unsigned int t1 = i;
unsigned int t2 = t1 << 8;
return t2;
}
/* { dg-final { scan-tree-dump-not "\\(int\\)" "optimized" } } */
/* { dg-final { scan-tree-dump-not "\\(unsigned int\\)" "optimized" } } */