[llvm-commits] [llvm] r46139 - /llvm/trunk/test/CodeGen/Generic/storetrunc-fp.ll

Chris Lattner sabre at nondot.org
Thu Jan 17 11:47:24 PST 2008


Author: lattner
Date: Thu Jan 17 13:47:23 2008
New Revision: 46139

URL: http://llvm.org/viewvc/llvm-project?rev=46139&view=rev
Log:
new testcase.

Added:
    llvm/trunk/test/CodeGen/Generic/storetrunc-fp.ll

Added: llvm/trunk/test/CodeGen/Generic/storetrunc-fp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/storetrunc-fp.ll?rev=46139&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/Generic/storetrunc-fp.ll (added)
+++ llvm/trunk/test/CodeGen/Generic/storetrunc-fp.ll Thu Jan 17 13:47:23 2008
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc
+
+define void @foo(double %a, double %b, float* %fp) {
+	%c = add double %a, %b
+	%d = fptrunc double %c to float
+	store float %d, float* %fp
+	ret void
+}





More information about the llvm-commits mailing list