summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr48237.c
blob: e20446eab04d957fb050080aa4834889b2010408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do compile } */
/* { dg-options "-O -fcaller-saves -fschedule-insns2 -fselective-scheduling2 -mtune=core2" } */

union double_union
{
  double d;
  int i[2];
};

void bar (int, ...);

void
foo (double d)
{
  union double_union du = { d };
  while (1)
    {
      du.i[1] -= 0x100000L;
      bar (0, du.d);
      du.d += d;
    }
}