summaryrefslogtreecommitdiff
path: root/test/CodeGen/SPARC
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-07-13 23:57:33 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-07-13 23:57:33 +0000
commit7722ceb7de6f64c8a7a079b80612ec15031f5483 (patch)
tree7a44505ea3f8164840c2902fa8f6519481a59015 /test/CodeGen/SPARC
parentb4559a2179bf64fa38b2cccf91b067cc6fcc8e9d (diff)
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')
-rw-r--r--test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll11
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 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 ) ; <float> [#uses=1]
+ %H = fpext float %G to double ; <double> [#uses=1]
+ %I = call double @sin( double %H ) ; <double> [#uses=1]
+ ret double %I
+}