blob: 189fe3311d9b57fe40447585951aec78cb919a14 (
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
|
int or_not0(int a) { return a | ~0; }
int and_not0(int a) { return a & ~0; }
int xor_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
xor_not0:
.L4:
<entry-point>
not.32 %r8 <- %arg1
ret.32 %r8
* check-output-end
*/
|