Debian Codegraph @

gcc/testsuite/gcc.target/arm/aapcs/bitfield3.c

raw
1 /* Test AAPCS layout (alignment). */
2
3 /* { dg-do run { target arm_eabi } } */
4 /* { dg-require-effective-target arm32 } */
5 /* { dg-options "-O" } */
6
7 #ifndef IN_FRAMEWORK
8 #define TESTFILE "bitfield3.c"
9
10 struct bf
11 {
12 /* Internally this may be mapped to unsigned short. Ensure we still
13 check the original declaration. */
14 unsigned long long a: 16;
15 unsigned b: 3;
16 } v = {1, 3};
17
18 #include "abitest.h"
19 #else
20 ARG (int, 7, R0)
21 ARG (int, 9, R1)
22 ARG (int, 11, R2)
23 /* Alignment of the bitfield type should affect alignment of the overall
24 type, so R3 not used. */
25 LAST_ARG (struct bf, v, STACK)
26 #endif