aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr109566.c
blob: 39751c663eec6c439a016e8c6ea8c56150955d51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR target/109566 */
/* Skip this on aix, otherwise it emits the error message like "64-bit
   computation with 32-bit addressing not yet supported" on aix.  */
/* { dg-do compile } */
/* { dg-skip-if "" { powerpc*-ibm-aix* } } */
/* { dg-options "-O2 -mpowerpc64" } */

void
foo (double x)
{
  union { double d; unsigned i; } u;
  u.d = x;
  if (u.i & 0x7ff00000)
    return;
  else
    for (;;)
      ;
}