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
+}
_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits