rt_gccstream/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c

12 lines
300 B
C

/* { dg-do compile { target powerpc*-*-* rs6000-*-* } } */
/* { dg-options "-mno-powerpc-gfxopt" } */
/* { dg-final { scan-assembler-not "stfiwx" } } */
/* A basic test of the old-style (not stfiwx) fp -> int conversion. */
int f(double a, double b)
{
int a1 = a;
int b1 = b;
return a1+b1;
}