summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/forwprop-18.c
blob: e068c8ae1e614ec88d8e50cc12d753e1d24776bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-cddce1" } */

signed char f1(signed char n)
{
  return (long double)n;
}
unsigned long long f2(signed char n)
{
  return (long double)n;
}

unsigned long long g1(unsigned long long n)
{
  return (float)n;
}
signed char g2(unsigned long long n)
{
  return (float)n;
}

/* { dg-final { scan-tree-dump-times "\\\(float\\\)" 2 "cddce1" } } */
/* { dg-final { scan-tree-dump-not "\\\(long double\\\)" "cddce1" } } */