blob: 56e02d05b395468d72520e879c0cf3bec47f4835 [file] [log] [blame]
Vikram S. Advef2e343b2003-07-08 15:39:02 +00001target endian = big
2target pointersize = 64
3
4%.str_1 = internal constant [30 x sbyte] c"d = %d, ct = %d, d ^ ct = %d\0A\00"
5
6
7implementation ; Functions:
8
9declare int %printf(sbyte*, ...)
10
11int %adj(uint %d.1, uint %ct.1) {
12entry:
13 %tmp.19 = seteq uint %ct.1, 2
14 %tmp.22.not = cast uint %ct.1 to bool
15 %tmp.221 = xor bool %tmp.22.not, true
16 %tmp.26 = or bool %tmp.19, %tmp.221
17 %tmp.27 = cast bool %tmp.26 to int
18 ret int %tmp.27
19}
20
21int %main() {
22entry:
23 %result = call int %adj(uint 3, uint 2)
24 %tmp.0 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([30 x sbyte]* %.str_1, long 0, long 0), uint 3, uint 2, int %result)
25 ret int 0
26}