Debian Codegraph @

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