aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/fcvt_int_float_double4.c
blob: 88a5242503e69e56383ae0ac91e679dc056ece5b (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2" } */

double
foo (int x)
{
  return (double) (float) ((x & -16) | (int) 0xfe00000);
}

/* { dg-final { scan-assembler {\tscvtf\ts[0-9]*, w[0-9]*} } } */
/* { dg-final { scan-assembler {\tfcvt\td0, s[0-9]*} } } */