OSDN Git Service

2005-11-03 James E Wilson <wilson@specifix.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / rs6000-fpint.c
1 /* { dg-do compile { target powerpc*-*-* rs6000-*-* } } */
2 /* { dg-options "-mno-powerpc-gfxopt" } */
3 /* { dg-final { scan-assembler-not "stfiwx" } } */
4
5 /* A basic test of the old-style (not stfiwx) fp -> int conversion.  */
6 int f(double a, double b)
7 {
8   int a1 = a;
9   int b1 = b;
10   return a1+b1;
11 }