aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/vrinta-ce.c
blob: 71c5b3b0e37642f454a91c70f262ad6e13a7c741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-require-effective-target arm_v8_vfp_ok } */
/* { dg-options "-O2 -marm -march=armv8-a" } */
/* { dg-add-options arm_v8_vfp } */

double foo (double a)
{
  if (a > 3.0)
    return  __builtin_round (a);

  return 0.0;
}

/* { dg-final { scan-assembler-times "vrinta.f64\td\[0-9\]+" 1 } } */