• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 struct s {
2 	int:16;
3 	int f:16;
4 } __attribute__((__packed__));
5 
foo(struct s s)6 static void foo(struct s s)
7 {
8 	while (s.f)
9 		;
10 }
11 
12 /*
13  * check-name: packed-bitfield
14  * check-command: test-linearize -fmem2reg $file
15  *
16  * check-output-contains: store.32
17  * check-output-contains: load.16
18  *
19  * check-output-start
20 foo:
21 .L0:
22 	<entry-point>
23 	store.32    %arg1 -> 0[s]
24 	br          .L4
25 
26 .L4:
27 	load.16     %r1 <- 2[s]
28 	cbr         %r1, .L4, .L3
29 
30 .L3:
31 	ret
32 
33 
34  * check-output-end
35  */
36