summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/lround-vcvt_1.c
blob: 8b1f6a7c3a0c946032f8e6b26862ae15b9a8f80a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-require-effective-target arm_v8_vfp_ok } */
/* { dg-options "-O2 -march=armv8-a -ffast-math" } */
/* { dg-add-options arm_v8_vfp } */

int
foofloat (float x)
{
  return __builtin_lroundf (x);
}

/* { dg-final { scan-assembler-times "vcvta.s32.f32\ts\[0-9\]+, s\[0-9\]+" 1 } } */


int
foodouble (double x)
{
  return __builtin_lround (x);
}

/* { dg-final { scan-assembler-times "vcvta.s32.f64\ts\[0-9\]+, d\[0-9\]+" 1 } } */