Debian Codegraph @

gcc/testsuite/gcc.target/pru/insv-4.c

raw
1 /* { dg-do assemble } */
2 /* { dg-options "-Os" } */
3 /* { dg-final { object-size text <= 28 } } */
4
5 struct S {
6 unsigned int a : 3;
7 unsigned int b : 3;
8 unsigned int c : 3;
9 };
10
11 void test(struct S *s, unsigned int val)
12 {
13 s->b = val;
14 }