2014-11-10 Andreas Tobler <andreast@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / aapcs / vfp5.c
blobd9d3db175d617fc25ba460dcdd6b3cc5665422d3
1 /* Test AAPCS layout (VFP variant) */
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" } */
8 #ifndef IN_FRAMEWORK
9 #define VFP
10 #define TESTFILE "vfp5.c"
12 __complex__ float x = 1.0+2.0i;
14 struct y
16 int p;
17 int q;
18 int r;
19 int s;
20 } v = { 1, 2, 3, 4 };
22 #include "abitest.h"
23 #else
24 ARG(float, 1.0f, S0)
25 ARG(__complex__ float, x, S1)
26 ARG(float, 2.0f, S3)
27 ARG(double, 5.0, D2)
28 ARG(struct y, v, R0)
29 LAST_ARG(int, 3, STACK)
30 #endif