summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr30311.c
blob: 85ce75099cfa8dfc5403e32d6a5ffa19ce0ac2d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* ICE in subreg_get_info: bug 30311.  */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
inline double bar(double x)
{
  long double d;
  __asm__ ("" : "=t" (d) : "0" (x));
  return d;
}

double foo(double x)
{
  if (x)
    return bar(x);
  else
    return bar(x);
}