diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-25 05:14:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-25 05:14:29 +0000 |
commit | 3b24559df0cba5e12f70ab6ccc7d246cfc97d919 (patch) | |
tree | 331870a1e2586c1381752043409abde43fef09eb /test/ExecutionEngine | |
parent | 94af414b71e263568db66c7e968beda64aa4f3ff (diff) | |
download | external_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.ll | 17 |
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 +} |