blob: 887699ab5f2214fb58aff1ac055602bc70a47112 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > %t1.ll
2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
5implementation
6
7int "simpleAdd"(int %i0, int %j0)
8begin
9 %t1 = xor int %i0, %j0
10 %t2 = or int %i0, %j0
11 %t3 = and int %t1, %t2
12 ret int %t3
13end
14