aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/bitfield-store-loads.c
blob: f946715bffa3bbfb26ca019e67a8aac4bf52cd2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
struct s {
	unsigned char :2;
	unsigned char f:3;
};

int foo(struct s s, int a)
{
	s.f = a;
	return s.f;
}

/*
 * check-name: bitfield-store-load signed
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-excludes: shl\\.
 * check-output-excludes: lsr\\.
 * check-output-excludes: or\\.
 * check-output-excludes: [sz]ext\\.
 * check-output-excludes: trunc\\.
 * check-output-pattern(1): and\\.
 */