Debian Codegraph @

gcc/testsuite/gcc.target/arm/aapcs/vfp25.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 "vfp25.c"
12
13 #define PCSATTR __attribute__((pcs("aapcs")))
14
15 #include "abitest.h"
16 #else
17 #if defined (__ARM_BIG_ENDIAN)
18 ARG (__fp16, 1.0f, R0 + 2)
19 #else
20 ARG (__fp16, 1.0f, R0)
21 #endif
22 ARG (double, 2.0, R2)
23 ARG (__fp16, 3.0f, STACK)
24 ARG (float, 2.0f, STACK+4)
25 LAST_ARG (double, 4.0, STACK+8)
26 #endif