summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr51835.c
blob: 858b72f8ad81cf271baf45bce79242a5b22d7dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -mfloat-abi=hard -mfpu=fpv4-sp-d16" }  */
/* { dg-require-effective-target arm_thumb2_ok } */

int func1 (double d)
{
  return (int)d;
}
unsigned int func2 (double d)
{
  return (unsigned int)d;
}

/* { dg-final { scan-assembler-times "fmrrd\[\\t \]+r0,\[\\t \]*r1,\[\\t \]*d0" 2 } } */