Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / gcc.target / arm / aapcs / vfp9.c
blobf9aa2960ca8680cbe0a805e8a7122ee3f5a283a7
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 "vfp9.c"
12 __complex__ 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 struct z
24 double x[4];
27 struct z a = { 5.0, 6.0, 7.0, 8.0 };
28 struct z b = { 9.0, 10.0, 11.0, 12.0 };
30 #include "abitest.h"
31 #else
32 /* A variadic function passes using the base ABI */
33 ARG(int, 7, R0)
34 DOTS
35 ANON(struct z, a, R2)
36 ANON(struct z, b, STACK+24)
37 LAST_ANON(double, 0.5, STACK+56)
38 #endif