aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/or-and-constant1.c
blob: aa673b905304bfa62b17aa5a2e1d510cd97d7c20 (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
unsigned int and_or_equ(unsigned int a)
{
	return (a | 3) & 3;
}

int and_or_eqs(int a)
{
	return (a | 3) & 3;
}

unsigned int or_and_equ(unsigned int a)
{
	return (a & 3) | 3;
}

int or_and_eqs(int a)
{
	return (a & 3) | 3;
}

/*
 * check-name: or-and-constant1
 * check-command: test-linearize -Wno-decl $file
 * check-known-to-fail
 *
 * check-output-ignore
 * check-output-pattern(4): ret\\..*\\$3
 * check-output-excludes: or\\.
 */