1 /* { dg-do compile { target powerpc64-*-* } } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-O2" } */
5 /* { dg-final { scan-assembler-not "fmr \[0-9\]+,\[0-9\]+" } }
7 /* Origin:Pete Steinmetz <steinmtz@us.ibm.com> */
9 /* PR 16796: Extraneous move. */
11 static const double huge = 1.0e300;
12 typedef int int64_t __attribute__ ((__mode__ (__DI__)));
13 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
15 double __floor(double x)
27 j0 = ((i0>>52)&0x7ff)-0x3ff;
32 else if((i0&0x7fffffffffffffff)!=0)
33 { i0=0xbff0000000000000;}
36 i = (0x000fffffffffffff)>>j0;
37 if((i0&i)==0) return x;
39 if(i0<0) i0 += (0x0010000000000000)>>j0;