X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FFeature%2Ftestlogical.ll;h=a064869abfa7ebe1b675bd26e29cedfe6e273d59;hb=102130d17ca7c66c199644d73416c520107e763c;hp=d1f8c2516a68bca86b4a6140fa41c966b9075808;hpb=b82f5e7c0045176161a0389f10e6af533860f18a;p=oota-llvm.git diff --git a/test/Feature/testlogical.ll b/test/Feature/testlogical.ll index d1f8c2516a6..a064869abfa 100644 --- a/test/Feature/testlogical.ll +++ b/test/Feature/testlogical.ll @@ -1,10 +1,11 @@ -implementation +; RUN: llvm-as < %s | llvm-dis > %t1.ll +; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll +; RUN: diff %t1.ll %t2.ll -int "simpleAdd"(int %i0, int %j0) -begin - %t1 = xor int %i0, %j0 - %t2 = or int %i0, %j0 - %t3 = and int %t1, %t2 - ret int %t3 -end +define i32 @simpleAdd(i32 %i0, i32 %j0) { + %t1 = xor i32 %i0, %j0 ; [#uses=1] + %t2 = or i32 %i0, %j0 ; [#uses=1] + %t3 = and i32 %t1, %t2 ; [#uses=1] + ret i32 %t3 +}