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

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