gcc/testsuite/gcc.target/arm/aapcs/vfp2.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 arm32 } */ |
| 6 | /* { dg-options "-O -mfpu=vfp -mfloat-abi=hard" } */ |
| 7 | |
| 8 | #ifndef IN_FRAMEWORK |
| 9 | #define VFP |
| 10 | #define TESTFILE "vfp2.c" |
| 11 | #include "abitest.h" |
| 12 | |
| 13 | #else |
| 14 | ARG(float, 1.0f, S0) |
| 15 | ARG(double, 4.0, D1) |
| 16 | ARG(float, 2.0f, S1) |
| 17 | ARG(double, 5.0, D2) |
| 18 | LAST_ARG(int, 3, R0) |
| 19 | #endif |