aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/rs6000-fpint.c
blob: fdb0a371929f4bdc8fc363d2ae95ca55ba4188a2 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-options "-mno-powerpc-gfxopt -mdejagnu-cpu=power6" } */
/* { 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;
}