Debian Codegraph @

gcc/testsuite/gcc.target/arm/aapcs/bitfield1.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 "bitfield1.c"
9
10 struct bf
11 {
12 unsigned long long a: 61;
13 unsigned b: 3;
14 } v = {1, 1};
15
16 #include "abitest.h"
17 #else
18 ARG (int, 7, R0)
19 ARG (int, 9, R1)
20 ARG (int, 11, R2)
21 /* Alignment of the bitfield type should affect alignment of the overall
22 type, so R3 not used. */
23 LAST_ARG (struct bf, v, STACK)
24 #endif