From 3b24559df0cba5e12f70ab6ccc7d246cfc97d919 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 25 Dec 2002 05:14:29 +0000 Subject: [PATCH] Initial fp test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5155 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/ExecutionEngine/test-fp.ll | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/ExecutionEngine/test-fp.ll diff --git a/test/ExecutionEngine/test-fp.ll b/test/ExecutionEngine/test-fp.ll new file mode 100644 index 00000000000..7e607717cfb --- /dev/null +++ b/test/ExecutionEngine/test-fp.ll @@ -0,0 +1,17 @@ + +double %test(double* %DP) { + %D = load double* %DP + %V = add double %D, 1.0 + %W = sub double %V, %V + %X = mul double %W, %W + %Y = div double %X, %X + %Z = rem double %Y, %Y + store double %Z, double* %DP + ret double %Z +} + +int %main() { + %X = alloca double + call double %test(double* %X) + ret int 0 +}