summaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-25 05:14:29 +0000
committerChris Lattner <sabre@nondot.org>2002-12-25 05:14:29 +0000
commit3b24559df0cba5e12f70ab6ccc7d246cfc97d919 (patch)
tree331870a1e2586c1381752043409abde43fef09eb /test/ExecutionEngine
parent94af414b71e263568db66c7e968beda64aa4f3ff (diff)
downloadexternal_llvm-3b24559df0cba5e12f70ab6ccc7d246cfc97d919.zip
external_llvm-3b24559df0cba5e12f70ab6ccc7d246cfc97d919.tar.gz
external_llvm-3b24559df0cba5e12f70ab6ccc7d246cfc97d919.tar.bz2
Initial fp test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine')
-rw-r--r--test/ExecutionEngine/test-fp.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/ExecutionEngine/test-fp.ll b/test/ExecutionEngine/test-fp.ll
new file mode 100644
index 0000000..7e60771
--- /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
+}