From: Chris Lattner Date: Wed, 24 Aug 2005 17:20:30 +0000 (+0000) Subject: new testcase X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=890226dd34abbbd03fa2b026f7d920a8ebccecc4;p=oota-llvm.git new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23016 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/SimplifyLibCalls/Pow.ll b/test/Transforms/SimplifyLibCalls/Pow.ll index 721f627ed38..4b10ed077ca 100644 --- a/test/Transforms/SimplifyLibCalls/Pow.ll +++ b/test/Transforms/SimplifyLibCalls/Pow.ll @@ -1,4 +1,3 @@ -; Test that the StrCatOptimizer works correctly ; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*pow' declare double %pow(double,double) diff --git a/test/Transforms/SimplifyLibCalls/floor.ll b/test/Transforms/SimplifyLibCalls/floor.ll new file mode 100644 index 00000000000..542ff5706d9 --- /dev/null +++ b/test/Transforms/SimplifyLibCalls/floor.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | opt -simplify-libcalls | llvm-dis | not grep 'call.*floor(' + +declare double %floor(double) + +float %test(float %C) { + %D = cast float %C to double + %E = call double %floor(double %D) ; --> floorf + %F = cast double %E to float + ret float %F +} +