1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_v8_vfp_ok } */
3 /* { dg-options "-O2 -march=armv8-a -ffast-math" } */
4 /* { dg-add-options arm_v8_vfp } */
5 
6 int
foofloat(float x)7 foofloat (float x)
8 {
9   return __builtin_lroundf (x);
10 }
11 
12 /* { dg-final { scan-assembler-times "vcvta.s32.f32\ts\[0-9\]+, s\[0-9\]+" 1 } } */
13 
14 
15 int
foodouble(double x)16 foodouble (double x)
17 {
18   return __builtin_lround (x);
19 }
20 
21 /* { dg-final { scan-assembler-times "vcvta.s32.f64\ts\[0-9\]+, d\[0-9\]+" 1 } } */
22