X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FTransforms%2FInline%2Finline_constprop.ll;h=537c69b305cbd0f9cc2dbec1046fbb251e47e414;hb=b0af8ce1d9ac8489daa12e14ccd3a2eef464ed79;hp=edfb0905f917cf2ebc6796093c082e9e2f18b3ff;hpb=5ca32a6d6c2fadbc12a3cad49c2f86f62596ae4f;p=oota-llvm.git diff --git a/test/Transforms/Inline/inline_constprop.ll b/test/Transforms/Inline/inline_constprop.ll index edfb0905f91..537c69b305c 100644 --- a/test/Transforms/Inline/inline_constprop.ll +++ b/test/Transforms/Inline/inline_constprop.ll @@ -1,15 +1,14 @@ -; RUN: llvm-as < %s | opt -inline -disable-output && -; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep callee && -; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep div +; RUN: opt < %s -inline -S | not grep callee +; RUN: opt < %s -inline -S | not grep div -implementation -internal int %callee(int %A, int %B) { - %C = div int %A, %B - ret int %C +define internal i32 @callee(i32 %A, i32 %B) { + %C = sdiv i32 %A, %B ; [#uses=1] + ret i32 %C } -int %test() { - %X = call int %callee(int 10, int 3) - ret int %X +define i32 @test() { + %X = call i32 @callee( i32 10, i32 3 ) ; [#uses=1] + ret i32 %X } +