Debian Codegraph @

gcc/testsuite/gcc.target/arm/aapcs/vfp22.c

raw
1 /* Test AAPCS layout (VFP variant) */
2
3 /* { dg-do run { target arm_eabi } } */
4 /* { dg-require-effective-target arm_hard_vfp_ok } */
5 /* { dg-require-effective-target arm_fp16_hw } */
6 /* { dg-require-effective-target arm_fp16_alternative_ok } */
7 /* { dg-add-options arm_fp16_alternative } */
8
9 #ifndef IN_FRAMEWORK
10 #define VFP
11 #define TESTFILE "vfp22.c"
12 #include "abitest.h"
13
14 #else
15 #if defined (__ARM_BIG_ENDIAN)
16 ARG (__fp16, 1.0f, S0 + 2)
17 #else
18 ARG (__fp16, 1.0f, S0)
19 #endif
20 ARG (float, 2.0f, S1)
21 ARG (double, 4.0, D1)
22 ARG (float, 2.0f, S4)
23 #if defined (__ARM_BIG_ENDIAN)
24 ARG (__fp16, 1.0f, S5 + 2)
25 #else
26 ARG (__fp16, 1.0f, S5)
27 #endif
28 LAST_ARG (int, 3, R0)
29 #endif