From: Evan Cheng Date: Fri, 13 Jul 2007 23:57:33 +0000 (+0000) Subject: Added test case from PR1540. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7722ceb7de6f64c8a7a079b80612ec15031f5483;p=oota-llvm.git Added test case from PR1540. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39845 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll b/test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll new file mode 100644 index 00000000000..d1ca44dbb11 --- /dev/null +++ b/test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=sparc +; PR1540 + +declare float @sinf(float) +declare double @sin(double) +define double @test_sin(float %F) { + %G = call float @sinf( float %F ) ; [#uses=1] + %H = fpext float %G to double ; [#uses=1] + %I = call double @sin( double %H ) ; [#uses=1] + ret double %I +}