1 /* { dg-do compile } */
2 /* { dg-skip-if "-mpure-code supports M-profile only" { *-*-* } { "-mpure-code" } } */
3 /* { dg-require-effective-target arm_v8_vfp_ok } */
4 /* { dg-options "-O2 -marm -march=armv8-a" } */
5 /* { dg-add-options arm_v8_vfp } */
6
7 double foo (double a)
8 {
9 if (a > 3.0)
10 return __builtin_round (a);
11
12 return 0.0;
13 }
14
15 /* { dg-final { scan-assembler-times "vrinta.f64\td\[0-9\]+" 1 } } */
16