blob: da855cd88bb75674d713c8377a142f9bcda272bc [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-fre-details" } */
/* LLVM LOCAL test not applicable */
/* { dg-require-fdump "" } */
/* From PR14287. */
short g, h;
void
foo (long a)
{
short b = a & 3;
long c = b;
g = c;
h = c;
}
/* { dg-final { scan-tree-dump "Replaced \\\(short int\\\) c_.*with b_" "fre" } } */
/* { dg-final { cleanup-tree-dump "fre" } } */