PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / arm / unsigned-float.c
blobe1cda0ce9e29c529d7591e2b008c9528a593e65e
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_fp_ok } */
3 /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
4 /* { dg-options "-march=armv7-a -O1" } */
5 /* { dg-add-options arm_fp } */
8 #include <stdint.h>
10 double
11 f1 (uint16_t x)
13 return (double)(float)x;
16 float
17 f2 (uint16_t x)
19 return (float)(double)x;
22 /* { dg-final { scan-assembler-not "vcvt.(f32.f64|f64.f32)" } } */