[llvm-commits] [llvm] r39845 - /llvm/trunk/test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll
Evan Cheng
evan.cheng at apple.com
Fri Jul 13 16:57:33 PDT 2007
Author: evancheng
Date: Fri Jul 13 18:57:33 2007
New Revision: 39845
URL: http://llvm.org/viewvc/llvm-project?rev=39845&view=rev
Log:
Added test case from PR1540.
Added:
llvm/trunk/test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll
Added: llvm/trunk/test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll?rev=39845&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll (added)
+++ llvm/trunk/test/CodeGen/SPARC/2007-07-05-LiveIntervalAssert.ll Fri Jul 13 18:57:33 2007
@@ -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
+}
More information about the llvm-commits
mailing list