summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/unsigned-float.c
blob: c5ad6805d94cf079be437979e8171a7f01594e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O1" } */

#include <stdint.h>

double
f1 (uint16_t x)
{
  return (double)(float)x;
}

float
f2 (uint16_t x)
{
  return (float)(double)x;
}

/* { dg-final { scan-assembler-not "fcvt" } } */