From 7722ceb7de6f64c8a7a079b80612ec15031f5483 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 13 Jul 2007 23:57:33 +0000 Subject: Added test case from PR1540. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39845 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll (limited to 'test/CodeGen/SPARC') 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 +} -- cgit v1.2.3