blob: b9ed6811bfb97ef7c3ee6eb131b5d4fa36d258b0 (
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_vfp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-march=armv7-a -O1" } */
/* { dg-additional-options "-mfloat-abi=softfp" { target { ! { arm_hf_eabi } } } } */
#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 "vcvt.(f32.f64|f64.f32)" } } */
|