llvm.org GIT mirror llvm / f2e343b
*** empty log message *** git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7126 91177308-0d34-0410-b5e6-96231b3b80d8 Vikram S. Adve 17 years ago
2 changed file(s) with 52 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 target endian = big
1 target pointersize = 64
2
3 %.str_1 = internal constant [30 x sbyte] c"d = %d, ct = %d, d ^ ct = %d\0A\00"
4
5
6 implementation ; Functions:
7
8 declare int %printf(sbyte*, ...)
9
10 int %adj(uint %d.1, uint %ct.1) {
11 entry:
12 %tmp.19 = seteq uint %ct.1, 2
13 %tmp.22.not = cast uint %ct.1 to bool
14 %tmp.221 = xor bool %tmp.22.not, true
15 %tmp.26 = or bool %tmp.19, %tmp.221
16 %tmp.27 = cast bool %tmp.26 to int
17 ret int %tmp.27
18 }
19
20 int %main() {
21 entry:
22 %result = call int %adj(uint 3, uint 2)
23 %tmp.0 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([30 x sbyte]* %.str_1, long 0, long 0), uint 3, uint 2, int %result)
24 ret int 0
25 }
0 target endian = big
1 target pointersize = 64
2
3 %.str_1 = internal constant [30 x sbyte] c"d = %d, ct = %d, d ^ ct = %d\0A\00"
4
5
6 implementation ; Functions:
7
8 declare int %printf(sbyte*, ...)
9
10 int %adj(uint %d.1, uint %ct.1) {
11 entry:
12 %tmp.19 = seteq uint %ct.1, 2
13 %tmp.22.not = cast uint %ct.1 to bool
14 %tmp.221 = xor bool %tmp.22.not, true
15 %tmp.26 = or bool %tmp.19, %tmp.221
16 %tmp.27 = cast bool %tmp.26 to int
17 ret int %tmp.27
18 }
19
20 int %main() {
21 entry:
22 %result = call int %adj(uint 3, uint 2)
23 %tmp.0 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([30 x sbyte]* %.str_1, long 0, long 0), uint 3, uint 2, int %result)
24 ret int 0
25 }