Debian Codegraph @

gcc/testsuite/gcc.target/m68k/pr52076-2.c

raw
1 /* { dg-do assemble } */
2 /* { dg-options "-Os -fomit-frame-pointer -m68040" } */
3 /* { dg-final { object-size text <= 30 } } */
4
5 struct kobject {
6 unsigned int b7:1;
7 unsigned int b56:2;
8 unsigned int b1234:4;
9 unsigned int b0:1;
10 unsigned char x;
11 unsigned int f;
12 };
13
14 void b7(struct kobject *kobj)
15 {
16 kobj->b7 = 1;
17 }
18
19 void b56(struct kobject *kobj)
20 {
21 kobj->b56 = 3;
22 }
23
24 void b1234(struct kobject *kobj)
25 {
26 kobj->b1234 = 15;
27 }