Vikram S. Adve | f2e343b | 2003-07-08 15:39:02 +0000 | [diff] [blame^] | 1 | target endian = big |
| 2 | target pointersize = 64 |
| 3 | |
| 4 | %.str_1 = internal constant [30 x sbyte] c"d = %d, ct = %d, d ^ ct = %d\0A\00" |
| 5 | |
| 6 | |
| 7 | implementation ; Functions: |
| 8 | |
| 9 | declare int %printf(sbyte*, ...) |
| 10 | |
| 11 | int %adj(uint %d.1, uint %ct.1) { |
| 12 | entry: |
| 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 | |
| 21 | int %main() { |
| 22 | entry: |
| 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 | } |