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