aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/bits-not-zero.c
blob: ce74705e81a7a515892457e3bf0a0ffc052be319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
int  or_not0(int a) { return a | ~0; }
int and_not0(int a) { return a & ~0; }

/*
 * check-name: bool-not-zero
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-start
or_not0:
.L0:
	<entry-point>
	ret.32      $0xffffffff


and_not0:
.L2:
	<entry-point>
	ret.32      %arg1


 * check-output-end
 */