[PATCH][ARM]Adjust compiling options for "gcc.target/arm/unsigned-float.c"
[gcc.git] / gcc / testsuite / gcc.target / arm / unsigned-float.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_vfp_ok } */
3 /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
4 /* { dg-options "-march=armv7-a -O1" } */
5 /* { dg-additional-options "-mfloat-abi=softfp" { target { ! { arm_hf_eabi } } } } */
6
7 #include <stdint.h>
8
9 double
10 f1 (uint16_t x)
11 {
12 return (double)(float)x;
13 }
14
15 float
16 f2 (uint16_t x)
17 {
18 return (float)(double)x;
19 }
20
21 /* { dg-final { scan-assembler-not "vcvt.(f32.f64|f64.f32)" } } */