summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/ppc-fpconv-11.c
blob: 2eebbb42cddf769cdff89687de667df8d57540b5 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-options "-O2 -mcpu=power5+ -ffast-math" } */
/* { dg-final { scan-assembler-not "xsrdpiz" } } */
/* { dg-final { scan-assembler "friz" } } */

double round_double_llong (double a)
{
  return (double)(long long)a;
}