aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/vrinta-ce.c
blob: 092d914b66a31162a3d53f18c978858f250ee83d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-skip-if "-mpure-code supports M-profile only" { *-*-* } { "-mpure-code" } } */
/* { 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 } } */