[llvm-commits] [llvm] r46073 - /llvm/trunk/test/CodeGen/PowerPC/longdbl-truncate.ll

Chris Lattner sabre at nondot.org
Wed Jan 16 10:03:52 PST 2008


Author: lattner
Date: Wed Jan 16 12:03:52 2008
New Revision: 46073

URL: http://llvm.org/viewvc/llvm-project?rev=46073&view=rev
Log:
add testcase for regression

Added:
    llvm/trunk/test/CodeGen/PowerPC/longdbl-truncate.ll

Added: llvm/trunk/test/CodeGen/PowerPC/longdbl-truncate.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/longdbl-truncate.ll?rev=46073&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/longdbl-truncate.ll (added)
+++ llvm/trunk/test/CodeGen/PowerPC/longdbl-truncate.ll Wed Jan 16 12:03:52 2008
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc
+target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f128:64:128"
+target triple = "powerpc-apple-darwin8"
+
+define double @SolveCubic(ppc_fp128 %X) {
+entry:
+	%Y = fptrunc ppc_fp128 %X to double
+	ret double %Y
+}





More information about the llvm-commits mailing list