diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-07-13 23:57:33 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-07-13 23:57:33 +0000 |
commit | 7722ceb7de6f64c8a7a079b80612ec15031f5483 (patch) | |
tree | 7a44505ea3f8164840c2902fa8f6519481a59015 /test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll | |
parent | b4559a2179bf64fa38b2cccf91b067cc6fcc8e9d (diff) | |
download | external_llvm-7722ceb7de6f64c8a7a079b80612ec15031f5483.zip external_llvm-7722ceb7de6f64c8a7a079b80612ec15031f5483.tar.gz external_llvm-7722ceb7de6f64c8a7a079b80612ec15031f5483.tar.bz2 |
Added test case from PR1540.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll')
-rw-r--r-- | test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll | 11 |
1 files changed, 11 insertions, 0 deletions
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 0000000..d1ca44d --- /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 ) ; <float> [#uses=1] + %H = fpext float %G to double ; <double> [#uses=1] + %I = call double @sin( double %H ) ; <double> [#uses=1] + ret double %I +} |